[PATCH 3/3] MIPS: BCM63XX: disable unaligned accesses for SMP
Jonas Gorski
jogo at openwrt.org
Mon Jul 21 13:47:28 PDT 2014
Unaligned accesses to flash can cause random wrong reads when having
both cores enabled. This is easily noticable with a jffs2 filesystem,
as jffs2 reads its filenames into an unaligned bytebuffer.
This can cause random boot failures when critical files have their read
filenames corrupted.
Signed-off-by: Jonas Gorski <jogo at openwrt.org>
---
arch/mips/bcm63xx/dev-flash.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/bcm63xx/dev-flash.c b/arch/mips/bcm63xx/dev-flash.c
index 172dd83..f6a7116 100644
--- a/arch/mips/bcm63xx/dev-flash.c
+++ b/arch/mips/bcm63xx/dev-flash.c
@@ -36,6 +36,7 @@ static struct physmap_flash_data flash_data = {
.width = 2,
.parts = mtd_partitions,
.part_probe_types = bcm63xx_part_types,
+ .no_unaligned_access = IS_ENABLED(CONFIG_SMP),
};
static struct resource mtd_resources[] = {
--
2.0.0
More information about the linux-mtd
mailing list