public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Re-entrancy of flash erase/write
@ 2002-02-22 16:30 Robert Kaiser
  2002-02-22 17:06 ` David Woodhouse
  0 siblings, 1 reply; 17+ messages in thread
From: Robert Kaiser @ 2002-02-22 16:30 UTC (permalink / raw)
  To: linux-mtd

Hi,

maybe I just don't know where to look, but..

Am I right in assuming that it is not possible to erase
and/or write different blocks of the same flash chip
concurrently ?

If so, where is the lock in the MTD code that would
prevent concurrent execution of erase/write on the
same chip by multiple processes ?

Thanks for any insights!

Rob

----------------------------------------------------------------
Robert Kaiser                          email: rkaiser@sysgo.de
SYSGO RTS GmbH
Am Pfaffenstein 14
D-55270 Klein-Winternheim / Germany    fax:   (49) 6136 9948-10

^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: Re-entrancy of flash erase/write
@ 2002-02-22 17:13 Jonas Holmberg
  0 siblings, 0 replies; 17+ messages in thread
From: Jonas Holmberg @ 2002-02-22 17:13 UTC (permalink / raw)
  To: 'Robert Kaiser '; +Cc: 'linux-mtd@lists.infradead.org '

> Am I right in assuming that it is not possible to erase
> and/or write different blocks of the same flash chip
> concurrently ?

Some chips allow it and some don't. Those that allow it require all simultaneous erases to be started within a very short timeout. None of the chip drivers use that feature I think.

> If so, where is the lock in the MTD code that would
> prevent concurrent execution of erase/write on the
> same chip by multiple processes ?

I haven't got the code in front of me, but I think it is in the beginning of the erase_oneblock-functions (in cfi_cmdset_0002.c at least). There's a status variable in the flashchip struct and processes are put on a waitqueue if the chip is busy.

/Jonas

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2002-02-25 18:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-22 16:30 Re-entrancy of flash erase/write Robert Kaiser
2002-02-22 17:06 ` David Woodhouse
2002-02-22 17:43   ` Robert Kaiser
2002-02-25 11:09     ` Robert Kaiser
2002-02-25 15:44       ` Adam Wozniak
2002-02-25 16:54         ` Robert Kaiser
2002-02-25 16:55           ` Adam Wozniak
2002-02-25 17:07           ` David Woodhouse
2002-02-25 17:30             ` Robert Kaiser
2002-02-25 17:32               ` David Woodhouse
2002-02-25 17:49             ` Joakim Tjernlund
2002-02-25 17:54               ` David Woodhouse
2002-02-25 18:08                 ` Joakim Tjernlund
2002-02-25 18:10                   ` David Woodhouse
2002-02-25 17:56               ` Robert Kaiser
2002-02-25 18:11                 ` Joakim Tjernlund
  -- strict thread matches above, loose matches on Subject: below --
2002-02-22 17:13 Jonas Holmberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox