dma_alloc for pcie_device, how can I allocate from the pci device memory?

"Chan Kim" <[email protected]>
Newsgroups org.kernelnewbies.kernelnewbies
Message-ID <[email protected]>
Hello all,

If you do dma_alloc_xxx for a pci_device, we normally allocate memory in
host memory and the IOMMU for the device is setup so that the bus address is
converted to host physical memory (or cpu memory). Isn't this right?
But how do we allocate memory in the PCI device itself, I mean from the BAR
memory address of the pci_device?
How do we control from which memory (host memory or PCIe device memory) to
allocate memory? Is BAR memory only for explicit allocation by the driver
only?

Thank you.
Chan Kim




_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.