drm/amdgpu: Handle duplicate BOs during process restore
authorMukul Joshi <mukul.joshi@amd.com>
Fri, 8 Mar 2024 16:11:03 +0000 (11:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:12:56 +0000 (13:12 -0400)
commit71b9d19220dae4b69f03acd900498b23eeeaf000
tree06ab13a443a6baa611286e3da735a8322420fb7c
parent2f14c0c8cae8e9e3b603a3f91909baba66540027
drm/amdgpu: Handle duplicate BOs during process restore

In certain situations, some apps can import a BO multiple times
(through IPC for example). To restore such processes successfully,
we need to tell drm to ignore duplicate BOs.
While at it, also add additional logging to prevent silent failures
when process restore fails.

Signed-off-by: Mukul Joshi <mukul.joshi@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