From: Thomas Gleixner <tglx@linutronix.de>
To: manningc2@actrix.gen.nz, linux-mtd@lists.infradead.org
Subject: Re: nand oob layout assumptions
Date: Sat, 27 Mar 2004 09:07:07 +0100 [thread overview]
Message-ID: <200403270907.07298.tglx@linutronix.de> (raw)
In-Reply-To: <20040327073147.03AF7179A8@desire.actrix.co.nz>
On Saturday 27 March 2004 08:40, Charles Manning wrote:
> >
> > We should check the possibility to use the 16 bit buswith with the same
> > driver. The command interface is still 8 bits, only the data interface is
> > 16 bit. It should be possible to combine those in one go.
>
> I think it is time we re-think the whole mtd interface for NAND. There are
> a bunch of new NAND parts out there that bring a whole new bunch of issues.
>
> For instance, the bad block handling is different in different NAND parts.
> It is wrong, IMHO, to be handling bad-block logic in the file system.
> Instead, the bad block handling should be done in mtd so that each
> different chip can have its own methods and the file system can be kept
> "clean".
I have already considered this.
But the fs must be aware of the bad block marker position in the OOB area, as
it can not use this byte for storing fs dependend data. The OOB usage is
given by the fs layer.
> This is, BTW, the approach I have taken for YAFFS2. YAFFS2 has no ECC calcs
> or bad block logic in the file system "guts". Instead the mtd glue layer is
> currently tasked with this job, though in time I hope the actiual mtd ends
> up with the job.
Not sure. The generic nand driver provides mechanisms to tell you where the
bad block marker is located and a basic protection against the erasing of bad
blocks. All other bad block handling tasks should be done in the fs layer.
--
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de
next prev parent reply other threads:[~2004-03-27 8:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-25 18:44 nand oob layout assumptions David Updegraff
2004-03-25 19:58 ` Thomas Gleixner
2004-03-27 7:40 ` Charles Manning
2004-03-27 8:07 ` Thomas Gleixner [this message]
2004-03-27 10:24 ` David Woodhouse
2004-03-27 11:10 ` Thomas Gleixner
2004-03-27 11:25 ` David Woodhouse
2004-03-27 14:15 ` Thomas Gleixner
2004-03-27 16:13 ` David Updegraff
2004-03-27 16:18 ` David Woodhouse
2004-03-27 17:40 ` Thomas Gleixner
2004-03-28 8:06 ` Charles Manning
2004-03-28 8:05 ` Thomas Gleixner
2004-03-28 7:34 ` Charles Manning
2004-03-28 7:51 ` Thomas Gleixner
2004-03-28 8:19 ` Charles Manning
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=200403270907.07298.tglx@linutronix.de \
--to=tglx@linutronix.de \
--cc=linux-mtd@lists.infradead.org \
--cc=manningc2@actrix.gen.nz \
/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