All of lore.kernel.org
 help / color / mirror / Atom feed
* brcmnand (iproc): bitflips and ECC errors due to ignored ECC config
@ 2016-01-25 12:59 Rafał Miłecki
  2016-02-08  9:54 ` Rafał Miłecki
  0 siblings, 1 reply; 8+ messages in thread
From: Rafał Miłecki @ 2016-01-25 12:59 UTC (permalink / raw)
  To: Brian Norris, Kamal Dasu, linux-mtd@lists.infradead.org
  Cc: Hauke Mehrtens, bcm-kernel-feedback-list

Hi,

I've a D-Link DIR-885L router with following NAND:
nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64

It uses ECC strength 1 with step size 512 so I created DT with:
nand-ecc-strength = <1>;
nand-ecc-step-size = <512>;

Unfortunately all I get from mtd_read are -EUCLEAN (6%) and -EBADMSG
(94%) errors. It's becase of the following code in brcmnand_setup_dev:
if (chip->ecc.strength == 1) /* Hamming */
cfg->ecc_level = 15;

After removing this special handling of strength 1 I can use my NAND
as expected.

Is there a good reason for this hamming condition? Can we add some way
of using strength 1?

-- 
Rafał

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-02-12 18:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-25 12:59 brcmnand (iproc): bitflips and ECC errors due to ignored ECC config Rafał Miłecki
2016-02-08  9:54 ` Rafał Miłecki
2016-02-08 19:15   ` Kamal Dasu
2016-02-08 19:21     ` Brian Norris
2016-02-08 20:05       ` Kamal Dasu
2016-02-12 12:06         ` Rafał Miłecki
2016-02-12 16:16           ` Kamal Dasu
2016-02-12 18:10             ` Rafał Miłecki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.