Re: [POWERPC] [RFC] Fix 8xx tlbie definition

2007-11-16 Thread Benjamin Herrenschmidt
On Sat, 2007-11-17 at 01:28 +0300, Vitaly Bordug wrote: > On Sat, 17 Nov 2007 08:06:29 +1100 > Benjamin Herrenschmidt wrote: > > > > > On Fri, 2007-11-16 at 11:28 -0600, Josh Boyer wrote: > > > Git commit e701d269aa28996f3502780951fe1b12d5d66b49 introduced an > > > incorrect definition for _tlbi

Re: [PATCH] powerpc: Fix 44x Machine Check handling

2007-11-16 Thread Benjamin Herrenschmidt
> > Index: linux-work/include/asm-powerpc/cputable.h > > === > > --- linux-work.orig/include/asm-powerpc/cputable.h 2007-11-16 > > 16:14:29.0 +1100 > > +++ linux-work/include/asm-powerpc/cputable.h 2007-11-16 > > 16

Re: [POWERPC] [RFC] Fix 8xx tlbie definition

2007-11-16 Thread Vitaly Bordug
On Sat, 17 Nov 2007 08:06:29 +1100 Benjamin Herrenschmidt wrote: > > On Fri, 2007-11-16 at 11:28 -0600, Josh Boyer wrote: > > Git commit e701d269aa28996f3502780951fe1b12d5d66b49 introduced an > > incorrect definition for _tlbie on PowerPC 8xx platforms. Only the > > address should be passed to t

Re: [RFC/PATCH] powerpc: Fix powerpc 32 bits resource fixup for 64 bits resources

2007-11-16 Thread Vitaly Bordug
On Fri, 16 Nov 2007 18:28:34 +1100 Benjamin Herrenschmidt wrote: > The 32bits powerpc resource fixup code uses unsigned longs to do the > offseting of resources which overflows on platforms such as 4xx where > resources can be 64 bits. > > This fixes it by using resource_size_t instead. > > Howe

Re: [PATCH] powerpc: Fix 44x Machine Check handling

2007-11-16 Thread Kumar Gala
On Nov 16, 2007, at 1:45 AM, Benjamin Herrenschmidt wrote: > > On Fri, 2007-11-16 at 18:41 +1100, Benjamin Herrenschmidt wrote: >> On Fri, 2007-11-16 at 01:40 -0600, Olof Johansson wrote: >>> I'm not sure I like this. It introduces another cpu feature flag, >>> that we'll soon run out of if it's

Re: [PATCH] powerpc: Fix 44x Machine Check handling

2007-11-16 Thread Kumar Gala
On Nov 16, 2007, at 1:21 AM, Benjamin Herrenschmidt wrote: > This removes the old CONFIG_440A which was a pain for multiplatform > kernel and wasn't set properly by default and replaces it with a > CPU feature. This makes Machine Check reporting work correctly on > my Ebony (440GP) board. > > Sig

Re: [POWERPC] [RFC] Fix 8xx tlbie definition

2007-11-16 Thread Kumar Gala
On Nov 16, 2007, at 3:06 PM, Benjamin Herrenschmidt wrote: > > On Fri, 2007-11-16 at 11:28 -0600, Josh Boyer wrote: >> Git commit e701d269aa28996f3502780951fe1b12d5d66b49 introduced an >> incorrect >> definition for _tlbie on PowerPC 8xx platforms. Only the address >> should be >> passed to

Re: [POWERPC] [RFC] Fix 8xx tlbie definition

2007-11-16 Thread Benjamin Herrenschmidt
On Fri, 2007-11-16 at 11:28 -0600, Josh Boyer wrote: > Git commit e701d269aa28996f3502780951fe1b12d5d66b49 introduced an incorrect > definition for _tlbie on PowerPC 8xx platforms. Only the address should be > passed to the function. This patch corrects the definition of _tlbie and the > related

Re: [PATCH] powerpc: Fix 44x Machine Check handling

2007-11-16 Thread Benjamin Herrenschmidt
On Fri, 2007-11-16 at 08:58 -0600, Josh Boyer wrote: > > 2) Please just move the machine check handlers out to individual > ones > > instead of using the generic one. That way you don't need runtime > checks > > between the two (they don't seem to share much of it as-is anyway). > > Anton pinged

Re: [PATCH] powerpc: Add xmon function to dump 44x TLB

2007-11-16 Thread Benjamin Herrenschmidt
On Fri, 2007-11-16 at 17:09 +0100, Segher Boessenkool wrote: > >> +#ifdef CONFIG_44x > >> +static void dump_tlb_44x(void); > >> +#endif > > > > No need to #ifdef this... > > > >> +#ifdef CONFIG_44x > >> +static void dump_tlb_44x(void) > >> +{ > > > > ...or this. > > Erm actually, that last one wo

Re: [PATCH] powerpc: Add xmon function to dump 44x TLB

2007-11-16 Thread Benjamin Herrenschmidt
On Fri, 2007-11-16 at 16:54 +0100, Segher Boessenkool wrote: > > +#ifdef CONFIG_44x > > +static void dump_tlb_44x(void); > > +#endif > > No need to #ifdef this... > > > +#ifdef CONFIG_44x > > +static void dump_tlb_44x(void) > > +{ > > ...or this. I don't want to require binutils to understand

Re: [PATCH] [POWERPC] Add SPRN for Embedded registers specified in PowerISA 2.04

2007-11-16 Thread Kumar Gala
On Nov 16, 2007, at 2:05 PM, Olof Johansson wrote: > Hi, > > > On Fri, Nov 16, 2007 at 01:59:03PM -0600, Kumar Gala wrote: >> +#define SPRN_SPRG8 0x25C /* Special Purpose Register General 8 */ >> +#define SPRN_SPRG9 0x25D /* Special Purpose Register General 8 */ > > Cut and paste error in c

Re: [PATCH] [POWERPC] Add SPRN for Embedded registers specified in PowerISA 2.04

2007-11-16 Thread Olof Johansson
Hi, On Fri, Nov 16, 2007 at 01:59:03PM -0600, Kumar Gala wrote: > +#define SPRN_SPRG8 0x25C /* Special Purpose Register General 8 */ > +#define SPRN_SPRG9 0x25D /* Special Purpose Register General 8 */ Cut and paste error in comment :) -Olof

[PATCH] [POWERPC] Add SPRN for Embedded registers specified in PowerISA 2.04

2007-11-16 Thread Kumar Gala
* Added SPRN for new architectural features added for embedded: - Alternate Time Base (ATB, ATBL, ATBU) - Doorbell Interrupts (IVOR36, IVOR37) - SPRG8/9 - External Proxy (EPR) - External PID load/store (EPLC, EPSC) * Added BUCSR for Freescale Embedded Proces

Re: [PATCH] [POWERPC] 4xx: Use virtual PVR value to init FPU on arch/ppc 440EP

2007-11-16 Thread Josh Boyer
On Fri, 16 Nov 2007 13:20:09 -0600 Kumar Gala <[EMAIL PROTECTED]> wrote: > > On Nov 16, 2007, at 11:29 AM, Josh Boyer wrote: > > > This fixes arch/ppc 440EP platforms to setup the FPU correctly. A > > virtual > > PVR is used, as 440GR platforms share an identical hardware PVR > > value and

Re: [PATCH] [POWERPC] 4xx: Use virtual PVR value to init FPU on arch/ppc 440EP

2007-11-16 Thread Kumar Gala
On Nov 16, 2007, at 11:29 AM, Josh Boyer wrote: > This fixes arch/ppc 440EP platforms to setup the FPU correctly. A > virtual > PVR is used, as 440GR platforms share an identical hardware PVR > value and do > not have an FPU. > > Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> > Index: linux-2

Re: [PATCH] remove dead MAC_ADBKEYCODES

2007-11-16 Thread Geert Uytterhoeven
On Fri, 16 Nov 2007, Dmitry Torokhov wrote: > On Nov 16, 2007 4:44 AM, Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: > > Wrong mailing list ;-) > > > > On Thu, 15 Nov 2007, Stanislav Brabec wrote: > > > It seems, that current kernel source code contains no traces of > > > MAC_ADBKEYCODES and no ref

Configuration of i2c on 8248 (cpm2) help

2007-11-16 Thread Alan Bennett
I'm working to adapt some work by Jochen Friedrich to support CPM2 i2c devices. It appears I have the bus loaded and think I am configuring it properly, but my results tell me different. I see no messages when I attach a i2c monitor after u-boot loads. Can anyone spot what is going wrong based o

[PATCH 1/5] PowerPC 74xx: Katana Qp device tree

2007-11-16 Thread Andrei Dolnikov
Device tree source file for the Emerson Katana Qp board Signed-off-by: Andrei Dolnikov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/katanaqp.dts | 357 + 1 files changed, 357 insertions(+) diff --git a/arch/powerpc/boot/dts/katanaqp.dts b/arch/powerpc/boot

[PATCH 2/5] PowerPC 74xx: Minor updates to MV64x60 boot code

2007-11-16 Thread Andrei Dolnikov
This patch adds new functionality to MV64x60 boot code. The changes are required to access DevCS windows registers and set PCI bus and devfn numbers for MV644x60 PCI/PCI-X interfaces. Signed-off-by: Andrei Dolnikov <[EMAIL PROTECTED]> --- arch/powerpc/boot/mv64x60.c | 74 ++

[PATCH] [POWERPC] 4xx: Use virtual PVR value to init FPU on arch/ppc 440EP

2007-11-16 Thread Josh Boyer
This fixes arch/ppc 440EP platforms to setup the FPU correctly. A virtual PVR is used, as 440GR platforms share an identical hardware PVR value and do not have an FPU. Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> Index: linux-2.6/arch/ppc/kernel/setup.c ==

[POWERPC] [RFC] Fix 8xx tlbie definition

2007-11-16 Thread Josh Boyer
Git commit e701d269aa28996f3502780951fe1b12d5d66b49 introduced an incorrect definition for _tlbie on PowerPC 8xx platforms. Only the address should be passed to the function. This patch corrects the definition of _tlbie and the related tlb flushing functions for 8xx. Signed-off-by: Josh Boyer <[

Re: [PATCH] powerpc: Add xmon function to dump 44x TLB

2007-11-16 Thread Segher Boessenkool
> +#ifdef CONFIG_44x > +static void dump_tlb_44x(void); > +#endif No need to #ifdef this... > +#ifdef CONFIG_44x > +static void dump_tlb_44x(void) > +{ ...or this. Segher ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailm

[PATCH 5/5] PowerPC 74xx: Katana Qp default config

2007-11-16 Thread Andrei Dolnikov
Default kernel config for Emerson Katana Qp board Signed-off-by: Andrei Dolnikov <[EMAIL PROTECTED]> --- arch/powerpc/configs/katanaqp_defconfig | 941 1 files changed, 941 insertions(+) diff --git a/arch/powerpc/configs/katanaqp_defconfig b/arch/powerpc/confi

[PATCH 4/5] PowerPC 74xx: Katana Qp base support

2007-11-16 Thread Andrei Dolnikov
Emerson Katana Qp platform specific code Signed-off-by: Andrei Dolnikov <[EMAIL PROTECTED]> --- arch/powerpc/platforms/embedded6xx/Kconfig|9 + arch/powerpc/platforms/embedded6xx/Makefile |1 arch/powerpc/platforms/embedded6xx/katanaqp.c | 180 ++ 3 files c

[PATCH 3/5] PowerPC 74xx: Katana Qp bootwrapper

2007-11-16 Thread Andrei Dolnikov
Bootwrapper sources for Emerson Katana Qp Signed-off-by: Andrei Dolnikov <[EMAIL PROTECTED]> --- arch/powerpc/boot/Makefile |3 arch/powerpc/boot/cuboot-katanaqp.c | 470 2 files changed, 472 insertions(+), 1 deletion(-) diff --git a/arch/power

Re: [PATCH] powerpc: Add xmon function to dump 44x TLB

2007-11-16 Thread Segher Boessenkool
>> +#ifdef CONFIG_44x >> +static void dump_tlb_44x(void); >> +#endif > > No need to #ifdef this... > >> +#ifdef CONFIG_44x >> +static void dump_tlb_44x(void) >> +{ > > ...or this. Erm actually, that last one would give you a compiler warning ("function defined but not used"), unless you convert th

[PATCH 0/1] PowerPC 74xx: Add Emerson Katana Qp support

2007-11-16 Thread Andrei Dolnikov
Hello folks, The following patch sequence is intended to add support for the Emerson Katana Qp ATCA board based on MPC7448 CPU and Marvell 64460 chipset. The patches are incremental to minor mv64x60 code fixups sent by Mark A. Greer on 11/08/07. Thanks, Andrei. __

Re: [PATCH] powerpc: Fix 44x Machine Check handling

2007-11-16 Thread Josh Boyer
On Fri, 16 Nov 2007 01:40:25 -0600 Olof Johansson <[EMAIL PROTECTED]> wrote: > On Fri, Nov 16, 2007 at 06:21:06PM +1100, Benjamin Herrenschmidt wrote: > > This removes the old CONFIG_440A which was a pain for multiplatform > > kernel and wasn't set properly by default and replaces it with a > > CP

[BUG] 2.6.24-rc2-mm1 - kernel bug on nfs v4

2007-11-16 Thread Kamalesh Babulal
Hi Andrew, The kernel enters the xmon state while running the file system stress on nfs v4 mounted partition. 0:mon> e cpu 0x0: Vector: 300 (Data Access) at [c000dbd4f820] pc: c0065be4: .__wake_up_common+0x44/0xe8 lr: c0069768: .__wake_up+0x54/0x88 sp: c000dbd

Re: [PATCH] remove dead MAC_ADBKEYCODES

2007-11-16 Thread Dmitry Torokhov
On Nov 16, 2007 4:44 AM, Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: > > Wrong mailing list ;-) > > On Thu, 15 Nov 2007, Stanislav Brabec wrote: > > It seems, that current kernel source code contains no traces of > > MAC_ADBKEYCODES and no reference to keyboard_sends_linux_keycodes any > > more.

[PATCH] powerpc: Add xmon function to dump 44x TLB

2007-11-16 Thread Benjamin Herrenschmidt
This adds a function to xmon to dump the content of the 44x processor TLB with a little bit of decoding (but not much). Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- Did that to track down some machine checks I was having while working on PCI support due to 32/64 bits resource scr

Re: [PATCH] powerpc: Fix 44x Machine Check handling

2007-11-16 Thread Benjamin Herrenschmidt
On Fri, 2007-11-16 at 01:40 -0600, Olof Johansson wrote: > I'm not sure I like this. It introduces another cpu feature flag, > that we'll soon run out of if it's used to signify version info per > implementation like this. > > 1) The SET_IVOR could be done from the cpu_setups for 440A instead > (

Re: [PATCH] remove dead MAC_ADBKEYCODES

2007-11-16 Thread Geert Uytterhoeven
Wrong mailing list ;-) On Thu, 15 Nov 2007, Stanislav Brabec wrote: > It seems, that current kernel source code contains no traces of > MAC_ADBKEYCODES and no reference to keyboard_sends_linux_keycodes any > more. > > Attached patch removes them from configuration files. > > Signed-off-by: Stan

Re: hangs after "Freeing unused kernel memory"

2007-11-16 Thread Gerhard Pircher
Original-Nachricht > Datum: Thu, 15 Nov 2007 16:00:09 -0800 > Von: "Siva Prasad" <[EMAIL PROTECTED]> > An: [EMAIL PROTECTED], linuxppc-dev@ozlabs.org > Betreff: hangs after "Freeing unused kernel memory" > Hi, > > This sounds like a familiar problem, but could not get answers i

Re: [PATCH] [POWERPC] Fix link errors for allyesconfig

2007-11-16 Thread David Miller
From: David Miller <[EMAIL PROTECTED]> Date: Thu, 15 Nov 2007 22:23:13 -0800 (PST) > There has to be a nicer way to do this. In fact I think I > just figured out one such technique. > > The whole reason we need these .fixup sections is to encode > a move of -EFAULT into some register, and a cont

[PATCH] powerpc: Fix declaration of pcibios_free_controller

2007-11-16 Thread Benjamin Herrenschmidt
pcibios_free_controller() is now available for both 32 and 64 bits but the header only declares it for 64 bits. This moves the declaration down next to the pcibios_alloc_controller() one. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- include/asm-powerpc/pci-bridge.h |5 +++--

Re: [PATCH] powerpc: Fix 44x Machine Check handling

2007-11-16 Thread Benjamin Herrenschmidt
On Fri, 2007-11-16 at 18:41 +1100, Benjamin Herrenschmidt wrote: > On Fri, 2007-11-16 at 01:40 -0600, Olof Johansson wrote: > > I'm not sure I like this. It introduces another cpu feature flag, > > that we'll soon run out of if it's used to signify version info per > > implementation like this. >