From: Alessandro Rubini <rubini-list@gnudd.com>
To: rubini-list@gnudd.com
Cc: STEricsson_nomadik_linux@list.st.com, linux@arm.linux.org.uk,
vimal.newwork@gmail.com, linux-mtd@lists.infradead.org,
andrea.gallo@stericsson.com
Subject: Re: [PATCH V4 1/2] Nand driver for Nomadik 8815 SoC (on NHK8815 board)
Date: Thu, 23 Jul 2009 11:07:30 +0200 [thread overview]
Message-ID: <20090723090730.GA24918@mail.gnudd.com> (raw)
In-Reply-To: <20090723065922.GA22450@mail.gnudd.com>
>> 'nand_calculate_ecc' and 'nand_correct_data' (nand_ecc.c) do it in SW.
>> This need not to be re-do.
>
> When I initially tried soft ecc it didn't work, so I thought ours was
> a different algorithm. Most likely I was wrong, I'll recheck ASAP.
It's slightly different. This is what I get (old is nand_calculate_ecc(), new is mine).
old: 65 56 55
new: 56 65 55
old: 33 fc 0c
new: fc 33 0c
old: c0 c0 3c
new: c0 c0 3c
old: c3 3f cf
new: 3f c3 cf
old: c0 0f 30
new: 0f c0 30
old: 03 f3 3f
new: f3 03 3f
So, the standard procedure is not compatible with data already in
flash (written with the older u-boot and kernel provided by the vendor
with the kit).
The code in nomadik_ecc512_calc() is derived from vendor data sheet,
looking at vendor code I got; since both routines gives the same results,
mine _should_ be compatible with hw ecc, for the day I'll be
able to make it work. However vendor code never used hw ecc, either,
so I'm not sure this routine is really compatible with it.
Actually, I got a hint about why hw ecc isn't working for me, but
can't try it these days.
In view of this, can my code stay?
/alessandro
next prev parent reply other threads:[~2009-07-23 9:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-22 22:25 [PATCH V4 0/2] Nand and OneNand for ARM Nomadik Alessandro Rubini
2009-07-22 22:25 ` [PATCH V4 1/2] Nand driver for Nomadik 8815 SoC (on NHK8815 board) Alessandro Rubini
2009-07-22 22:25 ` Alessandro Rubini
2009-07-22 22:26 ` [PATCH V4 2/2] OneNand support " Alessandro Rubini
2009-07-22 22:26 ` Alessandro Rubini
[not found] ` <cae21cf16cad72ef35ce7e8cc3effe25b497924e.1248300341.git.rubini@unipv.it>
2009-07-23 4:30 ` [PATCH V4 1/2] Nand driver " vimal singh
2009-07-23 6:59 ` Alessandro Rubini
2009-07-23 9:07 ` Alessandro Rubini [this message]
2009-07-23 9:49 ` vimal singh
2009-07-23 9:57 ` Alessandro Rubini
2009-07-23 9:20 ` [PATCH V4 0/2] Nand and OneNand for ARM Nomadik Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090723090730.GA24918@mail.gnudd.com \
--to=rubini-list@gnudd.com \
--cc=STEricsson_nomadik_linux@list.st.com \
--cc=andrea.gallo@stericsson.com \
--cc=linux-mtd@lists.infradead.org \
--cc=linux@arm.linux.org.uk \
--cc=vimal.newwork@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.