* Spare area access information from JFFS2
@ 2007-05-05 16:18 Sudeep K N
2007-05-06 6:01 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Sudeep K N @ 2007-05-05 16:18 UTC (permalink / raw)
To: dwmw2, rpurdie; +Cc: linux-mtd
Hi,
We are working on Nand Flash Controller which does not support
ECC protection during Spare_Only Operation, rather it supports
ECC protection for both Main_and_Spare area. In this regard,
before to implement any workaround in my nand driver we want to
know "Spare Area and Spare + Main area access sequence" from
JFFS2 filesystem perspective during any JFFS2 operation.
Proceeding further to observe JFFS2 Spare area access we found the
the following:
1. During Mount: scans the block, [erases], and writes "0x20031985"
into the spare area on start of every block followed by another
18 bytes which spans across multiple pages because free bytes in
spare area is only 4
2. Later during main page program operation our nand controller
updates spare area ECC bytes, during this sequence we are not
clear whether JFFS2 perform any spare operation to updates it
meta data.
3. Also, we want know, later the above sequence, does JFFS2 performs
any spare only program operations.
Regards,
Sudeep
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Spare area access information from JFFS2
2007-05-05 16:18 Spare area access information from JFFS2 Sudeep K N
@ 2007-05-06 6:01 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2007-05-06 6:01 UTC (permalink / raw)
To: Sudeep K N; +Cc: linux-mtd, rpurdie, dwmw2
On Sat, 2007-05-05 at 21:48 +0530, Sudeep K N wrote:
> 1. During Mount: scans the block, [erases], and writes "0x20031985"
> into the spare area on start of every block followed by another
> 18 bytes which spans across multiple pages because free bytes in
> spare area is only 4
JFFS2 writes only 4 bytes, when you set the ecclayout information
correct. Even if you set it to something else, it writes max. 12 bytes.
So your 4 + 18 bytes observation is rather strange.
> 2. Later during main page program operation our nand controller
> updates spare area ECC bytes, during this sequence we are not
> clear whether JFFS2 perform any spare operation to updates it
> meta data.
JFFS2 does not use the spare area for metadata information other than
the cleanmarker.
> 3. Also, we want know, later the above sequence, does JFFS2 performs
> any spare only program operations.
>
No. The only exception is the block_mark_bad operation.
tglx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-06 5:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-05 16:18 Spare area access information from JFFS2 Sudeep K N
2007-05-06 6:01 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox