Re: Allocate consistent memory in the 32-bit address range, with DMA_64BIT_MASK?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Leon Woestenberg wrote:
> Hello,
> 
> my PCIe device supports 64-bit DMA for data, but only 32-bit addresses
> for fetching descriptors from host memory.
> 
> How can I allocate consistent memory in the 32-bit address range, even
> though I earlier performed pci_set_dma_mask(..., DMA_64BIT_MASK)?

Create a pci_pool (see pci_pool_*() in include/linux/pci.h) for the 
descriptors. Create the pool with a restriction to 32 bit.

Eike

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux