Skip to content

add API to get GPU physical address

Ajit Khaparde dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gpudev: add API to get GPU physical addresslib/gpudev/gpudev.c lib/gpudev/gpudev_driver.h lib/gpudev/rte_gpudev.h +1 more+118 -00 replies
2/2gpu/cuda: extend cuda code to get PA of GPUdrivers/gpu/cuda/common.h drivers/gpu/cuda/cuda.c drivers/gpu/cuda/gdrcopy.c+147 -221 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] add API to get GPU physical address

Add API to get the physical address of the peer GPU. This should allow some NIC hardware to directly use the physical address for DMA instead of the CUDA Unified Memory provided by current mem_map calls.

A dependent code change has been pushed to the gdrcopy tree on github. The pull request is open here.
https://github.com/NVIDIA/gdrcopy/pull/304

Please review.

Thanks

Ajit Khaparde (2):
gpudev: add API to get GPU physical address
gpu/cuda: extend cuda code to get PA of GPU

 drivers/gpu/cuda/common.h  |   2 +
 drivers/gpu/cuda/cuda.c    | 117 ++++++++++++++++++++++++++++++-------
 drivers/gpu/cuda/gdrcopy.c |  50 ++++++++++++++++
 lib/gpudev/gpudev.c        |  61 +++++++++++++++++++
 lib/gpudev/gpudev_driver.h |   6 ++
 lib/gpudev/rte_gpudev.h    |  49 ++++++++++++++++
 lib/gpudev/version.map     |   2 +
 7 files changed, 265 insertions(+), 22 deletions(-)
Signature · 1 line
2.39.3 (Apple Git-146)