linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC512x DMA to PCI dev
@ 2009-03-11 12:11 Matteo Fortini
  2009-03-12 10:51 ` Matteo Fortini
  0 siblings, 1 reply; 2+ messages in thread
From: Matteo Fortini @ 2009-03-11 12:11 UTC (permalink / raw)
  To: linux-ppc list

Hi all,
I'm trying to send some data through DMA from a memory buffer to a PCI 
video card VRAM.

While I got that I need to alloc the src buffer through 
dma_alloc_coherent, I don't understand which address I should give as 
the dst address.

I tried both the mapped hw address and an address received from 
pci_map_single, but even if the DMA transfer completes "correctly", I 
have the wrong data in the VRAM in the end.

I read about all the PCI DMA manuals, but it seems they are for letting 
some external DMA device on the PCI bus read/write from/to the main memory.

How do you do that?

Thanks,
Matteo

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

* Re: MPC512x DMA to PCI dev
  2009-03-11 12:11 MPC512x DMA to PCI dev Matteo Fortini
@ 2009-03-12 10:51 ` Matteo Fortini
  0 siblings, 0 replies; 2+ messages in thread
From: Matteo Fortini @ 2009-03-12 10:51 UTC (permalink / raw)
  To: linux-ppc list

Ok,
I answer to myself, to whomever it may interest: the DMA controller to 
use is the PCI_DMA controller, and not the generic DMA controller.

Right now, I'm trying to figure out if there's a generic PCI API I can 
extend to talk to the PCI DMA controller.


Matteo Fortini ha scritto:
> Hi all,
> I'm trying to send some data through DMA from a memory buffer to a PCI 
> video card VRAM.
>
> While I got that I need to alloc the src buffer through 
> dma_alloc_coherent, I don't understand which address I should give as 
> the dst address.
>
> I tried both the mapped hw address and an address received from 
> pci_map_single, but even if the DMA transfer completes "correctly", I 
> have the wrong data in the VRAM in the end.
>
> I read about all the PCI DMA manuals, but it seems they are for letting 
> some external DMA device on the PCI bus read/write from/to the main memory.
>
> How do you do that?
>
> Thanks,
> Matteo
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
>
>   

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

end of thread, other threads:[~2009-03-12 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 12:11 MPC512x DMA to PCI dev Matteo Fortini
2009-03-12 10:51 ` Matteo Fortini

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