linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Example PPC-4xx DMA scatter/gather usage
@ 2006-02-08 20:53 Buhler, Greg
  2006-02-08 21:31 ` David Hawkins
  2006-02-08 23:03 ` [PATCH resend, example] PPC-4xx DMA scatter/gather (to user memory) Roger Larsson
  0 siblings, 2 replies; 3+ messages in thread
From: Buhler, Greg @ 2006-02-08 20:53 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

Does anyone have any example code they could provide me that shows
correct usage of the Linux 2.6.x PPC-4xx scatter/gather DMA
functionality? None of the mainline kernel tree sources or module
sources seem to use this functionality. 

I am working on a driver that runs on an embedded PPC-405gp running
linux 2.4.21.  The driver relies extensively on the PPC's DMA controller
using all 4 channels simultaneously.  After some research I determined
that the version of the dma code that was in 2.4.21 had been
significantly modified in more recent kernel trees. As a result I have
merged in the 2.6.x version of this code, but am running into some
trouble with sg transfers.  Specifically, after setting up an sgl the
way I used to with the 2.4.21 kernel, and then kicking off the transfer,
nothing seems to get transferred. When I attempt to remove sg elements
from the sgl, the kernel complains saying that I'm trying to remove an
element from an already empty sgl.

Any help, advice, or examples would be greatly appreciated. Thanks.
______________________
Greg Buhler
Embedded INFOSEC Systems
Network Systems Group
ViaSat, Inc
760.476.2699
greg.buhler@viasat.com


[-- Attachment #2: Type: text/html, Size: 4914 bytes --]

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-08 20:53 Example PPC-4xx DMA scatter/gather usage Buhler, Greg
2006-02-08 21:31 ` David Hawkins
2006-02-08 23:03 ` [PATCH resend, example] PPC-4xx DMA scatter/gather (to user memory) Roger Larsson

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