]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit365ee8f447a62437da3fc7e68ae57d63526cda37
tree4b22e8d6a03e9104bf7419be6bc8252c0ecddc14
parent47e077a033476639a81bbc1adea27dadafdae428
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