[PATCH] powerpc/85xx: Add machine check handler to fix PCIe erratum on mpc85xx

2012-02-10 Thread shuo.liu
From: Liu Shuo A PCIe erratum of mpc85xx may causes a core hang when a link of PCIe goes down. when the link goes down, Non-posted transactions issued via the ATMU requiring completion result in an instruction stall. At the same time a machine-check exception is generated to the core to allow fur

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

2011-12-09 Thread shuo.liu
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 read/write 2k data repeatedly by issuing FIR_OP_RB/FIR_OP_WB and save them to a large buffer. Signed-off-by: Liu Shuo Signed-off-by

[PATCH 1/2] mtd/nand : set Nand flash page address to FBAR and FPAR correctly

2011-12-09 Thread shuo.liu
From: Liu Shuo If we use the Nand flash chip whose number of pages in a block is greater than 64(for large page), we must treat the low bit of FBAR as being the high bit of the page address due to the limitation of FCM, it simply uses the low 6-bits (for large page) of the combined block/page add

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

2011-12-04 Thread shuo.liu
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 read/write 2k data repeatedly by issuing FIR_OP_RB/FIR_OP_WB and save them to a large buffer. Signed-off-by: Liu Shuo --- v3: -

[PATCH 2/3] mtd/nand : set correct length to FBCR for a non-full-page write

2011-12-04 Thread shuo.liu
From: Liu Shuo When we do a non-full-page write, the length be set to FBCR should not be 'elbc_fcm_ctrl->index', it should be 'elbc_fcm_ctrl->index - elbc_fcm_ctrl->column'. Signed-off-by: Liu Shuo Signed-off-by: Li Yang --- drivers/mtd/nand/fsl_elbc_nand.c |3 ++- 1 files changed, 2 inse

[PATCH 1/3] mtd/nand : use elbc_fcm_ctrl->oob to set FPAR_MS bit of FPAR

2011-12-04 Thread shuo.liu
From: Liu Shuo On both of large-page chip and small-page chip, we always should use 'elbc_fcm_ctrl->oob' to set the FPAR_LP_MS/FPAR_SP_MS bit of FPAR, don't use a overflowed 'column' to set it. Signed-off-by: Liu Shuo Signed-off-by: Li Yang --- drivers/mtd/nand/fsl_elbc_nand.c | 18