Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-12 Thread Benjamin Herrenschmidt
On Wed, 2008-11-12 at 06:31 -0500, Josh Boyer wrote: On Wed, 12 Nov 2008 15:37:43 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Tue, 2008-11-11 at 18:06 -0600, Hollis Blanchard wrote: The current CHIP11 errata truncates the device tree memory node, and subtracts

Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-12 Thread Hollis Blanchard
On Wed, 2008-11-12 at 22:52 +1100, Benjamin Herrenschmidt wrote: On Wed, 2008-11-12 at 06:31 -0500, Josh Boyer wrote: On Wed, 12 Nov 2008 15:37:43 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Tue, 2008-11-11 at 18:06 -0600, Hollis Blanchard wrote: The current CHIP11

Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-12 Thread Josh Boyer
On Wed, 12 Nov 2008 15:37:43 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Tue, 2008-11-11 at 18:06 -0600, Hollis Blanchard wrote: The current CHIP11 errata truncates the device tree memory node, and subtracts (hardcoded) 4096 bytes. This breaks kernels with larger PAGE_SIZE,

Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-12 Thread Benjamin Herrenschmidt
On Wed, 2008-11-12 at 09:11 -0600, Hollis Blanchard wrote: Forget pages. The errata is about the last 256 bytes of physical memory. I still find it a bit tricky to have memory nodes not aligned on nice fat big boundaries tho. I don't know what you're referring to. The patch I sent

Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-12 Thread Josh Boyer
On Thu, 13 Nov 2008 07:44:56 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Wed, 2008-11-12 at 09:11 -0600, Hollis Blanchard wrote: Forget pages. The errata is about the last 256 bytes of physical memory. I still find it a bit tricky to have memory nodes not aligned on nice

Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-11 Thread David Gibson
On Tue, Nov 11, 2008 at 06:06:46PM -0600, Hollis Blanchard wrote: The current CHIP11 errata truncates the device tree memory node, and subtracts (hardcoded) 4096 bytes. This breaks kernels with larger PAGE_SIZE, since the bootmem allocator assumes that total memory is a multiple of PAGE_SIZE.

Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-11 Thread Benjamin Herrenschmidt
On Tue, 2008-11-11 at 18:06 -0600, Hollis Blanchard wrote: The current CHIP11 errata truncates the device tree memory node, and subtracts (hardcoded) 4096 bytes. This breaks kernels with larger PAGE_SIZE, since the bootmem allocator assumes that total memory is a multiple of PAGE_SIZE.