OSDN Git Service

drm/amdgpu: Reduce SG bo memory usage for mGPUs
authorPhilip Yang <Philip.Yang@amd.com>
Tue, 7 Dec 2021 02:17:14 +0000 (21:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Dec 2021 21:33:16 +0000 (16:33 -0500)
commit28fe416466f2f09b47a9c5e81fa1ac140512f3d5
tree4b22e8d6a03e9104bf7419be6bc8252c0ecddc14
parent4a74c38cd67b3e74a1dacc76c7ac5c276bfdeab5
drm/amdgpu: Reduce SG bo memory usage for mGPUs

For userptr bo, if adev is not in IOMMU isolation mode, RAM direct map
to GPU, multiple GPUs use same system memory dma mapping address, they
can share the original mem->bo in attachment to reduce dma address array
memory usage.

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