From: Brian Norris <computersforpeace@gmail.com>
To: Richard Weinberger <richard@nod.at>
Cc: Matthias Auchmann <m.auchmann@artech.at>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Boris Brezillon <boris.brezillon@free-electrons.com>
Subject: Re: mtd locking
Date: Tue, 31 May 2016 11:11:13 -0700 [thread overview]
Message-ID: <20160531181113.GA27381@google.com> (raw)
In-Reply-To: <574B15FE.8030206@nod.at>
Hi,
On Sun, May 29, 2016 at 06:17:02PM +0200, Richard Weinberger wrote:
> Am 29.05.2016 um 17:53 schrieb Matthias Auchmann:
> > By intended you mean it's wrong and we know, but it's still wrong, right?
>
> I'd say lazy. Sometimes counters don't need to be exact.
> Having exact counting is expensive. See network stack.
>
> I'm not sure what the exact reasons in the ECC error counting
> case are.
> Maybe Brian or Boris can tell more.
Boris correctly explained things. And several people have noticed, but
few solutions have been attempted.
The only thing I'd add: I suspect the MTD char device APIs haven't
gotten as much love because they aren't as useful. Most users have found
better utility by working through JFFS2, UBI/UBIFS, etc., since there's
just so much that a raw MTD doesn't really solve for you, especially
when you start talking about the type of device where you care about
bitflips (i.e., NAND).
You're more likely to get away fine with raw MTD on NOR flash, but then
you don't care about ECCGETSTATS there anyway.
I think Boris has found use cases where he just wants to talk raw
NAND/MTD, so maybe some of this dynamic is changing.
(And BTW, I realized this is a potential impediment to moving the MTD
tests entirely to user space. They can still work fine in
single-threaded mode, but once you start running multiple instances,
you'll start getting inaccurate stats reports, which will make some
tests think they've failed.)
Brian
prev parent reply other threads:[~2016-05-31 18:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-29 13:38 mtd locking Matthias Auchmann
2016-05-29 14:23 ` Richard Weinberger
2016-05-29 15:53 ` Matthias Auchmann
2016-05-29 16:17 ` Richard Weinberger
2016-05-30 9:24 ` Boris Brezillon
2016-05-31 18:11 ` Brian Norris [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=20160531181113.GA27381@google.com \
--to=computersforpeace@gmail.com \
--cc=boris.brezillon@free-electrons.com \
--cc=linux-mtd@lists.infradead.org \
--cc=m.auchmann@artech.at \
--cc=richard@nod.at \
--cc=s.hauer@pengutronix.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;
as well as URLs for NNTP newsgroup(s).