aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorYishai Hadas <[email protected]>2025-07-17 12:17:29 +0000
committerLeon Romanovsky <[email protected]>2025-07-23 05:42:10 +0000
commitd83edab562a496a42720902a1d2effccd05c37c5 (patch)
tree2b49fa4d30b2e4018f74ca45c3ea5dc3e44c5a59 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentIB/core: Add UVERBS_METHOD_REG_MR on the MR object (diff)
downloadkernel-d83edab562a496a42720902a1d2effccd05c37c5.tar.gz
kernel-d83edab562a496a42720902a1d2effccd05c37c5.zip
RDMA/core: Introduce a DMAH object and its alloc/free APIs
Introduce a new DMA handle (DMAH) object along with its corresponding allocation and deallocation APIs. This DMAH object encapsulates attributes intended for use in DMA transactions. While its initial purpose is to support TPH functionality, it is designed to be extensible for future features such as DMA PCI multipath, PCI UIO configurations, PCI traffic class selection, and more. Further details: ---------------- We ensure that a caller requesting a DMA handle for a specific CPU ID is permitted to be scheduled on it. This prevent a potential security issue where a non privilege user may trigger DMA operations toward a CPU that it's not allowed to run on. We manage reference counting for the DMAH object and its consumers (e.g., memory regions) as will be detailed in subsequent patches in the series. Signed-off-by: Yishai Hadas <[email protected]> Reviewed-by: Edward Srouji <[email protected]> Link: https://patch.msgid.link/2cad097e849597e49d6b61e6865dba878257f371.1752752567.git.leon@kernel.org Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions