public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Oh, the many joys of MTD...
@ 2001-03-08 13:38 Kevin Jacobs
  2001-03-08 14:43 ` David Woodhouse
  2001-03-08 16:27 ` Nicolas Pitre
  0 siblings, 2 replies; 10+ messages in thread
From: Kevin Jacobs @ 2001-03-08 13:38 UTC (permalink / raw)
  To: mtd

Hello everyone!

  I'm new to working on MTD and would like to start by thanking everyone who
has contributed to it.  Its a fine addition to Linux and has made my life
much easier.  However, I am having a few problems and was hoping for some
kinds souls to enlighten me a little.

Let me also say that I am somewhat new to hardware driver development and
have some rather odd gaps in my knowledge.

My first questions is likely something fairly basic.  I've read over much of
the MTD source and it seems that many of the erase and write functions do
not deal with concurrent access and CPU cache issues.  What happens when a
{read,write,erase} request comes in for a sector that is being
{written,erased}?

Also, is it assumed that the memory mapped for MTD devices will not be
cached by the CPU?  If so, is it feasible to add support.  If not, where is
code to flush/update the cache after a write or erase operation?

Thanks,
-Kevin

--
Kevin Jacobs
The OPAL Group - Enterprise Systems Architect
Voice: (216) 986-0710 x 19         E-mail: jacobs@theopalgroup.com
Fax:   (216) 986-0714              WWW:    http://www.theopalgroup.com




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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: Oh, the many joys of MTD...
@ 2001-03-13  7:24 Jonas Holmberg
  0 siblings, 0 replies; 10+ messages in thread
From: Jonas Holmberg @ 2001-03-13  7:24 UTC (permalink / raw)
  To: 'Kevin Jacobs'; +Cc: mtd

> On Thu, 8 Mar 2001, Nicolas Pitre wrote:
> > > My first questions is likely something fairly basic.  
> I've read over much of
> > > the MTD source and it seems that many of the erase and 
> write functions do
> > > not deal with concurrent access and CPU cache issues.  
> What happens when a
> > > {read,write,erase} request comes in for a sector that is being
> > > {written,erased}?
> > 
> > Those are exclusively protected by state machines and 
> locks.  For example,
> > see the usage of chip->state in cfi_cmdset_0001.c.
> 
> Only cfi_cmdset_* does this.  jedec, amd_flash, etc. do not.

amd_flash: I think it does (or have you found a bug?).

/Jonas


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

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

end of thread, other threads:[~2001-03-13  7:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-08 13:38 Oh, the many joys of MTD Kevin Jacobs
2001-03-08 14:43 ` David Woodhouse
2001-03-08 14:49   ` Kevin Jacobs
2001-03-08 16:27 ` Nicolas Pitre
2001-03-08 16:29   ` Kevin Jacobs
2001-03-08 17:41   ` Vipin Malik
2001-03-08 17:40     ` Kevin Jacobs
2001-03-09  2:54       ` Alice Hennessy
2001-03-12 10:10     ` Robert Kaiser
  -- strict thread matches above, loose matches on Subject: below --
2001-03-13  7:24 Jonas Holmberg

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