]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Handle incomplete migration to system memory
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 27 Oct 2021 23:24:46 +0000 (19:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Nov 2021 16:22:07 +0000 (12:22 -0400)
commit5e6723ddbd99ea4df37ff9c01ceffcf05050aa05
tree149a22b40bfe3a2f0b1df175d34a74e51540ea07
parentf9fe2ae1b5c3b9b0858fd4b997bc3fd52c85fae1
drm/amdkfd: Handle incomplete migration to system memory

If some pages fail to migrate to system memory, don't update
prange->actual_loc = 0. This prevents endless CPU page faults after
partial migration failures due to contested page locks.

Migration to RAM must be complete during migrations from VRAM to VRAM and
during evictions. Implement retry and fail if the migration to RAM fails.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c