From: Bill Gatliff <bgat@billgatliff.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Re: Should flash hardware look like UBI?
Date: Tue, 06 Oct 2009 09:40:47 -0500 [thread overview]
Message-ID: <4ACB56EF.9050301@billgatliff.com> (raw)
In-Reply-To: <1254751504.13096.725.camel@macbook.infradead.org>
David Woodhouse wrote:
> But I've also been thinking about exactly what we _do_ want. We
> certainly want something a little more capable than the raw interface to
> NAND flash that ONFI provides.
>
Actually, I prefer that we make the hardware as dumb as possible. I'm
ok with the chip timing its own flash erase and programming cycles, but
everything else I want to keep up in our software. That way we can
adapt the functionality to whatever level of control that we want.
ECC can be difficult to get right, and the specific algorithm chosen can
be application- and environment-dependent. If it's baked into the chip
then the algorithm decision is already made, and any bugs in the
implementation are impossible to correct. Also, like other posters have
mentioned regarding SD/MMC firmware, any firmware running in a NAND
flash will require thorough documentation so that users of the chip can
accommodate its needs for power management, etc.
And on top of that, one really needs to know if the bits that they are
reading back have required ECC to recover. If a region of flash is
failing, a sudden increase in the amount of error correction needed will
tell you that some evasive action is necessary. By its very nature, ECC
can never be completely transparent to the user.
I don't see any substantial benefit to a chip having an inbuilt,
hardware "memcpy" to allow one to move data around without reading it
out. That just sounds like more undocumented stuff to go wrong. :)
And more design decisions that have been made without the user's consent.
Just my US$0.02.
b.g.
--
Bill Gatliff
bgat@billgatliff.com
prev parent reply other threads:[~2009-10-06 14:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-05 14:05 Should flash hardware look like UBI? David Woodhouse
2009-10-06 11:21 ` Thomas Gleixner
2009-10-06 12:05 ` David Woodhouse
2009-10-06 12:56 ` Thomas Gleixner
2009-10-06 13:07 ` David Woodhouse
2009-10-06 14:40 ` Bill Gatliff [this message]
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=4ACB56EF.9050301@billgatliff.com \
--to=bgat@billgatliff.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
/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