From: Ajit Khaparde <ajit.khaparde@broadcom.com>
To: dev@dpdk.org
Cc: thomas@monjalon.net, eagostini@nvidia.com
Subject: [PATCH 0/2] add API to get GPU physical address
Date: Thu, 5 Sep 2024 21:16:12 -0700 [thread overview]
Message-ID: <20240906041614.36962-1-ajit.khaparde@broadcom.com> (raw)
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(-)
--
2.39.3 (Apple Git-146)
next reply other threads:[~2024-09-06 4:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-06 4:16 Ajit Khaparde [this message]
2024-09-06 4:16 ` [PATCH 1/2] gpudev: " Ajit Khaparde
2024-09-06 4:16 ` [PATCH 2/2] gpu/cuda: extend cuda code to get PA of GPU Ajit Khaparde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240906041614.36962-1-ajit.khaparde@broadcom.com \
--to=ajit.khaparde@broadcom.com \
--cc=dev@dpdk.org \
--cc=eagostini@nvidia.com \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).