All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Dunn <mikedunn@newsguy.com>
To: Ivan Djelic <ivan.djelic@parrot.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	Matthieu Castet <matthieu.castet@parrot.com>
Subject: Re: [PATCH v2] mtd: nand: Add driver for M-sys / Sandisk diskonchip G4
Date: Fri, 04 Nov 2011 13:34:07 -0700	[thread overview]
Message-ID: <4EB44C3F.5000000@newsguy.com> (raw)
In-Reply-To: <20111104165824.GA18759@parrot.com>

On 11/04/2011 09:58 AM, Ivan Djelic wrote:
> On Fri, Nov 04, 2011 at 04:23:52PM +0100, Ivan Djelic wrote:
>> On Fri, Nov 04, 2011 at 02:20:26PM +0000, Mike Dunn wrote:
>>>
>>> Not entirely transparent.  I didn't think this through.  Modifying the
>>> hw-generated ecc bytes causes the hw to think that there were error(s) on every
>>> page.  True, the driver will know better, but it will slow things down because
>>> ordinarily the ecc unit only has to be read when the hardware reports errors. 
>>> With this scheme, an error is reported and the ecc bytes read and processed on
>>> every page.
> Oops, forget what I said in my previous post; I should have said the opposite:
> that is, my XOR masking idea only works if the controller does not compute
> recv_ecc^calc_ecc itself. So indeed you're right, it's not useful in your case.


OK makes sense again.  I was getting confused (though that's easy for me to
do).  Yeah, no error if hw calculates recv_ecc^calc_ecc == 0.  Should still
work, though, if I'm willing to take the performance hit of processing the
"error" and reading out hw ecc on every read.

Thanks again for the tips.  Matthieu also.

Mike

  reply	other threads:[~2011-11-04 20:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-02 23:00 [PATCH v2] mtd: nand: Add driver for M-sys / Sandisk diskonchip G4 Mike Dunn
2011-11-03  8:58 ` Ivan Djelic
2011-11-03  9:14   ` Matthieu CASTET
2011-11-03 16:55     ` Mike Dunn
2011-11-04 14:20     ` Mike Dunn
2011-11-04 15:23       ` Ivan Djelic
2011-11-04 16:58         ` Ivan Djelic
2011-11-04 20:34           ` Mike Dunn [this message]
2011-11-03 16:54   ` Mike Dunn
2011-11-03 17:52 ` Mike Dunn
     [not found] <1388924089.4520961320317174391.JavaMail.root@zimbra20-e3.priv.proxad.net>
2011-11-03 11:02 ` Robert Jarzmik
2011-11-03 11:59   ` Ivan Djelic
2011-11-08 21:12     ` Artem Bityutskiy

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=4EB44C3F.5000000@newsguy.com \
    --to=mikedunn@newsguy.com \
    --cc=ivan.djelic@parrot.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=matthieu.castet@parrot.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.