]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: keep BOs in system memory if restore failed
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 30 Nov 2020 21:02:00 +0000 (16:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Dec 2020 21:04:10 +0000 (16:04 -0500)
commitb0cbc236f9a3c897dd7965b5366e594bfd479a6a
tree28261d1e5ab57e2e6afa044bf215f514d3a99869
parent84a032fb6571fea97e2bd263b06b3adca71edc4c
drm/amdkfd: keep BOs in system memory if restore failed

If vram is used up, display allocate vram evict the KFD BOs to system
memory. KFD schedule restore work to restore BOs back to vram. If
display BOs are pinned in vram, KFD restore work will keep retry, and
may never success.

If restore BO back to vram failed, keep the BO in system memory to
prevent endless retry restore, and GPU mapping will update to system
memory.

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