Re: [PATCH] BUILD_BUG_ON: make it handle more cases

2009-10-22 Thread Américo Wang
On Tue, Oct 20, 2009 at 10:43 PM, Alan Jenkins wrote: > On 10/20/09, Américo Wang wrote: >> On Tue, Oct 20, 2009 at 02:15:33PM +1030, Rusty Russell wrote: >>>BUILD_BUG_ON used to use the optimizer to do code elimination or fail >>>at link time; it was changed to first the size of a negative array

Re: Page map BUG on program exit

2009-10-22 Thread Jake Magee
Here ya go Jonathan, http://patchwork.ozlabs.org/patch/34047/ http://patchwork.ozlabs.org/patch/34113/ Both patches work for my situation, but I went with the second set as a final patch(34113). - Jake Magee On Thu, Oct 22, 2009 at 3:57 PM, Jonathan Haws wrote: > All, > > I am using a 405EX CPU

[PATCH 3/3] i2c/ibm-iic: drop NO_IRQ

2009-10-22 Thread Wolfram Sang
Drop NO_IRQ as 0 is the preferred way to describe 'no irq' (http://lkml.org/lkml/2005/11/21/221). This change is safe, as the driver is only used on powerpc, where NO_IRQ is 0 anyhow. Signed-off-by: Wolfram Sang Cc: Sean MacLennan Cc: Ben Dooks --- drivers/i2c/busses/i2c-ibm_iic.c | 14 +

[PATCH 2/3] i2c/cpm: drop NO_IRQ

2009-10-22 Thread Wolfram Sang
Drop NO_IRQ as 0 is the preferred way to describe 'no irq' (http://lkml.org/lkml/2005/11/21/221). This change is safe, as the driver is only used on powerpc, where NO_IRQ is 0 anyhow. Signed-off-by: Wolfram Sang Cc: Jochen Friedrich Cc: Ben Dooks --- drivers/i2c/busses/i2c-cpm.c |2 +- 1 f

[PATCH 1/3] i2c/mpc: drop NO_IRQ

2009-10-22 Thread Wolfram Sang
Drop NO_IRQ as 0 is the preferred way to describe 'no irq' (http://lkml.org/lkml/2005/11/21/221). This change is safe, as the driver is only used on powerpc, where NO_IRQ is 0 anyhow. Signed-off-by: Wolfram Sang Cc: Grant Likely Cc: Ben Dooks --- drivers/i2c/busses/i2c-mpc.c |6 +++--- 1 f

i2c/janitoral: drop NO_IRQ from the subsystem

2009-10-22 Thread Wolfram Sang
Hello, after having to deal with NO_IRQ confusion more than once, I decided to start a bit of janitorial work and remove it from the i2c-subsystem. Detail for better using 0 as "no irq" can be found here: http://lkml.org/lkml/2005/11/21/221 Regards, Wolfram __

Guarded load and bus error

2009-10-22 Thread Micha Nelissen
Hi, I'm working on a MPC8548 processor, using its RapidIO bus. I have two kernel trees ported for a board, a linux 2.6.24-ppc, and a linux-2.6.31 (powerpc) kernel. I don't think this bus behaviour is RapidIO specific though, as also the PCI bus and local bus must handle malfunctioning devices

Re: [PATCH] BUILD_BUG_ON: make it handle more cases

2009-10-22 Thread Hollis Blanchard
On Tue, 2009-10-20 at 14:15 +1030, Rusty Russell wrote: > BUILD_BUG_ON used to use the optimizer to do code elimination or fail > at link time; it was changed to first the size of a negative array (a > nicer compile time error), then (in > 8c87df457cb58fe75b9b893007917cf8095660a0) to a bitfield. >

Page map BUG on program exit

2009-10-22 Thread Jonathan Haws
All, I am using a 405EX CPU on a custom board. The layout and hardware is very similar to the AMCC Kilauea board. Here is the output of uname -a: Linux (none) 2.6.30.3-wolverine-dirty #3 PREEMPT Thu Sep 10 11:41:37 MDT 2009 ppc unknown I am getting the following BUG output when my program ex

[PATCH 2/2][v5] powerpc: Make the CMM memory hotplug aware

2009-10-22 Thread Robert Jennings
The Collaborative Memory Manager (CMM) module allocates individual pages over time that are not migratable. On a long running system this can severely impact the ability to find enough pages to support a hotplug memory remove operation. This patch adds a memory isolation notifier and a memory hot

RE: Device Tree Corrupted after unflatten_device_tree()

2009-10-22 Thread Lixin Yao
Hi, David/Michael, Great great finding! I added halting FEC (the Ethernet controller in MPC866) in platforms_fixups() and the problem disappears. Thank you very much! Lixin -Original Message- From: David Gibson [mailto:da...@gibson.dropbear.id.au] Sent: Wednesday, October 21, 2009 6:1

Re: UBIFS problem on MPC8536DS

2009-10-22 Thread Scott Wood
Felix Radensky wrote: Are you aware of Freescale plans to fix the problem in new silicon revisions ? I don't know anything yet -- still trying to get in touch with the relevant hardware people. Also, can you please tell what CPUs are affected by this, except 8536 and 8572. I suppose anyth

Re: [PATCH 3/5 v4] Export memory_sysdev_class

2009-10-22 Thread Dave Hansen
On Thu, 2009-10-22 at 10:31 -0500, Nathan Fontenot wrote: > Dave Hansen wrote: > > On Wed, 2009-10-21 at 09:44 -0500, Nathan Fontenot wrote: > >> Export the memory_sysdev_class structure. This is needed so we can create > >> a 'release' file in sysfs in addition to the existing 'probe' file in > >

Re: [PATCH 3/5 v4] Export memory_sysdev_class

2009-10-22 Thread Nathan Fontenot
Dave Hansen wrote: On Wed, 2009-10-21 at 09:44 -0500, Nathan Fontenot wrote: Export the memory_sysdev_class structure. This is needed so we can create a 'release' file in sysfs in addition to the existing 'probe' file in order to support DLPAR removal of memory on the powerpc/pseries platform.

Re: How to mount rootfs though harddisk when booting?

2009-10-22 Thread Kumar Gala
On Oct 22, 2009, at 9:08 AM, wilbur.chan wrote: mpc85xx with sata harddisk,which has a rootfs on sda3. I ' ve tried to use freescale's kernel image , which is togehther with the mpc85xx board, to successfully mount the sda3 filesystem when booting, But when I used my own kernle, it failed:

How to mount rootfs though harddisk when booting?

2009-10-22 Thread wilbur.chan
mpc85xx with sata harddisk,which has a rootfs on sda3. I ' ve tried to use freescale's kernel image , which is togehther with the mpc85xx board, to successfully mount the sda3 filesystem when booting, But when I used my own kernle, it failed: I am using kernel 2.6.21.7 to mount the harddis

Query: Does Linux kernel 2.6.31 support read/write/erase on ST make M29W128GH Flash memory chip?

2009-10-22 Thread prakash bedge
Hi All, I am searching for M29W128GH support in Linux kernel 2.6.31. On internet I am seeing that there is some patch work for fixup on write buffer coomand on M29W128GH. This shows that Linux kernel 2.6.31 supports the M29W128GH. But I am not seeing any memory mapping for M29W128GH. Can anyone p

Execute In Place (XIP) support for PPC440x5

2009-10-22 Thread Mohit Mewada
Hi List, I am trying to port a board with PPC440x5 on linux-2.6.31. My board has 64MB of flash and 256KB of RAM. Since with this much RAM it is not possible to copy the kernel image to RAM and boot it from there. I was trying to figure-out option in the kernel which will allow me to execute it fro

Re: [PATCH] powerpc: Move ehea hcall definitions into hvcall.h

2009-10-22 Thread Thomas Klein
Anton Blanchard wrote: > Move ehea hcall definitions into hvcall.h. > > Signed-off-by: Anton Blanchard Acked-by: Thomas Klein > --- > > Index: linux.trees.git/arch/powerpc/include/asm/hvcall.h > === > --- linux.trees.git.orig/arc

Re: UBIFS problem on MPC8536DS

2009-10-22 Thread Felix Radensky
Hi, Scott Scott Wood wrote: On Fri, Oct 16, 2009 at 07:01:43AM +0200, Felix Radensky wrote: Thanks for confirmation. So the real problem is eLBC ? What happens if I access other devices on eLBC (e.g. FPGA) simultaneously with NAND or NOR ? AFAICT, the problem is NAND being accessed si