public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Updegraff <dave@cray.com>
To: llandre <r&d@wawnet.biz>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Large block NANDs - preliminary diff (2)
Date: Fri, 26 Mar 2004 10:13:48 -0600	[thread overview]
Message-ID: <406456BC.1020802@cray.com> (raw)
In-Reply-To: <6.0.1.1.0.20040326125338.01f8bab8@dns.struinfo.it>

llandre.

Thanks for your work and patch.  I may well be deluded, but aside from 
the large-page-inefficiencies vis.a.vis. file system allocations, it 
still seems to me we have some OOB troubles with the existing API.
Because oob layout is exported, whereas I think oob layout should be 
hidden in the driver.

 From what I see, there are three reasons for anyone outside the driver 
to know about oob: ecc, badblock and fs-specific data.

For ecc, they only need to set ON or off for the whole chip, for 
badblock its a boolean per page or block.  And FSDATA is some stuff that 
  the filesystem wants to scribble on its own, that the driver does not 
interpret.

For ecc, there is already an ioctl that can set it generically, if you 
ignore the .eccpos bytes.  And badblock also has a function pointer in 
the driver.

What remains is a way for the filesystem drivers to scribble their own 
bytes of data per page or block.  IMHO they should be able to do this 
independently.  Perhaps that the officially PUBLISHED oobsize and 
oob_buf stuff currently in place should infact refer to those regions of 
the oob that are OUTSIDE of the internal-driver-managed oob regions 
dedicated to badblock marking or ecc tracking. The driver always does 
its own ecc calculations anyway: why even let anyone else see that area?

But yes; I know; references to the oob stuff is sprinkled everywhere, 
and it'll probably be short-term easier to just add another case:
here&there.

-dbu.

       reply	other threads:[~2004-03-26 16:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6.0.1.1.0.20040326125338.01f8bab8@dns.struinfo.it>
2004-03-26 16:13 ` David Updegraff [this message]
2004-03-27  7:52   ` Large block NANDs - preliminary diff (2) Charles Manning
2004-03-27  9:05   ` Thomas Gleixner

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=406456BC.1020802@cray.com \
    --to=dave@cray.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=r&d@wawnet.biz \
    /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