linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: linux DMA capabilities in MV64460
@ 2005-12-22  2:59 KokHow Teh
  0 siblings, 0 replies; 10+ messages in thread
From: KokHow Teh @ 2005-12-22  2:59 UTC (permalink / raw)
  To: Phil.Nitschke, Linuxppc-embedded



>Currently there is a 2M aperture on the device, but it is not being seen
>as "prefetchable", so when I try to get data from the device using
>repetitive reads, they are very slow.  Hence my efforts to get DMA
>happening.

>Presumably the CPU/bridge discovers PCI device memory regions during bus
>enumeration.  What characteristic of a device determines whether the
>memory region is going to be marked as "prefetchable"?

Being "prefetchable" or not is determined by bit-3 of PCI Memory BAR.

>Does this attribute also affect whether DMA will work?


  MAG> You may want to pick up "PCI System Architecture" from Mindshare,
  MAG> Inc.  There are ones for PCI-X and PCI-Express too, I think.
  MAG> Well worth the money.

>Sounds like a good idea.  I'd hoped not to have to become a PCI expert,
>but it seems that there is a lot for me to learn just to determine how
>best to design my driver.

Here is a good online reference but it does not cover dma and
cache-coherency in great details.
http://www.tldp.org/LDP/tlk/dd/pci.html

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

end of thread, other threads:[~2006-03-09  8:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <kw3bkovcup.fsf@lamorak.int.avalon.com.au>
2005-12-20  1:01 ` linux DMA capabilities in MV64460 Mark A. Greer
2005-12-20 14:27   ` Brian Waite
2005-12-20 17:54     ` Mark A. Greer
2005-12-22  0:54   ` Phil Nitschke
2006-03-06  4:09   ` Phil Nitschke
2006-03-06 13:21     ` Brian Waite
2006-03-08 14:02       ` Phil Nitschke
2006-03-08 22:36     ` Adrian Cox
2006-03-09  8:02       ` Phil Nitschke
2005-12-22  2:59 KokHow Teh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).