diff options
| author | Christoph Hellwig <[email protected]> | 2025-05-05 07:01:38 +0000 |
|---|---|---|
| committer | Marek Szyprowski <[email protected]> | 2025-05-06 06:36:53 +0000 |
| commit | a25e7962db0d79882c9d32fd2a67a02e79129c0e (patch) | |
| tree | ea3cf3aef1c90035982aaefe399f4378f48a9428 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | Linux 6.15-rc1 (diff) | |
| download | kernel-a25e7962db0d79882c9d32fd2a67a02e79129c0e.tar.gz kernel-a25e7962db0d79882c9d32fd2a67a02e79129c0e.zip | |
PCI/P2PDMA: Refactor the p2pdma mapping helpers
The current scheme with a single helper to determine the P2P status
and map a scatterlist segment force users to always use the map_sg
helper to DMA map, which we're trying to get away from because they
are very cache inefficient.
Refactor the code so that there is a single helper that checks the P2P
state for a page, including the result that it is not a P2P page to
simplify the callers, and a second one to perform the address translation
for a bus mapped P2P transfer that does not depend on the scatterlist
structure.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Acked-by: Bjorn Helgaas <[email protected]>
Tested-by: Jens Axboe <[email protected]>
Reviewed-by: Luis Chamberlain <[email protected]>
Reviewed-by: Lu Baolu <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Marek Szyprowski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
