linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Using DMA
@ 2008-11-06  2:07 Bruce_Leonard
  2008-11-06 18:29 ` Scott Wood
  2008-11-07 15:43 ` Timur Tabi
  0 siblings, 2 replies; 24+ messages in thread
From: Bruce_Leonard @ 2008-11-06  2:07 UTC (permalink / raw)
  To: linuxppc-embedded

This may be the wrong forum for this question.  If so I apologize, and 
could someone please tell me the appropriate place to ask?

Assuming this is the right place, I'm working with the 2.6.27 (stable) 
kernel and an MPC8347E processor.  I'm using a custom NAND controller and 
a custom driver to talk with that controller.  I'm now to the point where 
I'm trying to optimize/improve performance and something I'd like to do is 
set up the driver to use DMA transfers to the controller.  (As an 
additional bit of info, I modeled my driver on the Cafe driver.)  However, 
no one here has ever had to set up DMA from scratch before, it's always 
been done by an existing driver or the kernel, so I'm in uncharted 
teritory.

In the Cafe driver, Linux Device Drivers 3rd Edition, and DMA-mapping.txt 
everyone talks about how to allocate buffers using 
dma/pci_alloc_coherent(), but no one talks about how to actually use it. 
I'm pretty sure (even in my ignorance) that just allocating a DMA coherent 
buffer and then copying in and out of it does NOT actually engage the 
underlying hardware and perform a DMA transfer.

With some digging I've found the Freescale Elo/Elo Plus DMA driver which 
supports my processor.  What I'm not clear on is how to actually make use 
of it.  How do I tie my NAND driver to the Freescale DMA driver and 
actually get the hardware to work?  Any pointers are greatly appreciated.

Thanks.

Bruce

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

end of thread, other threads:[~2008-11-11 21:54 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-06  2:07 Using DMA Bruce_Leonard
2008-11-06 18:29 ` Scott Wood
2008-11-06 18:36   ` Bill Gatliff
2008-11-06 20:58     ` Bruce_Leonard
2008-11-06 21:42       ` Bill Gatliff
2008-11-07 15:43 ` Timur Tabi
2008-11-07 21:31   ` Bruce_Leonard
2008-11-07 21:46     ` Timur Tabi
2008-11-07 22:12       ` Bruce_Leonard
2008-11-07 22:28         ` Timur Tabi
2008-11-07 22:37           ` Bruce_Leonard
2008-11-09  3:26           ` Bill Gatliff
2008-11-09  3:25         ` Bill Gatliff
2008-11-10  0:09   ` Bruce_Leonard
2008-11-10 14:35     ` Timur Tabi
2008-11-10 17:58       ` Bruce_Leonard
2008-11-11  9:09         ` Rajasekaran Kaliyaperumal,  Chennai
2008-11-11 10:22           ` Porting Linux to 8051 [ was:Re: Using DMA ] Martyn Welch
2008-11-10 22:06     ` Using DMA Bruce_Leonard
2008-11-11 14:51       ` Timur Tabi
2008-11-11 18:19         ` Bruce_Leonard
2008-11-11 19:22           ` Timur Tabi
2008-11-11 21:46             ` Bruce_Leonard
2008-11-11 21:54               ` Timur Tabi

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).