drm/amdkfd: Share the original BO for GTT mapping
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 21 Aug 2023 19:09:56 +0000 (15:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Aug 2023 19:19:07 +0000 (15:19 -0400)
commit5d44a766f70d394871da8882e4426f61e86c2d5b
tree335bec9b99a47ff4eb622c2346e6a29c5e17bc89
parent2c0f880abcca0f3514a65b90639bce570aeded75
drm/amdkfd: Share the original BO for GTT mapping

If mGPUs is on same IOMMU group, or is ram direct mapped, then mGPUs
can share the original BO for GTT mapping dma address, without creating
new BO from export/import dmabuf.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c