public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Aras Vaichas <arasv@magellan-technology.com>
To: MTD-LIST <linux-mtd@lists.infradead.org>
Subject: Re: Read/nBusy via interrupt
Date: Fri, 29 Oct 2004 09:43:09 +1000	[thread overview]
Message-ID: <4181840D.2020605@magellan-technology.com> (raw)
In-Reply-To: <20041028230640.GB13105@home.fluff.org>

Ben Dooks wrote:
> Does anyone here have any comments over the pros/cons of using
> an interrupt which goes off to wait for a NAND flash ready/not-busy
> signal?
> 

pros of using interrupt:
* faster MTD access (maybe, depends on polling rate) but as a percentage of 
total access time it probably doesn't make much difference.
* less cpu overhead

cons of using interrupt:
* more pins used up on CPU
* more code to write and debug!
* more interrupts going off in system
* more pins needed on MTD -> more expensive boards and chips, longer board 
design times

I'll give you an example from a hardware point of view by way of the Atmel 
Dataflash AT45DB081B.

http://rocky.digikey.com/WebLib/Atmel/Web%20Data/AT45DB081B.pdf
http://www.atmel.com/dyn/products/product_card.asp?family_id=616&family_name=DataFlash%26reg%3B&part_id=2470

The Atmel Dataflash is bootable by the AT91RM9200, and is actually a NOR part 
made to look like a serial NAND.

If you take a look at the 8-CASON part, you'll notice that in order to reduce 
pin count, they leave out the ready/nbusy signal because this information can 
be obtained by polling. This is really a matter of board space as you can fit 
1Megabyte of bootable FLASH into a surface mount 8pin package by leaving out 
this pin.

If you wanted to improve performance, you would simply find out how long the 
MTD usually stays busy for and only resume polling after that time.

If you can spare the board space, why not use interrupts? Make it a kernel 
option. MTD_EADYNBUSY_INTERRUPT ?


Aras Vaichas

  parent reply	other threads:[~2004-10-28 23:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-28 23:06 Read/nBusy via interrupt Ben Dooks
2004-10-28 23:13 ` Thomas Gleixner
2004-10-28 23:43 ` Aras Vaichas [this message]
2004-10-29  7:33   ` Thomas Gleixner
2004-10-29  9:56     ` Aras Vaichas
2004-10-29  9:57       ` jasmine
2004-10-29 10:16       ` Thomas Gleixner
2004-11-01  0:01         ` Aras Vaichas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4181840D.2020605@magellan-technology.com \
    --to=arasv@magellan-technology.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox