From: "Woodhouse, David" <david.woodhouse@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Brian Norris <computersforpeace@gmail.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
Artem Bityutskiy <dedekind1@gmail.com>
Subject: Re: nand_base - kill chip->oob_poi?
Date: Wed, 28 Mar 2012 10:14:26 +0000 [thread overview]
Message-ID: <1332929665.2058.102.camel@shinybook.infradead.org> (raw)
In-Reply-To: <alpine.LFD.2.02.1203281149010.2542@ionos>
[-- Attachment #1: Type: text/plain, Size: 1693 bytes --]
On Wed, 2012-03-28 at 11:51 +0200, Thomas Gleixner wrote:
> On Tue, 27 Mar 2012, Brian Norris wrote:
>
> > Hi,
> >
> > I'm looking to support a new NAND hardware controller, and it doesn't
> > support OOB read/write for its fastest modes of operation, since most
> > normal activity (i.e., UBI(FS)) doesn't need OOB. So I'm trying to
>
> And how is ECC working for that "normal" activity ?
>
> Using NAND w/o ECC is doomed for fail.
I was assuming that the controller *used* the OOB area for hardware ECC,
but just didn't support letting the *host* access the OOB area "in its
fastest modes of operation".
> > My plan looked something like the following:
> > - avoid using chip->oob_poi explicitly if at all possible
> > - pass both buf and oob pointers to the various {read,write}_page
> > interfaces (in nand_chip and in nand_ecc_ctrl)
> > - allow oob to be NULL, which would imply that the API call only
> > needed the in-band data
And presumably the swecc/hwecc cases would still use either oob_poi or
their own buffer, since they have to put the syndrome *somewhere* after
calculating it... but those are only for those controllers which *use*
the swecc/hwecc support.
I don't think it matters that your plan "conflicts" with the ECC
implementations that you wouldn't be able to to use on this hardware
anyway.
I agree that adding more interfaces would probably not be a good idea;
this code is tangled enough already.
--
Sent with MeeGo's ActiveSync support.
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 4370 bytes --]
next prev parent reply other threads:[~2012-03-28 10:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-28 1:55 nand_base - kill chip->oob_poi? Brian Norris
2012-03-28 9:51 ` Thomas Gleixner
2012-03-28 10:14 ` Woodhouse, David [this message]
2012-03-28 16:42 ` Brian Norris
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=1332929665.2058.102.camel@shinybook.infradead.org \
--to=david.woodhouse@intel.com \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=tglx@linutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox