Re: [ppc64] 2.6.29-git7 : offlining a cpu causes an exception

2009-03-31 Thread Sachin Sant
Benjamin Herrenschmidt wrote: On Tue, 2009-03-31 at 14:57 +0530, Sachin Sant wrote: While executing CPU HotPlug[1] tests i observed that during every cpu offline process an exception is thrown. Looks like a BUG_ON() to me... can you look at what other messages just before that ? I

[PATCH 3/3] net/fec_mpc52xx: Don't dereference phy_device if it is NULL

2009-03-31 Thread Grant Likely
From: Grant Likely The FEC Ethernet device isn't always attached to a phy. Be careful not to dereference phy_device if it is NULL. Also eliminates an unnecessary extra function from the ioctl path. Reported-by: Henk Stegeman Signed-off-by: Grant Likely --- drivers/net/fec_mpc52xx.c | 22

[PATCH 2/3] net/fec_mpc52xx: Migrate to net_device_ops.

2009-03-31 Thread Grant Likely
From: Henk Stegeman Since not using net_device_ops gets you shunned out the cool crowd, this patch modifies the fec_mpc52xx Ethernet driver to provide the management hooks via a struct net_device_ops. Reported-by: Henk Stegeman Signed-off-by: Grant Likely --- drivers/net/fec_mpc52xx.c | 36

[PATCH 1/3] net/fec_mpc52xx: fix BUG on missing dma_ops

2009-03-31 Thread Grant Likely
From: Grant Likely The driver triggers a BUG_ON() when allocating DMA buffers because the arch/powerpc dma_ops aren't in the net_device's struct device. This patch fixes the problem by using the parent of_device which does have the correct dma_ops set. Signed-off-by: Grant Likely Reviewed-by:

[PATCH 0/3] Series short description

2009-03-31 Thread Grant Likely
Hi David, Here are the fec_mpc52xx patches which should be picked up for 2.6.29. Patch #1 fixes a dma related BUG_ON() discovered after the merge window opened. #2 & #3 were original a single patch posted prior to the merge window, but not having a s-o-b line from the original author held them up

powerpc: Add dispatch diversion statistics

2009-03-31 Thread Anton Blanchard
PHYP tells us how often a shared processor dispatch changed physical cpus. This can highlight performance problems caused by the hypervisor. Signed-off-by: Anton Blanchard --- Index: linux-2.6/arch/powerpc/include/asm/lppaca.h ===

powerpc: Scan for all events in rtasd

2009-03-31 Thread Anton Blanchard
Instead of checking for known events, pass in all 1s so we handle future event types. We were currently missing the IO event type. Signed-off-by: Anton Blanchard --- diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h index 0aa0315..01c1233 100644 --- a/arch/powerpc/i

powerpc: Fix ibm,client-architecture comment

2009-03-31 Thread Anton Blanchard
We specify a 64MB RMO, but the comment says 128MB. Signed-off-by: Anton Blanchard --- diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 7f1b33d..ddd9561 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c @@ -614,7 +614,7 @@ stat

powerpc: Enable relay in pseries_defconfig

2009-03-31 Thread Anton Blanchard
Enable relay in pseries config, ppc64_defconfig had it enabled but pseries did not. Signed-off-by: Anton Blanchard --- diff --git a/arch/powerpc/configs/pseries_defconfig b/arch/powerpc/configs/pseries_defconfig index 61b1008..f1889ab 100644 --- a/arch/powerpc/configs/pseries_defconfig +++ b/a

[patch 2/2] powerpc: Clean up some prom printouts

2009-03-31 Thread anton
Make all messages consistent, some have spaces before the "...", some do not. Signed-off-by: Anton Blanchard --- Index: linux-2.6/arch/powerpc/kernel/prom_init.c === --- linux-2.6.orig/arch/powerpc/kernel/prom_init.c 2009-04-01

[patch 0/2] Some prom_init cleanups

2009-03-31 Thread anton
Some patches to make the ibm,client-architecture behaviour more obvious as well as small formatting fixes. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[patch 1/2] powerpc: Print progress of ibm, client-architecture method

2009-03-31 Thread anton
The ibm,client-architecture method will often cause a reconfiguration reboot. When this happens the last thing we see is: Hypertas detected, assuming LPAR ! Which doesn't explain what just happened. Wrap the ibm,client-architecture so it's clear what is going on: Calling ibm,clie

Broken CONFIG_HIGHPTE

2009-03-31 Thread Benjamin Herrenschmidt
Hi ! Just noticed... And I'll be travelling for a while so with no much time to look at it. Your changes to use the PTE page free batch via RCU on ppc32 broke CONFIG_HIGHPTE for hash32... You rely on passing a page_address() of the PTE page down to the freeing layer. That doesn't work for highme

Re: [PATCH 00/14] Add common OF device tree support for MDIO busses

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 11:16 PM, David Miller wrote: > From: Grant Likely > Date: Tue, 31 Mar 2009 22:56:38 -0600 > >> At the very least, please consider picking up patches 2 & 3.  They >> address a real bug (unrelated to the MDIO rework), and only touch the >> MPC5200 FEC driver. > > Please sub

Re: [PATCH 00/14] Add common OF device tree support for MDIO busses

2009-03-31 Thread David Miller
From: Grant Likely Date: Tue, 31 Mar 2009 22:56:38 -0600 > At the very least, please consider picking up patches 2 & 3. They > address a real bug (unrelated to the MDIO rework), and only touch the > MPC5200 FEC driver. Please submit them seperately, and I will look them over. Thanks. _

Re: [PATCH 00/14] Add common OF device tree support for MDIO busses

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 9:38 PM, David Miller wrote: > From: Grant Likely > Date: Tue, 31 Mar 2009 19:45:02 -0600 > >> Dammit.  Why did you have to go and sound so reasonable when I was all >> geared up for a pointless flame war. >> >> well... alright... but I reserve the right to be grumpy and s

Re: 8641D with linux 2.6.29 did'n show second cpu

2009-03-31 Thread Kumar Gala
On Mar 31, 2009, at 10:06 AM, Eduard Fuchs wrote: Hi, Am Dienstag 31 März 2009 15:20:21 schrieb Kumar Gala: On Mar 31, 2009, at 5:15 AM, Eduard Fuchs wrote: Hi, I'm testing the evaluation board from freescale (MPC8641DHPCN) with the latest linux kernel (2.6.29) and the second core seems dis

Re: [PATCH 00/14] Add common OF device tree support for MDIO busses

2009-03-31 Thread David Miller
From: Grant Likely Date: Tue, 31 Mar 2009 19:45:02 -0600 > Dammit. Why did you have to go and sound so reasonable when I was all > geared up for a pointless flame war. > > well... alright... but I reserve the right to be grumpy and surly for > a few days. :-) Just in case you decided to conti

RE: PowerPC 460EX AD7416 Temperature Sensor

2009-03-31 Thread Tirumala Reddy Marri
Did you have dts entries for IIC in device tree ? also did you have I2C enabled in "make menuconfig" "device drivers -> i2c support --> I2C bus support -> IBM ppc 4xx On chip I2C support " selected. Then you should i2c see an entry /proc/devices . Use that major address and create a device nod

Re: Problem with module_init?

2009-03-31 Thread Sean MacLennan
8d1cf34e7ad5c7738ce20d20bd7f002f562cb8b5 is first bad commit commit 8d1cf34e7ad5c7738ce20d20bd7f002f562cb8b5 Author: Benjamin Herrenschmidt Date: Thu Mar 19 19:34:08 2009 + powerpc/mm: Tweak PTE bit combination definitions This patch tweaks the way some PTE bit combinations are

Re: [PATCH 00/14] Add common OF device tree support for MDIO busses

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 4:22 PM, David Miller wrote: > From: Grant Likely > Date: Tue, 31 Mar 2009 16:19:42 -0600 > >> On Tue, Mar 31, 2009 at 3:57 PM, David Miller wrote: >> > It therefore didn't get any -next exposure, so it's unreasonable to >> > merge this stuff now. >> >> Since when has sit

Re: kexec: proc/device-tree/chosen/linux,kernel-end: No such file or directory

2009-03-31 Thread Geoff Levand
On 03/31/2009 04:52 PM, Michael Ellerman wrote: > On Tue, 2009-03-31 at 18:25 +0200, Geert Uytterhoeven wrote: >> With today's kernel, I can no longer kexec any kernel on PS3: >> >> | /proc/device-tree/chosen/linux,kernel-end: No such file or directory >> | Could not get memory layout >> >> Today

Re: Add hvc_console to MAINTAINERS

2009-03-31 Thread Josh Boyer
On Wed, Apr 01, 2009 at 11:20:50AM +1100, Michael Ellerman wrote: >Add a MAINTAINERS entry for the hypervisor virtual console driver. > >Signed-off-by: Michael Ellerman Acked-by: Josh Boyer >--- > MAINTAINERS |6 ++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >How about this? >

Add hvc_console to MAINTAINERS

2009-03-31 Thread Michael Ellerman
Add a MAINTAINERS entry for the hypervisor virtual console driver. Signed-off-by: Michael Ellerman --- MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) How about this? diff --git a/MAINTAINERS b/MAINTAINERS index 1c2ca1d..854437a 100644 --- a/MAINTAINERS +++ b/MAINTA

Re: [PATCH] Add hvc_console to MAINTAINERS

2009-03-31 Thread Michael Ellerman
On Tue, 2009-03-31 at 19:50 -0400, Josh Boyer wrote: > On Wed, Apr 01, 2009 at 10:44:00AM +1100, Michael Ellerman wrote: > >On Tue, 2009-03-31 at 09:29 -0400, Josh Boyer wrote: > >> Add a MAINTAINERS entry for the hypervisor virtual console support > >> used on IBM POWER servers. > >> > >> Signed-

PowerPC 460EX AD7416 Temperature Sensor

2009-03-31 Thread Henry Bausley
Does anyone know if the I2C temperature sensor is functioning on the AMCC 460EX? When I do a cat /proc/ad7416 I get the following crash. Unable to handle kernel paging request for data at address 0x Faulting instruction address: 0xc02cbe28 Oops: Kernel access of bad area, sig: 11 [#1] Po

Re: [PATCH] Add hvc_console to MAINTAINERS

2009-03-31 Thread Josh Boyer
On Tue, Mar 31, 2009 at 02:40:58PM -0700, Joe Perches wrote: >On Tue, 2009-03-31 at 14:22 -0700, Andrew Morton wrote: >> On Tue, 31 Mar 2009 14:10:23 -0700 >> Joe Perches wrote: >> > On Tue, 2009-03-31 at 09:29 -0400, Josh Boyer wrote: >> > > Add a MAINTAINERS entry for the hypervisor virtual cons

Re: kexec: proc/device-tree/chosen/linux,kernel-end: No such file or directory

2009-03-31 Thread Michael Ellerman
On Tue, 2009-03-31 at 18:25 +0200, Geert Uytterhoeven wrote: > With today's kernel, I can no longer kexec any kernel on PS3: > > | /proc/device-tree/chosen/linux,kernel-end: No such file or directory > | Could not get memory layout > > Today's bad version: 15f7176eb1cccec0a332541285ee752b935c1c85

Re: [PATCH] Add hvc_console to MAINTAINERS

2009-03-31 Thread Josh Boyer
On Wed, Apr 01, 2009 at 10:44:00AM +1100, Michael Ellerman wrote: >On Tue, 2009-03-31 at 09:29 -0400, Josh Boyer wrote: >> Add a MAINTAINERS entry for the hypervisor virtual console support >> used on IBM POWER servers. >> >> Signed-off-by: Josh Boyer >> --- >> >> diff --git a/MAINTAINERS b/MAIN

Re: [PATCH] Add hvc_console to MAINTAINERS

2009-03-31 Thread Michael Ellerman
On Tue, 2009-03-31 at 09:29 -0400, Josh Boyer wrote: > Add a MAINTAINERS entry for the hypervisor virtual console support > used on IBM POWER servers. > > Signed-off-by: Josh Boyer > --- > > diff --git a/MAINTAINERS b/MAINTAINERS > index c5f4e9d..387ad45 100644 > --- a/MAINTAINERS > +++ b/MAINTA

Re: 8641D with linux 2.6.29 did'n show second cpu

2009-03-31 Thread Kumar Gala
On Mar 31, 2009, at 10:06 AM, Eduard Fuchs wrote: Hi, Am Dienstag 31 März 2009 15:20:21 schrieb Kumar Gala: On Mar 31, 2009, at 5:15 AM, Eduard Fuchs wrote: Hi, I'm testing the evaluation board from freescale (MPC8641DHPCN) with the latest linux kernel (2.6.29) and the second core seems dis

Re: using IRQ1 in mpc5121ads

2009-03-31 Thread David Gibson
On Mon, Mar 30, 2009 at 10:33:11AM -0400, sylvain louchez wrote: > Hello, I'm a newbie looking for where the documentation and implementation > model can be found. > > > > My custom driver is looking for an interrupt notification from the kernel - > and it registers in the /proc/interrupts file

Re: [PATCH 6/8] --- arch/powerpc/boot/dts/socrates.dts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)

2009-03-31 Thread David Gibson
On Tue, Mar 31, 2009 at 02:37:33PM +0200, Wolfgang Grandegger wrote: > Index: linux-2.6/arch/powerpc/boot/dts/socrates.dts > === > --- linux-2.6.orig/arch/powerpc/boot/dts/socrates.dts 2009-03-31 > 13:24:38.078719288 +0200 > +++ linux

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread David Gibson
On Tue, Mar 31, 2009 at 02:43:39PM +0200, Wolfgang Grandegger wrote: > The I2c node property "fsl,preserve-clocking" allows to overtake the > clock settings from the boot loader and avoids the hard-coded setting. Hrm. This is dubious. The device tree should generally describe hardware, not OS/dr

Re: [ppc64] 2.6.29-git7 : offlining a cpu causes an exception

2009-03-31 Thread Benjamin Herrenschmidt
On Tue, 2009-03-31 at 14:57 +0530, Sachin Sant wrote: > While executing CPU HotPlug[1] tests i observed that during > every cpu offline process an exception is thrown. Looks like a BUG_ON() to me... can you look at what other messages just before that ? That or lookup where the PC and LR values a

Re: [PATCH 00/14] Add common OF device tree support for MDIO busses

2009-03-31 Thread David Miller
From: Grant Likely Date: Tue, 31 Mar 2009 16:19:42 -0600 > On Tue, Mar 31, 2009 at 3:57 PM, David Miller wrote: > > It therefore didn't get any -next exposure, so it's unreasonable to > > merge this stuff now. > > Since when has sitting in a -next tree been a requirement for merging > when the

Re: MPC83xx console : no output after handover

2009-03-31 Thread Matthew L. Creech
On Tue, Mar 31, 2009 at 5:26 PM, Gary Thomas wrote: > > The fact that you get the ttyS1 line printed is interesting.  At > this point, the kernel is switching from raw console I/O (only > suitable for bring-up messages) to the general serial driver > (interrupt driven, etc).  I'm curious about wha

Re: [PATCH 00/14] Add common OF device tree support for MDIO busses

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 3:57 PM, David Miller wrote: > From: Grant Likely > Date: Tue, 31 Mar 2009 02:26:43 -0600 > >> David, as I mentioned below, I'd really like to get the core changes >> (1, 4, 5  6) merged into 2.6.30 (assuming Andy confirms they are okay). > > No, sorry. > > We could have w

Re: [PATCH 00/14] Add common OF device tree support for MDIO busses

2009-03-31 Thread David Miller
From: Grant Likely Date: Tue, 31 Mar 2009 02:26:43 -0600 > David, as I mentioned below, I'd really like to get the core changes > (1, 4, 5 6) merged into 2.6.30 (assuming Andy confirms they are okay). No, sorry. We could have worked out the interdependencies before the merge window openned up.

Re: MPC83xx console : no output after handover

2009-03-31 Thread Scott Wood
On Tue, Mar 31, 2009 at 04:30:26PM -0400, Matthew L. Creech wrote: > (Sorry if this is a dupe, but I think my first attempt was filtered out) No, it's a dupe. :-) > I'm trying to get Linux booting on a custom board based on the MPC8313 > ERDB, but there's no output after the console is transferre

Re: [PATCH] Add hvc_console to MAINTAINERS

2009-03-31 Thread Joe Perches
On Tue, 2009-03-31 at 14:22 -0700, Andrew Morton wrote: > On Tue, 31 Mar 2009 14:10:23 -0700 > Joe Perches wrote: > > On Tue, 2009-03-31 at 09:29 -0400, Josh Boyer wrote: > > > Add a MAINTAINERS entry for the hypervisor virtual console support > > > used on IBM POWER servers. > > > diff --git a/MA

Re: Interrupts on GPIO

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 2:59 PM, Yann Pelletier wrote: >> Message: 7 >> Date: Mon, 30 Mar 2009 10:32:17 -0600 >> From: Grant Likely >> Subject: > To: Yann Pelletier >> Cc: "linuxppc-dev@ozlabs.org" >> Message-ID: >>       >> Content-Type: text/plain; charset=ISO-8859-1 >> >> On Mon, Mar 30, 20

Re: MPC83xx console : no output after handover

2009-03-31 Thread Gary Thomas
Matthew L. Creech wrote: > On Tue, Mar 31, 2009 at 4:45 PM, Gary Thomas wrote: >> What does your command line (boot args) when it fails? It should >> probably have something like "console=ttyS0,115200" in it. >> > > Yes, that's what I'm using. It also seems to be the default if none > is suppli

Re: [PATCH] Add hvc_console to MAINTAINERS

2009-03-31 Thread Andrew Morton
On Tue, 31 Mar 2009 14:10:23 -0700 Joe Perches wrote: > On Tue, 2009-03-31 at 09:29 -0400, Josh Boyer wrote: > > Add a MAINTAINERS entry for the hypervisor virtual console support > > used on IBM POWER servers. > > > > Signed-off-by: Josh Boyer > > --- > > > > diff --git a/MAINTAINERS b/MAINTA

Re: [PATCH] Add hvc_console to MAINTAINERS

2009-03-31 Thread Joe Perches
On Tue, 2009-03-31 at 09:29 -0400, Josh Boyer wrote: > Add a MAINTAINERS entry for the hypervisor virtual console support > used on IBM POWER servers. > > Signed-off-by: Josh Boyer > --- > > diff --git a/MAINTAINERS b/MAINTAINERS > index c5f4e9d..387ad45 100644 > --- a/MAINTAINERS > +++ b/MAINTA

Re: MPC83xx console : no output after handover

2009-03-31 Thread Matthew L. Creech
On Tue, Mar 31, 2009 at 4:45 PM, Gary Thomas wrote: > > What does your command line (boot args) when it fails?  It should > probably have something like "console=ttyS0,115200" in it. > Yes, that's what I'm using. It also seems to be the default if none is supplied. For the sake of completeness,

RE: Interrupts on GPIO

2009-03-31 Thread Yann Pelletier
> Message: 7 > Date: Mon, 30 Mar 2009 10:32:17 -0600 > From: Grant Likely > Subject: > To: Yann Pelletier > Cc: "linuxppc-dev@ozlabs.org" > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > On Mon, Mar 30, 2009 at 9:57 AM, Yann Pelletier > wrote: > > > > Hi, > > I'd like

Re: Build error

2009-03-31 Thread Anton Vorontsov
On Tue, Mar 31, 2009 at 10:41:38PM +0200, Segher Boessenkool wrote: > ERROR: "fsl_pq_mdio_bus_name" [drivers/net/gianfar_driver.ko] > undefined! > > I'll ask Linus to pull anyway though. > > Cheers, > Ben. I believe this is fixed in net-next (and possible linus

Re: Build error

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 2:41 PM, Segher Boessenkool wrote: > ERROR: "fsl_pq_mdio_bus_name" [drivers/net/gianfar_driver.ko] > undefined! > I believe this is fixed in net-next (and possible linus has already pulled that in.) >>> >>> FWIW, I can't reproduce the issue neither in

Re: Build error

2009-03-31 Thread Grant Likely
On Mon, Mar 30, 2009 at 5:18 PM, Benjamin Herrenschmidt wrote: > On Mon, 2009-03-30 at 17:59 +0400, Anton Vorontsov wrote: >> On Mon, Mar 30, 2009 at 08:51:38AM -0500, Kumar Gala wrote: >> > >> > On Mar 29, 2009, at 10:25 PM, Benjamin Herrenschmidt wrote: >> > >> >> My next branch (after merging f

Re: MPC83xx console : no output after handover

2009-03-31 Thread Gary Thomas
Matthew L. Creech wrote: > (Sorry if this is a dupe, but I think my first attempt was filtered out) Nope, it made it. > Hi, > > I'm trying to get Linux booting on a custom board based on the MPC8313 > ERDB, but there's no output after the console is transferred. I get > the following: > > Usin

Re: Build error

2009-03-31 Thread Segher Boessenkool
ERROR: "fsl_pq_mdio_bus_name" [drivers/net/gianfar_driver.ko] undefined! I'll ask Linus to pull anyway though. Cheers, Ben. I believe this is fixed in net-next (and possible linus has already pulled that in.) FWIW, I can't reproduce the issue neither in benh/powerpc.git `next' branch nor in

MPC83xx console : no output after handover

2009-03-31 Thread Matthew L. Creech
(Sorry if this is a dupe, but I think my first attempt was filtered out) Hi, I'm trying to get Linux booting on a custom board based on the MPC8313 ERDB, but there's no output after the console is transferred. I get the following: Using MPC831x RDB machine description Linux version 2.6.29 (mlcr

RE: [PATCH 4/6] powerpc: Add mmc-spi-slot bindings

2009-03-31 Thread Yann Pelletier
Original post: Anton Vorontsov avorontsov at ru.mvista.com Sat Jan 24 06:50:37 EST 2009 Sorry if this looks crappy, it's paste from web archive since I was not on the list at that time. I've applied this patch set [1 to 6] to enable SPI device to be listed in the device tree instead of platfo

MPC83xx console

2009-03-31 Thread Matthew L. Creech
Hi, I'm trying to get Linux booting on a custom board based on the MPC8313 ERDB, but there's no output after the console is transferred. I get the following: Using MPC831x RDB machine description Linux version 2.6.29 (mlcre...@lap) (gcc version 4.3.2 (Sourcery G++ Lite 4.3-50 ) ) #2 PREEMPT Tue

Re: [PATCH v2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 2:01 PM, Wolfgang Grandegger wrote: > The i2c node property "fsl,preserve-clocking" allows to overtake the > clock settings from the boot loader avoiding the hard-coded settings. > > Signed-off-by: Wolfgang Grandegger Acked-by: Grant Likely > --- >  Documentation/powerp

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfgang Grandegger
Grant Likely wrote: > 2009/3/31 Wolfram Sang : > - > - mpc_i2c_setclock(i2c); > + > + if (set_clock) > + mpc_i2c_setclock(i2c); Can't we drop 'set_clock' with something like this here? + if (!of_get_property(op->node, "fsl,preserve-clocking", NULL)) {

Re: 8641D with linux 2.6.29 did'n show second cpu

2009-03-31 Thread Becky Bruce
On Mar 31, 2009, at 10:06 AM, Eduard Fuchs wrote: Hi, Am Dienstag 31 März 2009 15:20:21 schrieb Kumar Gala: On Mar 31, 2009, at 5:15 AM, Eduard Fuchs wrote: Hi, I'm testing the evaluation board from freescale (MPC8641DHPCN) with the latest linux kernel (2.6.29) and the second core seems disa

[PATCH v2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfgang Grandegger
The i2c node property "fsl,preserve-clocking" allows to overtake the clock settings from the boot loader avoiding the hard-coded settings. Signed-off-by: Wolfgang Grandegger --- Documentation/powerpc/dts-bindings/fsl/i2c.txt |2 ++ drivers/i2c/busses/i2c-mpc.c | 20 ++

Re: [PATCH 3/8] powerpc/85xx: Add support for the "socrates" board (MPC8544).

2009-03-31 Thread Wolfgang Grandegger
Hi Grant, Grant Likely wrote: > On Tue, Mar 31, 2009 at 6:37 AM, Wolfgang Grandegger > wrote: >> Supported are Ethernet, serial console, I2C, I2C-based RTC and >> temperature sensors, NOR and NAND flash, PCI, USB, CAN and Lime >> display controller. >> >> The multiplexing of FPGA interrupts onto

Re: [PATCH] net/fec_mpc52xx: fix BUG on missing dma_ops

2009-03-31 Thread Grant Likely
Thanks Becky. g. 2009/3/31 Becky Bruce : > > On Mar 30, 2009, at 9:25 PM, Grant Likely wrote: > >> From: Grant Likely >> >> The driver triggers a BUG_ON() when allocating DMA buffers if the >> arch/powerpc dma_ops from the of_platform device are not copied >> into net_device structure. >> >> Sig

Re: [PATCH v4 3/4] powerpc: NAND: FSL UPM: document new bindings

2009-03-31 Thread Anton Vorontsov
On Mon, Mar 30, 2009 at 12:02:44PM +0200, Wolfgang Grandegger wrote: > This patch adds documentation for the new NAND FSL UPM bindings for: > > NAND: FSL-UPM: add multi chip support > NAND: FSL-UPM: Add wait flags to support board/chip specific delays > > It also documents the old binding for "

Re: [PATCH v4 2/4] NAND: FSL-UPM: Add wait flags to support board/chip specific delays

2009-03-31 Thread Anton Vorontsov
On Mon, Mar 30, 2009 at 12:02:43PM +0200, Wolfgang Grandegger wrote: > The NAND flash on the TQM8548_BE modules requires a short delay after > running the UPM pattern. The TQM8548_BE requires a further short delay > after writing out a buffer. Normally the R/B pin should be checked, but > it's not

Re: [PATCH v4 1/4] NAND: FSL-UPM: add multi chip support

2009-03-31 Thread Anton Vorontsov
On Mon, Mar 30, 2009 at 12:02:42PM +0200, Wolfgang Grandegger wrote: > This patch adds support for multi-chip NAND devices to the FSL-UPM > driver. This requires support for multiple GPIOs for the RNB pins. > The NAND chips are selected through address lines defined by the > FDT property "fsl,upm-a

Re: [PATCH] net/fec_mpc52xx: fix BUG on missing dma_ops

2009-03-31 Thread Becky Bruce
On Mar 30, 2009, at 9:25 PM, Grant Likely wrote: From: Grant Likely The driver triggers a BUG_ON() when allocating DMA buffers if the arch/powerpc dma_ops from the of_platform device are not copied into net_device structure. Signed-off-by: Grant Likely --- Becky, does this look better to y

[PATCH] ucc_geth: Pass proper device to DMA routines, otherwise oops happens

2009-03-31 Thread Anton Vorontsov
The driver should pass a device that actually specifies internal DMA ops, but currently it passes netdev's device, which is wrong and that causes following oops: Kernel BUG at c01c4df8 [verbose debug info unavailable] Oops: Exception in kernel mode, sig: 5 [#1] [...] NIP [c01c4df8] get_new_skb+0x7

Problem with module_init?

2009-03-31 Thread Sean MacLennan
With the latest from Linus' tree, I get the following oops: Oops: Kernel access of bad area, sig: 11 [#1] Warp Modules linked in: simple(+) NIP: d14b8000 LR: c0001420 CTR: REGS: cf2a1df0 TRAP: 0400 Not tainted (2.6.29-pika) MSR: 00029000 CR: 2422 XER: TASK = cf896100[16

[PATCH] fsl_pq_mdio: Revive UCC MDIO support

2009-03-31 Thread Anton Vorontsov
commit 1577ecef766650a57fceb171acee2b13cbfaf1d3 ("netdev: Merge UCC and gianfar MDIO bus drivers") introduced a regression so that UCC MDIO buses no longer work. This is because fsl_pq_mdio driver wrongly masks all non-TBI PHYs for !fsl,gianfar-mdio buses, while it should do that only for fsl,gian

Re: Patch: Fix fec_mpc52xx driver to use net_device_ops

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 8:48 AM, Stephen Hemminger wrote: > On Tue, 31 Mar 2009 12:44:15 +0200 >> +static const struct net_device_ops mpc52xx_fec_netdev_ops = { >> +       .ndo_open               = mpc52xx_fec_open, >> +       .ndo_stop               = mpc52xx_fec_close, >> +       .ndo_start_xmit

Re: Patch: Fix fec_mpc52xx driver to use net_device_ops

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 8:48 AM, Stephen Hemminger wrote: > On Tue, 31 Mar 2009 12:44:15 +0200 > Henk Stegeman wrote: > >> Fix fec_mpc52xx driver to use net_device_ops and to be careful not to >> dereference phy_device if a phy has not yet been connected. >> >> Signed-off-by: Henk Stegeman Hi H

kexec: proc/device-tree/chosen/linux,kernel-end: No such file or directory

2009-03-31 Thread Geert Uytterhoeven
With today's kernel, I can no longer kexec any kernel on PS3: | /proc/device-tree/chosen/linux,kernel-end: No such file or directory | Could not get memory layout Today's bad version: 15f7176eb1cccec0a332541285ee752b935c1c85 Yesterday's good version: 0d34fb8e93ceba7b6dad0062dbb4a0813bacd75b Befo

Re: [PATCH 0/8] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 6:49 AM, Wolfgang Grandegger wrote: > Please *FORGET* this series of patches. Only the I2C related patches are > relevant but I accidentally sent out the complete patch stack :-(. I > will resent them in a second. > > Sorry for any inconvenience this has caused. Heh, no w

Re: [PATCH] linux-next remove wmb() from ide-dma-sff.c and scc_pata.c

2009-03-31 Thread Atsushi Nemoto
On Tue, 31 Mar 2009 09:51:53 +0200 (CEST), Geert Uytterhoeven wrote: > > Followup to "[PATCH 03/10] ide: destroy DMA mappings after ending DMA" > > email on March 14th: > > http://lkml.org/lkml/2009/3/14/17 > > > > No maintainer is listed for "Toshiba CELL Reference Set IDE" > > (BLK_DEV_CE

Re: powerpc/85xx: Add support for the "socrates" board (MPC8544)

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 9:54 AM, Anton Vorontsov wrote: > On Tue, Mar 31, 2009 at 09:05:28AM -0600, Grant Likely wrote: > [...] >> > +       soc8...@e000 { >> > +               #address-cells = <1>; >> > +               #size-cells = <1>; >> > +               device_type = "soc

Re: [PATCH 3/8] powerpc/85xx: Add support for the "socrates" board (MPC8544).

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 6:37 AM, Wolfgang Grandegger wrote: > Supported are Ethernet, serial console, I2C, I2C-based RTC and > temperature sensors, NOR and NAND flash, PCI, USB, CAN and Lime > display controller. > > The multiplexing of FPGA interrupts onto PowerPC interrupt lines is > supported

Re: powerpc/85xx: Add support for the "socrates" board (MPC8544)

2009-03-31 Thread Anton Vorontsov
On Tue, Mar 31, 2009 at 09:05:28AM -0600, Grant Likely wrote: [...] > > +       soc8...@e000 { > > +               #address-cells = <1>; > > +               #size-cells = <1>; > > +               device_type = "soc"; > Drop device_type here too. > >>> Grrr, I just realized

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Grant Likely
2009/3/31 Wolfram Sang : > >> >> - >> >> -  mpc_i2c_setclock(i2c); >> >> + >> >> +  if (set_clock) >> >> +          mpc_i2c_setclock(i2c); >> > >> > Can't we drop 'set_clock' with something like this here? >> > >> > +   if (!of_get_property(op->node, "fsl,preserve-clocking", NULL)) { >> > + >> > +

Re: [PATCH 5/8] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 6:37 AM, Wolfgang Grandegger wrote: > This patch makes the I2C bus speed configurable by using the I2C node > property "clock-frequency". If the property is not defined, the old > fixed clock settings will be used for backward comptibility. > > The generic I2C clock proper

Re: 8641D with linux 2.6.29 did'n show second cpu

2009-03-31 Thread Eduard Fuchs
Hi, Am Dienstag 31 März 2009 15:20:21 schrieb Kumar Gala: > On Mar 31, 2009, at 5:15 AM, Eduard Fuchs wrote: > > Hi, > > > > I'm testing the evaluation board from freescale (MPC8641DHPCN) with > > the latest > > linux kernel (2.6.29) and the second core seems disabled. CONFIG_SPM > > is > > enable

Re: powerpc/85xx: Add support for the "socrates" board (MPC8544)

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 7:36 AM, Wolfgang Grandegger wrote: > Grant Likely wrote: >> On Tue, Mar 31, 2009 at 3:35 AM, Wolfgang Grandegger >> wrote: >>> Grant Likely wrote: I agree 100% with David's comments, and I have some additional ones below. On Thu, Mar 19, 2009 at 9:26 AM,

Re: Patch: Fix fec_mpc52xx driver to use net_device_ops

2009-03-31 Thread Stephen Hemminger
On Tue, 31 Mar 2009 12:44:15 +0200 Henk Stegeman wrote: > Fix fec_mpc52xx driver to use net_device_ops and to be careful not to > dereference phy_device if a phy has not yet been connected. > > Signed-off-by: Henk Stegeman > > diff --git a/drivers/net/fec_mpc52xx.c b/drivers/net/fec_mpc52xx.c

Re: [PATCH] ucc_geth: Rework the TX logic.

2009-03-31 Thread Scott Wood
Joakim Tjernlund wrote: I am a bit confused, what isn't worth it? Enabling cacheing on MURAM, at least when used for buffer descriptors. The cache line ping-pong would probably outweigh the cost of the uncached accesses. Currently MURAM isn't used by ucc_geth, Hmm. I looked in the drive

[PATCH v3] powerpc: Add support for CoreInt delivery of interrupts on MPIC

2009-03-31 Thread Kumar Gala
CoreInt provides a mechansim to deliver the IRQ vector directly into the core on an interrupt (via the SPR EPR) rather than having to go IACK on the PIC. This is suppose to provide an improvment in interrupt latency by reducing the time to get the IRQ vector. Signed-off-by: Kumar Gala --- Ben, t

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfram Sang
> >> - > >> - mpc_i2c_setclock(i2c); > >> + > >> + if (set_clock) > >> + mpc_i2c_setclock(i2c); > > > > Can't we drop 'set_clock' with something like this here? > > > > + if (!of_get_property(op->node, "fsl,preserve-clocking", NULL)) { > > + > > + if (of_get_property(op-

[PATCH] powerpc/85xx: Use fsl, mpc85.. as prefix for memory ctrl & l2-cache nodes

2009-03-31 Thread Kumar Gala
Older devices tree's used "fsl,85.." instead of the preferred "fsl,mpc85.." for the memory controller & l2 cache controller nodes. The EDAC code is the only use of these and has been updated for some time to support both "fsl,85.." and "fsl,mpc85.." Signed-off-by: Kumar Gala --- arch/powerpc/boo

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfgang Grandegger
Wolfram Sang wrote: > On Tue, Mar 31, 2009 at 02:50:29PM +0200, Wolfgang Grandegger wrote: >> The I2c node property "fsl,preserve-clocking" allows to overtake the >> clock settings from the boot loader and avoids the hard-coded setting. >> >> Signed-off-by: Wolfgang Grandegger >> --- >> drivers/i

[PATCH 2/2] ucc_geth: Remove unused header

2009-03-31 Thread Kumar Gala
Now that the driver is exclusively an of_platform driver we no longer use the structs and #defines in fsl_devices.h Signed-off-by: Kumar Gala --- drivers/net/ucc_geth.c |1 - drivers/net/ucc_geth.h |1 - drivers/net/ucc_geth_ethtool.c |1 - 3 files changed, 0 insertio

[PATCH 1/2] gianfar: Remove unused header

2009-03-31 Thread Kumar Gala
Now that the driver is exclusively an of_platform driver we no longer use the structs and #defines in fsl_devices.h Signed-off-by: Kumar Gala --- drivers/net/gianfar.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index dd4

[PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfgang Grandegger
The I2c node property "fsl,preserve-clocking" allows to overtake the clock settings from the boot loader and avoids the hard-coded setting. Signed-off-by: Wolfgang Grandegger --- drivers/i2c/busses/i2c-mpc.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) Index

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread Wolfram Sang
On Tue, Mar 31, 2009 at 02:50:29PM +0200, Wolfgang Grandegger wrote: > The I2c node property "fsl,preserve-clocking" allows to overtake the > clock settings from the boot loader and avoids the hard-coded setting. > > Signed-off-by: Wolfgang Grandegger > --- > drivers/i2c/busses/i2c-mpc.c | 24

Re: powerpc/85xx: Add support for the "socrates" board (MPC8544)

2009-03-31 Thread Wolfgang Grandegger
Grant Likely wrote: > On Tue, Mar 31, 2009 at 3:35 AM, Wolfgang Grandegger > wrote: >> Grant Likely wrote: >>> I agree 100% with David's comments, and I have some additional ones below. >>> >>> On Thu, Mar 19, 2009 at 9:26 AM, Wolfgang Grandegger >>> wrote: + soc8...@e000 {

Re: [PATCH] powerpc: Remove unused symbols from fsl_devices.h

2009-03-31 Thread Kumar Gala
On Mar 28, 2009, at 4:07 PM, Grant Likely wrote: From: Grant Likely Remove old artifacts leftover from the platform driver gianfar and fsl_i2c drivers. These symbols became unused when the drivers were migrated over to use the of_platform bus. Signed-off-by: Grant Likely --- include/linux

Re: [PATCH] powerpc: Make LOWMEM_CAM_NUM depend on FSL_BOOKE

2009-03-31 Thread Kumar Gala
On Mar 31, 2009, at 7:05 AM, Josh Boyer wrote: The recent addition of CONFIG_LOWMEM_CAM_BOOL and CONFIG_LOWMEM_CAM_NUM cause the latter to show up in configs that do not need it during 'make oldconfig'. Make LOWMEM_CAM_NUM depend on FSL_BOOKE. Signed-off-by: Josh Boyer --- fixed up an app

[PATCH] Add hvc_console to MAINTAINERS

2009-03-31 Thread Josh Boyer
Add a MAINTAINERS entry for the hypervisor virtual console support used on IBM POWER servers. Signed-off-by: Josh Boyer --- diff --git a/MAINTAINERS b/MAINTAINERS index c5f4e9d..387ad45 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2176,6 +2176,11 @@ W: http://www.ia64-linux.org/ T:

Re: powerpc/85xx: Add support for the "socrates" board (MPC8544)

2009-03-31 Thread Grant Likely
On Tue, Mar 31, 2009 at 3:35 AM, Wolfgang Grandegger wrote: > Grant Likely wrote: >> I agree 100% with David's comments, and I have some additional ones below. >> >> On Thu, Mar 19, 2009 at 9:26 AM, Wolfgang Grandegger >> wrote: >>> +       soc8...@e000 { >>> +               #address-cells

Re: 8641D with linux 2.6.29 did'n show second cpu

2009-03-31 Thread Kumar Gala
On Mar 31, 2009, at 5:15 AM, Eduard Fuchs wrote: Hi, I'm testing the evaluation board from freescale (MPC8641DHPCN) with the latest linux kernel (2.6.29) and the second core seems disabled. CONFIG_SPM is enabled but the /proc/cpuinfo shows only one cpu. With original 2.6.27 kernel both

Re: please disable several items in 44x/canyonlands_defconfig

2009-03-31 Thread Josh Boyer
On Tue, Mar 31, 2009 at 10:16:01AM +0800, Cheng Renquan wrote: >These 3 items are generally not used in 44x/canyonlands board, please >consider disable them when you change 44x/canyonlands_defconfig next >time, > >CONFIG_PCI_LEGACY >CONFIG_DAB >CONFIG_VIDEO_OUTPUT_CONTROL I've done a bit broader p

[PATCH 2/2] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Wolfgang Grandegger
This patch makes the I2C bus speed configurable by using the I2C node property "clock-frequency". If the property is not defined, the old fixed clock settings will be used for backward comptibility. The generic I2C clock properties, especially the CPU-specific source clock pre-scaler are defined v

[PATCH 0/2] powerpc: i2c-mpc: make I2C bus speed configurable

2009-03-31 Thread Wolfgang Grandegger
Following (most of) Grant's suggestions to my RFC: http://ozlabs.org/pipermail/linuxppc-dev/2009-March/069820.html this new patch series now uses: - the I2c node property "fsl,preserve-clocking" to overtake the clock settings from the boot loader. The first patch provides this feature and ca

configuring the DMA for using the SCPLC on the MPC5121

2009-03-31 Thread Jacquemin, Jean-Philippe
Dear all, I am trying to configure the MPC5121 to perform DMA transfers from the CPU RAM to the RAM of an FPGA attached on ChipSelect 2. I have to use the LocalPlus Bus and configure the chipselect2 for bust mode and non-multiplexed. I also have to configure a DMA task to copy the content of my b

  1   2   >