* Question about MTD Erase mechanism.
@ 2007-02-20 6:41 Vinit Agnihotri
2007-02-20 7:29 ` Charles Manning
0 siblings, 1 reply; 2+ messages in thread
From: Vinit Agnihotri @ 2007-02-20 6:41 UTC (permalink / raw)
To: linux-mtd
I have 1 question about MTD Erase mechanism.
Say we have a MTD device with 'n' no. of blocks. Each block is of size
100Bytes. Once erased we can write 25bytes i.e. min_io_size is
25bytes. So once a block is erased I can perform 4 writes without
erasing it again only if those 4 writes are not overlapping. But if
any of those write is overlapping i.e. if re-write occurs then entire
block have to be erased.
So my question is who handles these types of conditions. I mean does
hardware handles such conditions or software have to handle such
situations? I mean who handles re-writing & erasures due to that???
Thanks & Regards
Vinit.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about MTD Erase mechanism.
2007-02-20 6:41 Question about MTD Erase mechanism Vinit Agnihotri
@ 2007-02-20 7:29 ` Charles Manning
0 siblings, 0 replies; 2+ messages in thread
From: Charles Manning @ 2007-02-20 7:29 UTC (permalink / raw)
To: linux-mtd; +Cc: Vinit Agnihotri
On Tuesday 20 February 2007 19:41, Vinit Agnihotri wrote:
> I have 1 question about MTD Erase mechanism.
>
> Say we have a MTD device with 'n' no. of blocks. Each block is of size
> 100Bytes. Once erased we can write 25bytes i.e. min_io_size is
> 25bytes. So once a block is erased I can perform 4 writes without
> erasing it again only if those 4 writes are not overlapping. But if
> any of those write is overlapping i.e. if re-write occurs then entire
> block have to be erased.
That's a pretty contrived example, and depends on the type of flash etc.
>
> So my question is who handles these types of conditions. I mean does
> hardware handles such conditions or software have to handle such
> situations? I mean who handles re-writing & erasures due to that???
Software of course. Hardware is pretty dumb stuff and cannot track and enforce
algorithmic rules like that.
>
>
> Thanks & Regards
> Vinit.
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-20 7:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-20 6:41 Question about MTD Erase mechanism Vinit Agnihotri
2007-02-20 7:29 ` Charles Manning
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.