[PATCH v3 0/6] NAND BBM + BBT updates

Sebastian Andrzej Siewior bigeasy at linutronix.de
Tue Jan 10 04:44:10 EST 2012


On 01/09/2012 09:23 PM, Brian Norris wrote:
> This patch series is an update to a previous patch (that has split into
> a few patches) with a few additional patches at the end. The important
> segments of this series involve the default steps for marking new bad
> blocks when using a flash-based BBT. The new default behavior will write
> to the BBT as well as attempting to write a BBM to the OOB area of the
> bad block. See the patch descriptions for details.

Why do we update BBT and OOB and have the date in two places? One
Argument was that the boot loader may not have support for BBT and uses
OOB instead. If so, why not update the boot loader and make sure both
users (OS and boot loader) use the same data?
Any other other arguments why updating OOB is a good idea?

> The first patch, regarding NAND_NO_WRITE_OOB, is a first attempt at
So now the old-default behavior requires a flag. If I remember
correctly the OLPC used a different BBT layout and OOB was used for
some other purpose. I remember that we had a controller which wrote ECC
into OOB on its own and the driver could not write into OOB in ECC
mode. But then I don't known if this was simply not implemented in the
driver. So never mind.

> satisfying Sebastian's concerns that some systems utilize the entire OOB
> area for ECC, and so we need an option to prevent writing markers to
> OOB. My attempt to prevent other OOB writes may be misguided,
> incomplete, flawed in some other way, or some combination of the three.
> Please provide constructive criticism.

and I am still not convinced that it is a good idea to provide one
information in two places. It seems to be redundant. If there are other
people supporting this, I am not in your way.

Sebastian



More information about the linux-mtd mailing list