enfiskutensykkel / ssd-gpu-dma

Build userspace NVMe drivers and storage applications with CUDA support
BSD 2-Clause "Simplified" License
338 stars 47 forks source link

Investigate P2P support in the Linux DMA API for latest kernel release #11

Closed enfiskutensykkel closed 6 years ago

enfiskutensykkel commented 6 years ago

It appears that some efforts have been made recently to make IOMMU and PCIe peer-to-peer (P2P) work on x86. Need to test if the latest kernel properly supports dma_map_resource() and/or if nvidia_p2p_map_pages() returns valid IO addresses.

enfiskutensykkel commented 6 years ago

This issue is related to the ongoing discussion in issue #8

enfiskutensykkel commented 6 years ago

The dma_map_resource() functions are still dummy functions in the kernel for x86, but with Dolphin's SmartIO API we have made a solution for this. I will try to keep an eye on the development on this and maybe add the appropriate calls in the helper kernel module.