[PATCH v4 2/2] mtd: mediatek: driver for MTK Smart Device Gen1 NAND
John Crispin
blogic at openwrt.org
Sun May 1 00:32:07 PDT 2016
Hi,
i tried V4 just now. result is as before
if i set the ecc-strength above 16 it will give irq errors during boot
as shown below. values of 16 and below will probe without error but
hexdump on the device node will then throw ecc timeouts.
[ 1.964296] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xda
[ 1.970603] nand: Unknown W29N02GV
[ 1.974038] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048,
OOB size: 64
[ 1.981554] mtk-nand 1100d000.nfi: eccsize 1024 eccstrength 24
[ 2.481827] mtk-ecc 1100e000.ecc: decoder timeout - interrupt did not
arrive)
[ 2.988919] mtk-ecc 1100e000.ecc: decoder NOT idle
[ 3.491818] mtk-ecc 1100e000.ecc: decoder timeout - interrupt did not
arrive)
[ 3.998907] mtk-ecc 1100e000.ecc: decoder NOT idle
[ 4.501819] mtk-ecc 1100e000.ecc: decoder timeout - interrupt did not
arrive)
[ 4.733511] mt7623-gsw switch at 1b100000: port 3 link up
[ 5.008907] mtk-ecc 1100e000.ecc: decoder NOT idle
[ 5.511817] mtk-ecc 1100e000.ecc: decoder timeout - interrupt did not
arrive)
[ 6.018907] mtk-ecc 1100e000.ecc: decoder NOT idle
[ 6.023671] Bad block table not found for chip 0
[ 6.521817] mtk-ecc 1100e000.ecc: decoder timeout - interrupt did not
arrive)
[ 7.028907] mtk-ecc 1100e000.ecc: decoder NOT idle
[ 7.531816] mtk-ecc 1100e000.ecc: decoder timeout - interrupt did not
arrive)
[ 8.038907] mtk-ecc 1100e000.ecc: decoder NOT idle
[ 8.541817] mtk-ecc 1100e000.ecc: decoder timeout - interrupt did not
arrive)
[ 9.048901] mtk-ecc 1100e000.ecc: decoder NOT idle
[ 9.551816] mtk-ecc 1100e000.ecc: decoder timeout - interrupt did not
arrive)
[ 10.058906] mtk-ecc 1100e000.ecc: decoder NOT idle
[ 10.063671] Bad block table not found for chip 0
[ 10.068247] Scanning device for bad blocks
[ 10.072769] Bad eraseblock 1 at 0x000000020000
[ 10.077384] Bad eraseblock 2 at 0x000000040000
[ 10.082017] Bad eraseblock 3 at 0x000000060000
[ 10.086631] Bad eraseblock 4 at 0x000000080000
when i see errors during probe, the core will have received 2 ecc irqs
25: 2058 0 0 0 MT_SYSIRQ 56 Level
mtk-nand
26: 2 0 0 0 MT_SYSIRQ 55 Level
mtk-ecc
to me it is ambigous what FDM actually is. it seems that if FDM is known
the ecc-strength can be calculated and the amount of dts properties can
be reduced even further.
what i dont understand just yet is, do these erros i am seeing mean the
ecc core is not brought up properly or do they come from the dts
properties being bad.
John
More information about the linux-mtd
mailing list