LS1021A: DMA memory allocation for PCIe Device

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LS1021A: DMA memory allocation for PCIe Device

1,857件の閲覧回数
Tarek
Senior Contributor I

In a Linux kernel module I'm using dma_alloc_coherent() to allocate memory for a PCI device to DMA data into the ARM DDR.

I have noticed that the kernel virtual address and dma_handle returned by this function are always the same.

Does this mean SMMU2 and MMU are using the same table or SMMU2 is disabled in Linux? 

Also do I need to set the DMA mask to 32 " DMA_BIT_MASK(32)"  for PCIe device or something else?

Do I need to configure the iATU inbound for the DMA to work or just the outbound Linux default configuration is enough?

Thanks

ラベル(1)
0 件の賞賛
返信
0 返答(返信)