From: Mike Dunn <mikedunn@newsguy.com>
To: dedekind1@gmail.com
Cc: Robert Jarzmik <robert.jarzmik@free.fr>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
linux-mtd@lists.infradead.org,
Shmulik Ladkani <shmulik.ladkani@gmail.com>,
Brian Norris <computersforpeace@gmail.com>,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: [PATCH] mtd: nand: Use the mirror BBT descriptor when reading its version
Date: Mon, 18 Jun 2012 18:40:06 -0700 [thread overview]
Message-ID: <4FDFD876.2000606@newsguy.com> (raw)
In-Reply-To: <1340017963.2420.29.camel@sauron.fi.intel.com>
On 06/18/2012 04:12 AM, Artem Bityutskiy wrote:
> Let's probe Mike and Robert and see what they say.
To be honest, I did not pay much attention to the NAND_BBT_ABSPAGE code path.
The docg4 uses the oob marker scheme for marking bad blocks, though it also has
a read-only "factory" bbt...
>>>> <shmulik.ladkani@gmail.com> wrote:
>>>>> - Not runtime tested.
>>>>
>>>> Patch looks fine, but this makes me curious: does anyone use
>>>> NAND_BBT_ABSPAGE? It looked broken to me when I tried it not too long
>>>> ago, but I didn't look too deeply. (I doubt that this typo was its
>>>> only problem, but I may try again...)
As Robert pointed out, docg3 and docg4 ship with a read-only factory bbt at a
fixed location. If this is what NAND_BBT_ABSPAGE refers to, the docg4 doesn't
use it. For one thing, I assumed that the format of the table on the docg4
would be different from what is assumed in the nand code for the
NAND_BBT_ABSPAGE case. I also assumed (without much investigation) that the
fixed location table would be dynamically updated as bad blocks are detected
(which docg4 can't do), though doing this at a fixed location doesn't make much
sense now that I think about it.
FYI... in its probe function, the docg4 reads this factory bbt after
nand_scan_bbt() has built the memory-based bbt. (In the docg4 case,
nand_scan_bbt() builds a memory-based table by looking for the bb marker in the
oob bytes of the first page of each block.) Then the docg4 driver ensures that
the memory based bbt includes the bad blocks marked in the factory bbt, and
updates it if not. This, and the NAND_BBT_ABSPAGE code, can probably be
improved. I'll take a closer look.
Thanks,
Mike
next prev parent reply other threads:[~2012-06-19 1:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-10 10:58 [PATCH] mtd: nand: Use the mirror BBT descriptor when reading its version Shmulik Ladkani
2012-06-10 17:02 ` Sebastian Andrzej Siewior
2012-06-11 5:59 ` Brian Norris
2012-06-12 10:42 ` Artem Bityutskiy
2012-06-13 0:42 ` Brian Norris
2012-06-18 11:12 ` Artem Bityutskiy
2012-06-18 17:59 ` Robert Jarzmik
2012-06-18 20:28 ` Artem Bityutskiy
2012-06-19 1:51 ` Mike Dunn
2012-06-24 18:52 ` Robert Jarzmik
2012-06-25 19:40 ` Mike Dunn
2012-06-26 15:41 ` Artem Bityutskiy
2012-06-19 1:40 ` Mike Dunn [this message]
2012-06-18 11:32 ` 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=4FDFD876.2000606@newsguy.com \
--to=mikedunn@newsguy.com \
--cc=bigeasy@linutronix.de \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=robert.jarzmik@free.fr \
--cc=shmulik.ladkani@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 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).