]> 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)
commit3505741d91939425283974f0bb9be55c6e40e13c
tree4b22e8d6a03e9104bf7419be6bc8252c0ecddc14
parentebd468699e1000d78cc9b428520a0748ddf8c1c8
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