Re: [PATCH v3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-08-18 Thread LiuShuo
于 2011年08月19日 01:00, Matthieu CASTET 写道: b35...@freescale.com a écrit : From: Liu Shuo Freescale FCM controller has a 2K size limitation of buffer RAM. In order to support the Nand flash chip whose page size is larger than 2K bytes, we divide a page into multi-2K pages for MTD layer driver. In

Question about mem parameter in the bootargs

2011-08-18 Thread Carlos Roberto Moratelli
Hi, Does someone knows what is the smallest step to increase the mem parameter in the bootargs? I am running linux in an embedded system where I have a very critical memory constraint and I would like to have mem=3584k instead mem=3M or mem=4M. The Linux boot up sucessfull with mem=3M or mem=4M

Re: [PATCH v3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-08-18 Thread Scott Wood
On 08/18/2011 11:25 AM, Scott Wood wrote: > The NOP restrictions should be documented in the code itself, not just > in the git changelog. Maybe print it to the console when this hack is > used, along with the NOP value read from the ID. If it's less than 4 > for 4K or 8 for 8K, also print a mess

Re: [PATCH v3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-08-18 Thread Scott Wood
On 08/18/2011 12:00 PM, Matthieu CASTET wrote: > b35...@freescale.com a écrit : >> From: Liu Shuo >> >> Freescale FCM controller has a 2K size limitation of buffer RAM. In order >> to support the Nand flash chip whose page size is larger than 2K bytes, >> we divide a page into multi-2K pages for M

[PATCH] powerpc/85xx: remove left-over printks in p1022_ds.c

2011-08-18 Thread Timur Tabi
Two debugging prinkts were accidentally included in the last patch to arch/powerpc/platforms/85xx/p1022_ds.c. Signed-off-by: Timur Tabi --- arch/powerpc/platforms/85xx/p1022_ds.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/85xx/p1022_ds.c b/a

Re: [PATCH v3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-08-18 Thread Matthieu CASTET
b35...@freescale.com a écrit : > From: Liu Shuo > > Freescale FCM controller has a 2K size limitation of buffer RAM. In order > to support the Nand flash chip whose page size is larger than 2K bytes, > we divide a page into multi-2K pages for MTD layer driver. In that case, > we force to set the

Re: [PATCH v3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-08-18 Thread Scott Wood
On 08/17/2011 09:33 PM, b35...@freescale.com wrote: > From: Liu Shuo > > Freescale FCM controller has a 2K size limitation of buffer RAM. In order > to support the Nand flash chip whose page size is larger than 2K bytes, > we divide a page into multi-2K pages for MTD layer driver. In that case, >

Re: build failure with gcc 4.6.0 "array subscript is above array bounds"

2011-08-18 Thread Andreas Schwab
Ian Campbell writes: > I noticed this with a defconfig build: > CC arch/powerpc/kernel/ptrace.o > arch/powerpc/kernel/ptrace.c: In function 'arch_ptrace': > arch/powerpc/kernel/ptrace.c:1502:5: error: array subscript is above > array bounds [-Werror=array-bounds] > arch/po

RE: build failure with gcc 4.6.0 "array subscript is above array bounds"

2011-08-18 Thread David Laight
> Subject: build failure with gcc 4.6.0 "array subscript is > above array bounds" ... > That corresponds to: > tmp = ((unsigned long *)child->thread.fpr) > [TS_FPRWIDTH * (index - PT_FPR0)]; > > child->thread.fpr is "double fpr[32][TS_FPRWIDTH]". > > index has already been

build failure with gcc 4.6.0 "array subscript is above array bounds"

2011-08-18 Thread Ian Campbell
I noticed this with a defconfig build: CC arch/powerpc/kernel/ptrace.o arch/powerpc/kernel/ptrace.c: In function 'arch_ptrace': arch/powerpc/kernel/ptrace.c:1502:5: error: array subscript is above array bounds [-Werror=array-bounds] arch/powerpc/kernel/ptrace.c:1530:5: error