public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@logfs.org>
To: Kyungmin Park <kmpark@infradead.org>
Cc: dwmw2@infradead.org, "Jörn Engel" <joern@logfs.org>,
	linux-mtd@lists.infradead.org,
	"Kyungmin Park" <kyungmin.park@samsung.com>
Subject: Re: [RFC][PATCH][JFFS2] JFFS2 support for NOP 1
Date: Wed, 28 Nov 2007 03:47:43 +0100	[thread overview]
Message-ID: <20071128024743.GA4767@lazybastard.org> (raw)
In-Reply-To: <9c9fda240711271808gcbd0964jf73d564d56ebccc4@mail.gmail.com>

On Wed, 28 November 2007 11:08:30 +0900, Kyungmin Park wrote:
> 
> sub-page: possible write size(?)
> MTD usually write data with 'page size' (1KiB, 2KiB, and 4KiB) but
> some upper layer such as UBI can write it with 'sub-page size (sector
> size)'.
> 
> Number Of Program (NOP): How many times flash can be programed.
> In general SLC NAND has 4 but this value will be smaller as the
> technology is advanced and MLC NAND has 1.
> 
> The problem is that current JFFS2 implementation uses the NOP 2, data
> area and oob area in NAND case. It breaks the NOP 1 limitation in MLC
> case.
> 
> If the description is wrong, please let me know.

Sounds plausible.  And reading up on the subpage code I start to doubt
its robustness wrt. newer SLC flashes as well.  If the NOP is lower than
the number of ECC steps, trouble is brewing.

But back to your original patch, you want JFFS2 to behave on MLC flashes
just as it already behaves on Sibley and those dreaded STMicro NORs.
And I claim that you should not only reach identical behaviour, but also
share the same code.  There is no point in having two sets of "special"
initializations with the exact same effect.

Maybe add a flag MTD_OOB_WRITEABLE (or some better name) to SLC flashes
and have the nand initializations in JFFS2 depend on those.  Without
this flag, the nor_wbuf_* code is called.  "nor_wbuf" could use a better
name as well, since it extends to more than just NOR flash.

Jörn

-- 
The grand essentials of happiness are: something to do, something to
love, and something to hope for.
-- Allan K. Chalmers

  reply	other threads:[~2007-11-28  2:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-27  7:36 [RFC][PATCH][JFFS2] JFFS2 support for NOP 1 Kyungmin Park
2007-11-27  9:55 ` Jörn Engel
2007-11-27 11:48   ` Kyungmin Park
2007-11-27 11:59     ` Artem Bityutskiy
2007-11-27 23:28       ` Kyungmin Park
2007-11-27 23:31         ` Jörn Engel
2007-11-28  2:08           ` Kyungmin Park
2007-11-28  2:47             ` Jörn Engel [this message]
2007-12-03  4:33               ` Kyungmin Park
2007-11-27 13:03     ` Jörn Engel
2007-11-27 23:41       ` Kyungmin Park

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=20071128024743.GA4767@lazybastard.org \
    --to=joern@logfs.org \
    --cc=dwmw2@infradead.org \
    --cc=kmpark@infradead.org \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-mtd@lists.infradead.org \
    /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