public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* MTD NAND BCH support for 24 bits/1K of ECC correction?
@ 2013-03-28 22:23 Aaron Williams
  2013-03-29  9:02 ` Ivan Djelic
  0 siblings, 1 reply; 3+ messages in thread
From: Aaron Williams @ 2013-03-28 22:23 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ivan Djelic

Hi all,

I am trying to clean up our OCTEON NAND flash driver in the Linux kernel 
and enable support for multi-bit ECC using BCH and am having some 
issues. I am able to successfully work with NAND flash that requires 4 
bits ECC per 512 bytes but I am having issues with one of our boards 
that has a NAND device that requires 24 bits of ECC per 1024 bytes.

I was wondering if ECC of this magnitude has been successfully tested in 
the past. By my calculations I should have 42 bytes of ECC per 1K block 
(m=14, t=24 for 336 bits of ECC data). My problem is that when decoding 
an encoded block I am seeing that nroots != err in decode_bch() after 
find_poly_roots(). I am seeing this for all of the blocks I attempt to 
read. As far as I can tell the data being sent to BCH is good, though it 
might have a few bad bits but nowhere near 24.

I am also seeing this same behavior in my U-Boot code which uses the 
identical bch and nand_bch code.

Cheers,

Aaron Williams

-- 
Aaron Williams
Software Engineer
Cavium, Inc.
(408) 943-7198  (510) 789-8988 (cell)



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

end of thread, other threads:[~2013-03-30  5:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 22:23 MTD NAND BCH support for 24 bits/1K of ECC correction? Aaron Williams
2013-03-29  9:02 ` Ivan Djelic
2013-03-30  5:40   ` Aaron Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox