[PATCH] [MTD] NAND: Lazily BBT construction

Konstantin Baydarov kbaidarov at dev.rtsoft.ru
Fri Nov 24 08:56:18 EST 2006


On Fri, 24 Nov 2006 15:05:50 +0200
Artem Bityutskiy <dedekind at infradead.org> wrote:

> On Fri, 2006-11-24 at 15:42 +0300, Konstantin Baydarov wrote:
> > This is the implementation of lazy BBT construction. It introduces
> > a new config option that allows to construct BBT(bad block table)
> > lazily for NAND chips with memory based BBT.
> > The main goal of the feature introduced is to decrease boot time.
> > How it works: BBT is filled only when we check if block is bad. NAND
> > is
> > scanned and BBT entries is constructed from topmost unscanned block
> > to requested.
> > By default BBT is constructed during boot. To enable lazily
> > construction NAND_LAZY_BBT bit should be set in options field of
> > structure nand_chip. 
> 
> Also, the 3rd question.
> 
> 3. Why don't you use on-flash BBT if you are not satisfied with in-RAM
> BBT?
> 
Patch covers the case when there is no on-flash BBT and on-flash
BBT wasn't requested (don't need to write to chip Memory BBT after
construction). How can I use it? Also when we have on-flash BBT we
don't need to scan chip so we don't need lazily BBT.




More information about the linux-mtd mailing list