drm/amdkfd: refine migration policy with xnack on
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 25 Feb 2021 04:46:28 +0000 (23:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:50:03 +0000 (21:50 -0400)
commitcda0f85bfa5e5fddc51b94cfd6680c6697707a89
tree1889d0c8c7654d13ecb4502fba8c04d0fe7d0919
parent485bea1f90b3347bb5c1f8adad533f14d8d8ff1c
drm/amdkfd: refine migration policy with xnack on

With xnack on, GPU vm fault handler decide the best restore location,
then migrate range to the best restore location and update GPU mapping
to recover the GPU vm fault.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@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_migrate.h
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c