Problems with AMD CFI chips

David Woodhouse dwmw2 at infradead.org
Thu Nov 2 17:31:31 EST 2000


On Thu, 2 Nov 2000 mark.langsdorf at amd.com wrote:

> 	Interleave 2, 4 byte buswidth, to support 2 16 bit chips.
> Again, that all looks pretty consistent.

Should be fine. ISTR that's what the original author was using.

> 	I think it may be some kind of interaction with jffs,
> because I've had limited success with creating directories 
> and deleting files, but not consistently.  I'm not sure where
> I should look in the jffs code to get more information, though,
> and would appreciate some pointers.

Make sure you've got up-to-date JFFS code. Or the code in the 2.4 kernel
is known good.

Hack flash_safe_write() to read back the data afterwards and verify it.

> 	Also, when does jffs attempt to clean out the dirty
> space?  thread_should_wake reports upwards of 2 megs of
> dirty space, which is about 16 sectors and 14% of the available
> memory.  I'd think that should get returned to the free list
> much earlier, especially during the reboots.

When the free space goes below gc_minfree_threshold or the dirty space
goes above gc_maxdirty_threshold. These are defined as 5% and 33% of the
total size of the flash partition, respectively. 

It's inefficient to GC too much before it's needed. In an ideal world,
we'd always have just enough free space to handle the next write without
having to wait for GC to happen.

-- 
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org



More information about the linux-mtd mailing list