Re: [PATCH] (20/43) Kconfig fix (ppc32 SMP dependencies)

2005-08-23 Thread Paul Mackerras
Al Viro writes: ppc SMP is supported only for 6xx/POWER3/POWER4 - i.e. ones that have PPC_STD_MMU. Dependency fixed. Signed-off-by: Al Viro [EMAIL PROTECTED] Acked-by: Paul Mackerras [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH] ppc32: removed usage of

2005-08-18 Thread Paul Mackerras
Kumar Gala writes: > So after all of this its not clear to me if its acceptable to kill > all users of in the kernel and to move code that > exists in to for arch's that need it. doesn't describe any part of the user/kernel ABI, so we should be OK to kill it. I would say we should

Re: [PATCH] ppc32: removed usage of asm/segment.h

2005-08-18 Thread Paul Mackerras
Kumar Gala writes: So after all of this its not clear to me if its acceptable to kill all users of asm/segment.h in the kernel and to move code that exists in asm/segment.h to asm/uaccess.h for arch's that need it. asm/segment.h doesn't describe any part of the user/kernel ABI, so we

[PATCH] Add pci_walk_bus function to PCI core (nonrecursive)

2005-08-17 Thread Paul Mackerras
the pointers to start doing the devices on the bus under the bridge, and when we reach the end of a bus's devices, we use the bus->self pointer to go back up to the next higher bus and continue doing its devices. Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- diff -urN linux-2.6/dr

[PATCH] Add pci_walk_bus function to PCI core (nonrecursive)

2005-08-17 Thread Paul Mackerras
the pointers to start doing the devices on the bus under the bridge, and when we reach the end of a bus's devices, we use the bus-self pointer to go back up to the next higher bus and continue doing its devices. Signed-off-by: Paul Mackerras [EMAIL PROTECTED] --- diff -urN linux-2.6/drivers/pci

[PATCH for 2.6.13] iSeries build with newer assemblers and compilers

2005-08-16 Thread Paul Mackerras
tephen Rothwell <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- arch/ppc64/kernel/LparData.c| 79 arch/ppc64/kernel/Makefile |5 ++ arch/ppc64/kernel/head.S|6 ++ arch/ppc64/kernel/lparma

Re: [PATCH] ppc32: removed usage of

2005-08-16 Thread Paul Mackerras
Kumar Gala writes: > Made a dummy include like it is in ppc64 and removed any > users if it in arch/ppc. Why can't we just delete asm-ppc/segment.h (and asm-ppc64/segment.h too, for that matter) entirely? Paul. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH] ppc32: removed usage of asm/segment.h

2005-08-16 Thread Paul Mackerras
Kumar Gala writes: Made asm/segment.h a dummy include like it is in ppc64 and removed any users if it in arch/ppc. Why can't we just delete asm-ppc/segment.h (and asm-ppc64/segment.h too, for that matter) entirely? Paul. - To unsubscribe from this list: send the line unsubscribe linux-kernel

[PATCH for 2.6.13] iSeries build with newer assemblers and compilers

2005-08-16 Thread Paul Mackerras
Rothwell [EMAIL PROTECTED] Signed-off-by: Paul Mackerras [EMAIL PROTECTED] --- arch/ppc64/kernel/LparData.c| 79 arch/ppc64/kernel/Makefile |5 ++ arch/ppc64/kernel/head.S|6 ++ arch/ppc64/kernel/lparmap.c | 31

Re: [RFC/PATCH] Add pci_walk_bus function to PCI core

2005-08-10 Thread Paul Mackerras
Arjan van de Ven writes: > is there a way to avoid the recursion somehow? Recursion is "not fun" > stack usage wise, esp if you have really deep hierarchies Yes, since we have pointers up the tree as well as down, it should in fact be easy. I'll hack something up. Paul. - To unsubscribe

Re: [RFC/PATCH] Add pci_walk_bus function to PCI core

2005-08-10 Thread Paul Mackerras
Arjan van de Ven writes: is there a way to avoid the recursion somehow? Recursion is not fun stack usage wise, esp if you have really deep hierarchies Yes, since we have pointers up the tree as well as down, it should in fact be easy. I'll hack something up. Paul. - To unsubscribe from

[RFC/PATCH] Add pci_walk_bus function to PCI core

2005-08-09 Thread Paul Mackerras
was originally written by Linas Vepstas and moved to drivers/pci/bus.c (and slightly modified) by me. Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- diff -urN linux-2.6/drivers/pci/bus.c test-pseries/drivers/pci/bus.c --- linux-2.6/drivers/pci/bus.c 2005-08-03 10:51:36.0 +1000 ++

[RFC/PATCH] Add pci_walk_bus function to PCI core

2005-08-09 Thread Paul Mackerras
was originally written by Linas Vepstas and moved to drivers/pci/bus.c (and slightly modified) by me. Signed-off-by: Paul Mackerras [EMAIL PROTECTED] --- diff -urN linux-2.6/drivers/pci/bus.c test-pseries/drivers/pci/bus.c --- linux-2.6/drivers/pci/bus.c 2005-08-03 10:51:36.0 +1000 +++ test

Re: [PATCH][PPP] ppp_generic: Add checks for NULL pointers

2005-08-04 Thread Paul Mackerras
Hmamouche, Youssef writes: > This patch adds two checks for NULL pointers. OK, but get the whitespace right please - use tabs not spaces for indentation, and put a space between "if" and "(". See Documentation/CodingStyle. Paul. - To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH][PPP] ppp_generic: Add checks for NULL pointers

2005-08-04 Thread Paul Mackerras
Hmamouche, Youssef writes: This patch adds two checks for NULL pointers. OK, but get the whitespace right please - use tabs not spaces for indentation, and put a space between if and (. See Documentation/CodingStyle. Paul. - To unsubscribe from this list: send the line unsubscribe

[PATCH] Fix for kexec boot issue

2005-08-02 Thread Paul Mackerras
kexec on ppc64 and should be safe to go in 2.6.13. -- paulus] Signed-off-by: Haren Myneni <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- diff -Naurp 2613-rc4-git4.orig/arch/ppc64/kernel/machine_kexec.c 2613-rc4-git4/arch/ppc64/kernel/machine_kexec.c --- 2

[PATCH] Xmon bug fix for soft-reset

2005-08-02 Thread Paul Mackerras
w state of those CPU(s). [This is a simple, very low risk, obvious fix for an obvious bug, and should go into 2.6.13. -- paulus] Signed-off-by: Haren Myneni <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- --- linux-2.6.13-rc4-git4/arch/ppc64/xmon/xmo

[PATCH] Obvious bugfix for yenta resource allocation

2005-08-02 Thread Paul Mackerras
powerbook once again. Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- diff -urN linux-2.6/drivers/pcmcia/yenta_socket.c pmac-2.6/drivers/pcmcia/yenta_socket.c --- linux-2.6/drivers/pcmcia/yenta_socket.c 2005-07-31 17:38:35.0 +1000 +++ pmac-2.6/drivers/pcmcia/yenta_socket.c

[PATCH] Obvious bugfix for yenta resource allocation

2005-08-02 Thread Paul Mackerras
again. Signed-off-by: Paul Mackerras [EMAIL PROTECTED] --- diff -urN linux-2.6/drivers/pcmcia/yenta_socket.c pmac-2.6/drivers/pcmcia/yenta_socket.c --- linux-2.6/drivers/pcmcia/yenta_socket.c 2005-07-31 17:38:35.0 +1000 +++ pmac-2.6/drivers/pcmcia/yenta_socket.c 2005-08-02 21:32

[PATCH] Xmon bug fix for soft-reset

2005-08-02 Thread Paul Mackerras
(s). [This is a simple, very low risk, obvious fix for an obvious bug, and should go into 2.6.13. -- paulus] Signed-off-by: Haren Myneni [EMAIL PROTECTED] Signed-off-by: Paul Mackerras [EMAIL PROTECTED] --- --- linux-2.6.13-rc4-git4/arch/ppc64/xmon/xmon.c.orig 2005-08-01 22:31:09.0

[PATCH] Fix for kexec boot issue

2005-08-02 Thread Paul Mackerras
kexec on ppc64 and should be safe to go in 2.6.13. -- paulus] Signed-off-by: Haren Myneni [EMAIL PROTECTED] Signed-off-by: Paul Mackerras [EMAIL PROTECTED] --- diff -Naurp 2613-rc4-git4.orig/arch/ppc64/kernel/machine_kexec.c 2613-rc4-git4/arch/ppc64/kernel/machine_kexec.c --- 2613-rc4-git4.orig

Re: topology api confusion

2005-08-01 Thread Paul Mackerras
Anton Blanchard writes: > Dont include asm-generic/topology.h unconditionally, we end up > overriding all the ppc64 specific functions when NUMA is on. > > Signed-off-by: Anton Blanchard <[EMAIL PROTECTED]> Acked-by: Paul Mackerras <[EMAIL PROTECTED]> It looks like th

Re: topology api confusion

2005-08-01 Thread Paul Mackerras
Anton Blanchard writes: Dont include asm-generic/topology.h unconditionally, we end up overriding all the ppc64 specific functions when NUMA is on. Signed-off-by: Anton Blanchard [EMAIL PROTECTED] Acked-by: Paul Mackerras [EMAIL PROTECTED] It looks like this should go into 2.6.13

[PATCH] POWER 4 fails to boot with NUMA

2005-07-31 Thread Paul Mackerras
patch handles those cases. Signed-off-by: Mike Kravetz <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- diff -urN linux-2.6/arch/ppc64/mm/numa.c g5-ppc64/arch/ppc64/mm/numa.c --- linux-2.6/arch/ppc64/mm/numa.c 2005-06-24 13:38:52.0 +1000 +++ g5-p

[PATCH] POWER 4 fails to boot with NUMA

2005-07-31 Thread Paul Mackerras
handles those cases. Signed-off-by: Mike Kravetz [EMAIL PROTECTED] Signed-off-by: Paul Mackerras [EMAIL PROTECTED] --- diff -urN linux-2.6/arch/ppc64/mm/numa.c g5-ppc64/arch/ppc64/mm/numa.c --- linux-2.6/arch/ppc64/mm/numa.c 2005-06-24 13:38:52.0 +1000 +++ g5-ppc64/arch/ppc64/mm/numa.c

Re: [PATCH][1/3] ppc32: add 440ep support

2005-07-27 Thread Paul Mackerras
Andrew Morton writes: > Matt Porter <[EMAIL PROTECTED]> wrote: > > > > +static u64 dma_mask = 0xULL; > > I'm sure you're totally uninterested in this, but the above will probably > generate warnings on (say) ppc64, where u64 is implemented as unsigned > long. > > I usually chuck a

Re: [PATCH][1/3] ppc32: add 440ep support

2005-07-27 Thread Paul Mackerras
Andrew Morton writes: Matt Porter [EMAIL PROTECTED] wrote: +static u64 dma_mask = 0xULL; I'm sure you're totally uninterested in this, but the above will probably generate warnings on (say) ppc64, where u64 is implemented as unsigned long. I usually chuck a simple `-1' in

Re: ping^2: [PATCH] move /proc/ppc_htab creating self-contained in arch/ppc/ code

2005-07-25 Thread Paul Mackerras
Christoph Hellwig writes: > On Mon, Jun 27, 2005 at 11:05:02PM +0200, Christoph Hellwig wrote: > > On Wed, May 04, 2005 at 08:44:39PM +0200, Christoph Hellwig wrote: > > > additional benefit is cleaning up the ifdef mess in ppc_htab.c > > > > > > > > > Signed-off-by: Christoph Hellwig <[EMAIL

Re: ping^2: [PATCH] move /proc/ppc_htab creating self-contained in arch/ppc/ code

2005-07-25 Thread Paul Mackerras
Christoph Hellwig writes: On Mon, Jun 27, 2005 at 11:05:02PM +0200, Christoph Hellwig wrote: On Wed, May 04, 2005 at 08:44:39PM +0200, Christoph Hellwig wrote: additional benefit is cleaning up the ifdef mess in ppc_htab.c Signed-off-by: Christoph Hellwig [EMAIL PROTECTED]

Re: [RFC] unify semaphore implementations

2005-04-29 Thread Paul Mackerras
I wrote: > The only fast path that needs atomic_dec_if_positive is down_trylock. > You can use atomic_dec for down_trylock instead; the only downside to > that is that if somebody was holding the semaphore but nobody was > waiting, the holder will take the slow path when it does the up. Better

Re: [RFC] unify semaphore implementations

2005-04-29 Thread Paul Mackerras
Benjamin LaHaise writes: > There are at least two users who need asynchronous semaphore/mutex > operations: aio_write (which needs to acquire i_sem), and nfs. What do you mean by asynchronous semaphore/mutex operations? Are you talking about a down operation that will acquire the semaphore

Re: [RFC] unify semaphore implementations

2005-04-29 Thread Paul Mackerras
Trond Myklebust writes: > The PPC implementation would be hard to port to x86, since it relies on > the load-linked/store-conditional stuff to provide a fast primitive for > atomic_dec_if_positive(). The only fast path that needs atomic_dec_if_positive is down_trylock. You can use atomic_dec for

Re: [RFC] unify semaphore implementations

2005-04-29 Thread Paul Mackerras
Trond Myklebust writes: The PPC implementation would be hard to port to x86, since it relies on the load-linked/store-conditional stuff to provide a fast primitive for atomic_dec_if_positive(). The only fast path that needs atomic_dec_if_positive is down_trylock. You can use atomic_dec for

Re: [RFC] unify semaphore implementations

2005-04-29 Thread Paul Mackerras
Benjamin LaHaise writes: There are at least two users who need asynchronous semaphore/mutex operations: aio_write (which needs to acquire i_sem), and nfs. What do you mean by asynchronous semaphore/mutex operations? Are you talking about a down operation that will acquire the semaphore if

Re: [RFC] unify semaphore implementations

2005-04-29 Thread Paul Mackerras
I wrote: The only fast path that needs atomic_dec_if_positive is down_trylock. You can use atomic_dec for down_trylock instead; the only downside to that is that if somebody was holding the semaphore but nobody was waiting, the holder will take the slow path when it does the up. Better

Re: [RFC] unify semaphore implementations

2005-04-28 Thread Paul Mackerras
Trond Myklebust writes: > It started from a desire to extend the existing implementations to > support new features such as asynchronous notification. Currently that > sort of thing is impossible unless your developer-super-powers include > the ability to herd 24 different subsystem maintainers

Re: [RFC] unify semaphore implementations

2005-04-28 Thread Paul Mackerras
Benjamin LaHaise writes: > Please review the following series of patches for unifying the > semaphore implementation across all architectures (not posted as > they're about 350K), as they have only been tested on x86-64. The > code generated is functionally identical to the earlier i386 >

Re: [RFC] unify semaphore implementations

2005-04-28 Thread Paul Mackerras
Benjamin LaHaise writes: Please review the following series of patches for unifying the semaphore implementation across all architectures (not posted as they're about 350K), as they have only been tested on x86-64. The code generated is functionally identical to the earlier i386

Re: [RFC] unify semaphore implementations

2005-04-28 Thread Paul Mackerras
Trond Myklebust writes: It started from a desire to extend the existing implementations to support new features such as asynchronous notification. Currently that sort of thing is impossible unless your developer-super-powers include the ability to herd 24 different subsystem maintainers into

Re: Kernel SCM saga..

2005-04-07 Thread Paul Mackerras
Andrew Morton writes: > > The other reason, > > of course, is to be able to see if a patch I'm about to send conflicts > > with something you have already taken, and rebase it if necessary. > > > > How's this? Nice; but in fact I meant that I want to be able to see if a patch of mine

Re: Kernel SCM saga..

2005-04-07 Thread Paul Mackerras
Andrew Morton writes: > The problem with those is letting other people get access to it. I guess > that could be fixed with a bit of scripting and rsyncing. Yes. > (I don't do that for -mm because -mm basically doesn't work for 99% of the > time. Takes 4-5 hours to out a release out assuming

Re: Kernel SCM saga..

2005-04-07 Thread Paul Mackerras
Linus, > That "individual patches" is one of the keywords, btw. One thing that BK > has been extremely good at, and that a lot of people have come to like > even when they didn't use BK, is how we've been maintaining a much finer- > granularity view of changes. That isn't going to go away.

Re: Kernel SCM saga..

2005-04-07 Thread Paul Mackerras
Andrew Morton writes: The problem with those is letting other people get access to it. I guess that could be fixed with a bit of scripting and rsyncing. Yes. (I don't do that for -mm because -mm basically doesn't work for 99% of the time. Takes 4-5 hours to out a release out assuming that

Re: Kernel SCM saga..

2005-04-07 Thread Paul Mackerras
Andrew Morton writes: The other reason, of course, is to be able to see if a patch I'm about to send conflicts with something you have already taken, and rebase it if necessary. hack, hack How's this? Nice; but in fact I meant that I want to be able to see if a patch of mine

Re: [ANNOUNCE] April Release of LTP now Available

2005-04-06 Thread Paul Mackerras
Andrew Morton writes: > Marty Ridgeway <[EMAIL PROTECTED]> wrote: > > > > The April release of LTP is now on SourceForge. > > > > LTP-20050405 > > It seems to have an x86ism in it which causes the compile to fail on ppc64: Looks to me like gcc is objecting to our (ppc64's) _syscall2

Re: [ANNOUNCE] April Release of LTP now Available

2005-04-06 Thread Paul Mackerras
Andrew Morton writes: Marty Ridgeway [EMAIL PROTECTED] wrote: The April release of LTP is now on SourceForge. LTP-20050405 It seems to have an x86ism in it which causes the compile to fail on ppc64: Looks to me like gcc is objecting to our (ppc64's) _syscall2 definition; Alan Modra

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Christoph Hellwig writes: > - the magic CONFIG_COMPAT changes for SHM handles should only be done when >a module is set. CONFIG_COMPAT is set for mostly 64bit systems that can >run 32bit code and drm shouldn't behave differently just because we can >run 32bit code. Yes it should -

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Christoph Hellwig writes: > E.g. on my ia64 box CONFIG_COMPAT is set because I have support compiled > in for running i386 apps. But I don't want dri to hand out 32bit handles > everywhere just because of that, because I most certainly won't be running > i386 OpenGL apps. The handle for a

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Christoph Hellwig writes: > It's documented where the other filesystem entry points are documented. Which is? $ grep -r compat_ioctl Documentation Documentation/filesystems/Locking: long (*compat_ioctl) (struct file *, unsigned int, unsigned long);

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Christoph Hellwig writes: > Please make it a module option so it doesn't regress everyone for your > specific needs. Sorry, I don't follow you. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Dave Airlie writes: > Paulus these look like your patches care to update them with the "new" > method of doing stuff.. What are we going to do about the DRM CVS? Change it to the new way and break everyone running 2.6.10 or earlier, or leave it at the old way that will work for people with

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Christoph Hellwig writes: > Those DRI callers aren't in mainline but introduced in bk-drm.patch, > looks like the DRI folks need beating with a big stick.. Settle down Christoph, the compat_ioctl method is less than 3 months old, has only been in one official 2.6.x release, and isn't documented

[PATCH] ppc64: fix export of wrong symbol

2005-04-05 Thread Paul Mackerras
modules to use the inline flush_icache_range. Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> diff -urN linux-2.5/arch/ppc64/kernel/ppc_ksyms.c test/arch/ppc64/kernel/ppc_ksyms.c --- linux-2.5/arch/ppc64/kernel/ppc_ksyms.c 2005-03-07 10:46:38.0 +1100 +++ test/arch/ppc64/

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Christoph Hellwig writes: Those DRI callers aren't in mainline but introduced in bk-drm.patch, looks like the DRI folks need beating with a big stick.. Settle down Christoph, the compat_ioctl method is less than 3 months old, has only been in one official 2.6.x release, and isn't documented at

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Dave Airlie writes: Paulus these look like your patches care to update them with the new method of doing stuff.. What are we going to do about the DRM CVS? Change it to the new way and break everyone running 2.6.10 or earlier, or leave it at the old way that will work for people with distro

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Christoph Hellwig writes: Please make it a module option so it doesn't regress everyone for your specific needs. Sorry, I don't follow you. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Christoph Hellwig writes: It's documented where the other filesystem entry points are documented. Which is? $ grep -r compat_ioctl Documentation Documentation/filesystems/Locking: long (*compat_ioctl) (struct file *, unsigned int, unsigned long);

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Christoph Hellwig writes: E.g. on my ia64 box CONFIG_COMPAT is set because I have support compiled in for running i386 apps. But I don't want dri to hand out 32bit handles everywhere just because of that, because I most certainly won't be running i386 OpenGL apps. The handle for a _DRM_SHM

Re: 2.6.12-rc2-mm1

2005-04-05 Thread Paul Mackerras
Christoph Hellwig writes: - the magic CONFIG_COMPAT changes for SHM handles should only be done when a module is set. CONFIG_COMPAT is set for mostly 64bit systems that can run 32bit code and drm shouldn't behave differently just because we can run 32bit code. Yes it should - we

[PATCH] ppc: fix single-stepping of emulated instructions

2005-04-03 Thread Paul Mackerras
after emulating the instruction. Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> diff -urN linux-2.5/arch/ppc/kernel/traps.c pmac-2.5/arch/ppc/kernel/traps.c --- linux-2.5/arch/ppc/kernel/traps.c 2005-03-29 16:24:53.0 +1000 +++ pmac-2.5/arch/ppc/kernel/traps.c2005-03-31

[PATCH] ppc: oops on kernel altivec assist exceptions

2005-04-03 Thread Paul Mackerras
if the altivec unit is in java mode.) This patch checks explicitly if we are in user mode and prints a useful message if not. Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> diff -urN linux-2.5/arch/ppc/kernel/traps.c pmac-2.5/arch/ppc/kernel/traps.c --- linux-2.5/arch/ppc/kernel/traps.c 2

[PATCH] ppc: improve timebase sync for SMP

2005-04-03 Thread Paul Mackerras
it reads the timebase from one CPU and transfers the value to the other CPU. (Hotplug CPU is needed for sleep (aka suspend to RAM) to work.) Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> diff -urN linux-2.5/arch/ppc/platforms/pmac_smp.c pmac-2.5/arch/ppc/platforms/pmac_smp.c --- linux-2.

[PATCH] ppc: fix bogosity in process-freezing code

2005-04-03 Thread Paul Mackerras
The code that went into arch/ppc/kernel/signal.c recently to handle process freezing seems to contain a dubious assumption: that a process that calls do_signal when PF_FREEZE is set will have entered the kernel because of a system call. This patch removes that assumption. Signed-off-by: Paul

[PATCH] ppc: fix bogosity in process-freezing code

2005-04-03 Thread Paul Mackerras
The code that went into arch/ppc/kernel/signal.c recently to handle process freezing seems to contain a dubious assumption: that a process that calls do_signal when PF_FREEZE is set will have entered the kernel because of a system call. This patch removes that assumption. Signed-off-by: Paul

[PATCH] ppc: improve timebase sync for SMP

2005-04-03 Thread Paul Mackerras
it reads the timebase from one CPU and transfers the value to the other CPU. (Hotplug CPU is needed for sleep (aka suspend to RAM) to work.) Signed-off-by: Paul Mackerras [EMAIL PROTECTED] diff -urN linux-2.5/arch/ppc/platforms/pmac_smp.c pmac-2.5/arch/ppc/platforms/pmac_smp.c --- linux-2.5/arch/ppc

[PATCH] ppc: fix single-stepping of emulated instructions

2005-04-03 Thread Paul Mackerras
after emulating the instruction. Signed-off-by: Paul Mackerras [EMAIL PROTECTED] diff -urN linux-2.5/arch/ppc/kernel/traps.c pmac-2.5/arch/ppc/kernel/traps.c --- linux-2.5/arch/ppc/kernel/traps.c 2005-03-29 16:24:53.0 +1000 +++ pmac-2.5/arch/ppc/kernel/traps.c2005-03-31 08:37

[PATCH] ppc: oops on kernel altivec assist exceptions

2005-04-03 Thread Paul Mackerras
if the altivec unit is in java mode.) This patch checks explicitly if we are in user mode and prints a useful message if not. Signed-off-by: Paul Mackerras [EMAIL PROTECTED] diff -urN linux-2.5/arch/ppc/kernel/traps.c pmac-2.5/arch/ppc/kernel/traps.c --- linux-2.5/arch/ppc/kernel/traps.c 2005-03-29

[PATCH] ppc: clean up arch/ppc/syslib/prom_init.c

2005-04-02 Thread Paul Mackerras
. The number of casts in prom_init.c is reduced substantially by this patch. Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> diff -urN linux-2.5/arch/ppc/syslib/prom_init.c pmac-2.5/arch/ppc/syslib/prom_init.c --- linux-2.5/arch/ppc/syslib/prom_init.c 2005-01-29 09:58:49.0

[PATCH] ppc: add syscall6 definition

2005-04-02 Thread Paul Mackerras
Since we have some syscalls with 6 arguments, it's useful to have a definition of _syscall6 in asm-ppc/unistd.h. This patch adds a suitable definition. Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> diff -urN linux-2.5/include/asm-ppc/unistd.h pmac-2.5/include/asm-ppc/unistd.h --- lin

[PATCH] ppc: add syscall6 definition

2005-04-02 Thread Paul Mackerras
Since we have some syscalls with 6 arguments, it's useful to have a definition of _syscall6 in asm-ppc/unistd.h. This patch adds a suitable definition. Signed-off-by: Paul Mackerras [EMAIL PROTECTED] diff -urN linux-2.5/include/asm-ppc/unistd.h pmac-2.5/include/asm-ppc/unistd.h --- linux-2.5

[PATCH] ppc: clean up arch/ppc/syslib/prom_init.c

2005-04-02 Thread Paul Mackerras
. The number of casts in prom_init.c is reduced substantially by this patch. Signed-off-by: Paul Mackerras [EMAIL PROTECTED] diff -urN linux-2.5/arch/ppc/syslib/prom_init.c pmac-2.5/arch/ppc/syslib/prom_init.c --- linux-2.5/arch/ppc/syslib/prom_init.c 2005-01-29 09:58:49.0 +1100

[PATCH] ppc: eliminate gcc warning in xmon.c

2005-04-01 Thread Paul Mackerras
This patch shuts up some more incorrect gcc warnings. Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> diff -urN linux-2.5/arch/ppc/xmon/xmon.c testpmac/arch/ppc/xmon/xmon.c --- linux-2.5/arch/ppc/xmon/xmon.c 2004-10-21 07:17:18.0 +1000 +++ testpmac/arch/ppc/xmon/xmon.c

[PATCH] ppc: eliminate gcc warning in prom.c

2005-04-01 Thread Paul Mackerras
This patch shuts up a couple of gcc "variable may be used uninitialized" warnings. The warnings are invalid - the code is such that the variables are in fact initialized before being used - but gcc isn't smart enough to see that. This patch eliminates the warnings. Signed-off-by: Paul

[PATCH] ppc64: Export re{serv,leas}e_pmc_hardware() for oprofile

2005-04-01 Thread Paul Mackerras
CONFIG_OPROFILE=m doesn't work on ppc64 if these aren't exported... Signed-off-by: David Woodhouse <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- linux-2.6.11/arch/ppc64/kernel/pmc.c.orig 2005-03-31 20:31:07.0 +0100 +++ linux-2.6.11/arch/ppc64/

[PATCH] ppc64: Export re{serv,leas}e_pmc_hardware() for oprofile

2005-04-01 Thread Paul Mackerras
CONFIG_OPROFILE=m doesn't work on ppc64 if these aren't exported... Signed-off-by: David Woodhouse [EMAIL PROTECTED] Signed-off-by: Paul Mackerras [EMAIL PROTECTED] --- linux-2.6.11/arch/ppc64/kernel/pmc.c.orig 2005-03-31 20:31:07.0 +0100 +++ linux-2.6.11/arch/ppc64/kernel/pmc.c

[PATCH] ppc: eliminate gcc warning in prom.c

2005-04-01 Thread Paul Mackerras
This patch shuts up a couple of gcc variable may be used uninitialized warnings. The warnings are invalid - the code is such that the variables are in fact initialized before being used - but gcc isn't smart enough to see that. This patch eliminates the warnings. Signed-off-by: Paul Mackerras

[PATCH] ppc: eliminate gcc warning in xmon.c

2005-04-01 Thread Paul Mackerras
This patch shuts up some more incorrect gcc warnings. Signed-off-by: Paul Mackerras [EMAIL PROTECTED] diff -urN linux-2.5/arch/ppc/xmon/xmon.c testpmac/arch/ppc/xmon/xmon.c --- linux-2.5/arch/ppc/xmon/xmon.c 2004-10-21 07:17:18.0 +1000 +++ testpmac/arch/ppc/xmon/xmon.c 2005-04

Re: prefetch on ppc64

2005-03-29 Thread Paul Mackerras
Antonio Vargas writes: > Don't know exactly about power5, but G5 processor is described on IBM > docs as doing automatic whole-page prefetch read-ahead when detecting > linear accesses. Sure, but linked lists would rarely be laid out linearly in memory. Paul. - To unsubscribe from this list:

Re: prefetch on ppc64

2005-03-29 Thread Paul Mackerras
Serge E. Hallyn writes: > While investigating the inordinate performance impact one of my patches > seemed to be having, we tracked it down to two hlist_for_each_entry > loops, and finally to the prefetch instruction in the loop. I would be interested to know what results you get if you leave

Re: prefetch on ppc64

2005-03-29 Thread Paul Mackerras
Serge E. Hallyn writes: While investigating the inordinate performance impact one of my patches seemed to be having, we tracked it down to two hlist_for_each_entry loops, and finally to the prefetch instruction in the loop. I would be interested to know what results you get if you leave the

Re: prefetch on ppc64

2005-03-29 Thread Paul Mackerras
Antonio Vargas writes: Don't know exactly about power5, but G5 processor is described on IBM docs as doing automatic whole-page prefetch read-ahead when detecting linear accesses. Sure, but linked lists would rarely be laid out linearly in memory. Paul. - To unsubscribe from this list: send

RE: [PATCH 1/6] freepgt: free_pgtables use vma list

2005-03-23 Thread Paul Mackerras
Luck, Tony writes: > Can we legislate that "end==0" isn't possible. I think this is only likely to be a problem on 32-bit platforms with hardware support for separate user and kernel address spaces. m68k and sparc32 come to mind, though I might be mistaken. Paul. - To unsubscribe from this

RE: [PATCH 1/6] freepgt: free_pgtables use vma list

2005-03-23 Thread Paul Mackerras
Luck, Tony writes: Can we legislate that end==0 isn't possible. I think this is only likely to be a problem on 32-bit platforms with hardware support for separate user and kernel address spaces. m68k and sparc32 come to mind, though I might be mistaken. Paul. - To unsubscribe from this list:

Re: [PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c

2005-03-21 Thread Paul Mackerras
Mikael Pettersson writes: > Compiling 2.6.12-rc1-mm1 for ppc64 fails with: > > arch/ppc64/kernel/prom.c:1691: error: syntax error before > 'prom_reconfig_notifier' Currently prom.c is in a mess because Linus applied the last 2 of 8 patches from Nathan Lynch but not the first 6. :-P Paul. -

Re: [PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c

2005-03-21 Thread Paul Mackerras
Mikael Pettersson writes: Compiling 2.6.12-rc1-mm1 for ppc64 fails with: arch/ppc64/kernel/prom.c:1691: error: syntax error before 'prom_reconfig_notifier' Currently prom.c is in a mess because Linus applied the last 2 of 8 patches from Nathan Lynch but not the first 6. :-P Paul. - To

Re: [PATCH 1/4] io_remap_pfn_range: add for all arch-es

2005-03-18 Thread Paul Mackerras
Randy.Dunlap writes: > diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl > linux-2611-bk3-pv/include/asm-ppc/pgtable.h > linux-2611-bk3-pfn/include/asm-ppc/pgtable.h > --- linux-2611-bk3-pv/include/asm-ppc/pgtable.h 2005-03-07 > 11:02:18.0 -0800 > +++

Re: [PATCH 1/4] io_remap_pfn_range: add for all arch-es

2005-03-18 Thread Paul Mackerras
Randy.Dunlap writes: diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-2611-bk3-pv/include/asm-ppc/pgtable.h linux-2611-bk3-pfn/include/asm-ppc/pgtable.h --- linux-2611-bk3-pv/include/asm-ppc/pgtable.h 2005-03-07 11:02:18.0 -0800 +++

RE: PCI Error Recovery API Proposal. (WAS:: [PATCH/RFC] PCIErrorRecovery)

2005-03-17 Thread Paul Mackerras
Nguyen, Tom L writes: > We decided to implement PCI Express error handling based on the PCI > Express specification in a platform independent manner. This allows any > platform that implements PCI Express AER per the PCI SIG specification > can take advantage of the advanced features, much like

RE: PCI Error Recovery API Proposal. (WAS:: [PATCH/RFC] PCIErrorRecovery)

2005-03-17 Thread Paul Mackerras
Nguyen, Tom L writes: > Is EEH a PCI-SIG specification? Is EEH specs available in public? No and no (not yet anyway). > It seems that a PCI-PCI bridge per slot is hardware implementation > specific. The fact that the PCI-PCI Bridge can isolate the slot is > hardware feature specific. Well,

Re: binfmt_elf padzero problems

2005-03-17 Thread Paul Mackerras
Andrew Morton writes: > I guess if the bss has zero length then we can skip the zeroing of the end > of the page at the end of bss, as long as we're dead sure that we didn't > accidentally instantiate a single page on behalf of that zero-length bss. There is another thing I noticed about the bss

Re: [PATCH] Xen/i386 cleanups - AGP bus/phys cleanups

2005-03-17 Thread Paul Mackerras
Alan Cox writes: > On Iau, 2005-03-17 at 09:34, Paul Mackerras wrote: > > This code needs real physical addresses, which are not the same things > > as bus addresses. > > Not always. The code needs platform specific goodies. We've only never > been burned so far b

[PATCH 5/8] PPC64 pci_dn.c: use pSeries reconfig notifier

2005-03-17 Thread Paul Mackerras
Use the pSeries_reconfig notifier list to handle newly added pci device nodes. Signed-off-by: Nathan Lynch <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> arch/ppc64/kernel/pci_dn.c | 22 ++ arch/ppc64/kernel/prom.c | 14 ---

[PATCH 4/8] PPC64 prom.c: use pSeries reconfig notifier

2005-03-17 Thread Paul Mackerras
Use the pSeries_reconfig notifier list to fix up a device node which is about to be added. Signed-off-by: Nathan Lynch <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> arch/ppc64/kernel/prom.c | 40 --- 1 files changed, 31 inse

[PATCH 8/8] PPC64 make cpu hotplug play well with maxcpus and smt-enabled

2005-03-17 Thread Paul Mackerras
p.c | 183 +++- arch/ppc64/kernel/setup.c | 12 -- arch/ppc64/kernel/smp.c | 13 -- include/asm-ppc64/machdep.h |1 4 files changed, 78 insertions(+), 131 deletions(-) Signed-off-by: Nathan Lynch <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras &

[PATCH 6/8] PPC64 pSeries_iommu.c: use pSeries reconfig notifier

2005-03-17 Thread Paul Mackerras
Use the pSeries_reconfig notifier chain for tearing down the iommu table when a device node is removed. Signed-off-by: Nathan Lynch <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> arch/ppc64/kernel/pSeries_iommu.c| 25 +++ arch/

[PATCH] PPC64: fix error cases in nvram partition scan

2005-03-17 Thread Paul Mackerras
, possibly looping forever if the length was zero. This patch changes the behaviour to terminate the scan when a corrupted partition is found. Signed-off-by: Utz Bacher <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> diff -urN linux-2.5/arch/ppc64/kernel/nvram.c tes

[PATCH] PPC64 allow xmon=on,off,early

2005-03-17 Thread Paul Mackerras
allow 'xmon' or 'xmon=early' to enter xmon very early during boot. allow 'xmon=on' to just enable it, or 'xmon=off' to disable it. Signed-off-by: Olaf Hering <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> diff -urN linux-2.5/arch/ppc64/kernel/setup.c test/arch/

[PATCH] PPC64 remove unnecessary ISA ioports

2005-03-17 Thread Paul Mackerras
During boot, pSeries_request_regions() should only request I/O ports for legacy ISA in the case that ISA exists on the system. Add a check for this. This patch was suggested by Anton. Signed-off-by: John Rose <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> di

[PATCH 7/8] PPC64 use pSeries reconfig notifier for cpu DLPAR

2005-03-17 Thread Paul Mackerras
]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> arch/ppc64/kernel/pSeries_smp.c | 126 1 files changed, 126 insertions(+) Index: linux-2.6.11-bk10/arch/ppc64/kernel/pSeries_smp.c === --- linux-2.6.1

[PATCH 3/8] PPC64 introduce pSeries_reconfig.[ch]

2005-03-17 Thread Paul Mackerras
. Patches to migrate code to the notifier api follow in this series. Signed-off-by: Nathan Lynch <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> arch/ppc64/kernel/Makefile |2 arch/ppc64/kernel/pSeries_reconfig.c | 446 +++ arch/ppc

<    4   5   6   7   8   9   10   11   12   >