drm/amdgpu: Fix missing drain retry fault the last entry
authorEmily Deng <Emily.Deng@amd.com>
Mon, 3 Mar 2025 07:10:22 +0000 (15:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Mar 2025 17:53:30 +0000 (12:53 -0500)
commitfe2fa3be3d59ba67d6de54a0064441ec233cb50c
treededb96478040c7227af57ee186da56184677aad8
parent94b0908b85524d467a00c6aa2a277ef98fd8b152
drm/amdgpu: Fix missing drain retry fault the last entry

While the entry get in svm_range_unmap_from_cpu is the last entry, and
the entry is page fault, it also need to be dropped. So for equal case,
it also need to be dropped.

v2:
Only modify the svm_range_restore_pages.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Xiaogang Chen<xiaogang.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
drivers/gpu/drm/amd/amdkfd/kfd_svm.c