drm/amdgpu: Fix missing drain retry fault the last entry

[ Upstream commit fe2fa3be3d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Emily Deng 2025-03-03 15:10:22 +08:00 • committed by Greg Kroah-Hartman
commit ecaa856227
2 changed files with 4 additions and 1 deletions