Re: Regarding select() on PPC

2008-09-24 Thread Benjamin Herrenschmidt
On Wed, 2008-09-24 at 08:45 +0200, Arnd Bergmann wrote: > On Wednesday 24 September 2008, Benjamin Herrenschmidt wrote: > > Why do we want it ? > > > > It's an int, it's zero extended, but that should still be a valid signed > > 32 bits int in compat_sys_select() or do I miss something ? > > IIRC

RE: [PATCH] remove bogus ppc_select syscall

2008-09-24 Thread Sadashiiv, Halesh
I have tested the provided patch on PPC32 with little modifications. Test passed on the PPC32. Modification to Arnd's Patch: In systbl.h you have changed -SYSX(sys_ni_syscall,sys_ni_syscall,ppc_select) +SYSCALL(sys_ni_syscall) That has to be

Re: How to use mtdcr from userland code

2008-09-24 Thread Josh Boyer
On Tue, 23 Sep 2008 16:41:49 -0500 "Ayman El-Khashab" <[EMAIL PROTECTED]> wrote: > Greetings, > > I am developing an app that needs to map pci address space to the PLB on > the ppc460ex. From what I gather I need to use the mtcdr > instruction/macro to configure the PIM0 space. However, I canno

RE: [PATCH] remove bogus ppc_select syscall

2008-09-24 Thread Sadashiiv, Halesh
One more thing noticed while building the kernel, it gave warning kernel/power/Kconfig:97:warning: 'select' used by config symbol 'PM_SLEEP_SMP' refers to undefined symbol 'HOTPLUG_CPU' Thanks Halesh >-Original Message- >From: Sadashiiv, Halesh >Sent: Wednesday, September 24, 2008 2:

RE: [PATCH] remove bogus ppc_select syscall

2008-09-24 Thread Sadashiiv, Halesh
>One more thing noticed while building the kernel, it gave warning > >kernel/power/Kconfig:97:warning: 'select' used by config symbol >'PM_SLEEP_SMP' refers to undefined symbol 'HOTPLUG_CPU' Apologies, this is not related to the Fix. Please ignore my previous post. > >Thanks >Halesh > > > > >>-

Re: [PATCH] remove bogus ppc_select syscall

2008-09-24 Thread Paul Mackerras
Arnd Bergmann writes: > diff --git a/arch/powerpc/include/asm/systbl.h > b/arch/powerpc/include/asm/systbl.h > index f6cc7a4..5a69b32 100644 > --- a/arch/powerpc/include/asm/systbl.h > +++ b/arch/powerpc/include/asm/systbl.h > @@ -85,7 +85,7 @@ COMPAT_SYS_SPU(gettimeofday) > COMPAT_SYS_SPU(setti

Re: [PATCH] remove bogus ppc_select syscall

2008-09-24 Thread Arnd Bergmann
On Wednesday 24 September 2008, Paul Mackerras wrote: > > diff --git a/arch/powerpc/include/asm/systbl.h > > b/arch/powerpc/include/asm/systbl.h > > index f6cc7a4..5a69b32 100644 > > --- a/arch/powerpc/include/asm/systbl.h > > +++ b/arch/powerpc/include/asm/systbl.h > > @@ -85,7 +85,7 @@ COMPAT_SY

Re: Regarding select() on PPC

2008-09-24 Thread Benjamin Herrenschmidt
> If that is true, then _any_ syscall that takes an int value must have > a ppc specific sign-extending compat wrapper, are you sure that is > the case ? Ok, so that's crap that has been bitrotting. We -do- need to sign extend everywhere and it looks like we forgot to do it on anything recent, li

nanosleep() and hrtimer on PPC64

2008-09-24 Thread xyz
hi, all, Does anyone know why nanosleep system call does not use kernel high resolution timer on 2.6.21 (PPC64)? This makes user space nanosleep() almost un-usable. thanks rick ___ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org ht

Tickless and CPU Idle framework for PPC405

2008-09-24 Thread seokin Hong
Hi, All Is the tickless feature and CPU Idle framework is added in linux tree for PPC405? ___ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded

PING timeout on FCC1 / 2.6.26 / MPC8348 / fs_enet

2008-09-24 Thread embedded
I'm running into a strange problem when we ping the first Ethernet device(FCC1) on our MPC8248 based board. Note the second Ethernet device runs without any problem(FCC2) The network drops roughly 4-11% of the PINGS sent to it from either a Windows or Linux system. We've ran Ethernet compliance

Re: Tickless and CPU Idle framework for PPC405

2008-09-24 Thread Josh Boyer
On Thu, Sep 25, 2008 at 06:57:09AM +0900, seokin Hong wrote: >Hi, All > > > >Is the tickless feature and CPU Idle framework is added in linux tree for >PPC405? What CPU Idle framework? josh ___ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.or

Re: Merge linuxppc-embedded with linuxppc-dev

2008-09-24 Thread Li Yang
On Tue, Sep 23, 2008 at 6:20 AM, Grant Likely <[EMAIL PROTECTED]> wrote: > On Mon, Sep 22, 2008 at 4:11 PM, Mike Frysinger <[EMAIL PROTECTED]> wrote: >> On Mon, Sep 22, 2008 at 18:08, Grant Likely <[EMAIL PROTECTED]> wrote: >>> Jeremy, >>> >>> Can we eliminate the linuxppc-embedded mailing list and

How do I access nvRAM from user space?

2008-09-24 Thread Bruce_Leonard
Sorry for the dumb question, I just can figure out the right google search to find what I'm trying to do. I'm running 2.6.27-rc4 on an mpc8347 with a 32KiB nvSRAM (Cypress CY14B256L) on the local bus. We just want to be able to access this memory from user space seperately from "main" memory.

Re: How do I access nvRAM from user space?

2008-09-24 Thread yanjun.luo
Hi Bruce, You can use mmap to access NVRAM from user space, but you should config local bus first, like width, speed etc. Regards, Yanjun Luo. 发件人: [EMAIL PROTECTED] 发送时间: 2008-09-25 11:44:56 收件人: linuxppc-embedded@ozlabs.org 抄送: 主题: How do I access nvRAM from user space? Sorry for th