OSDN Git Service

drm/amdkfd: invalidate tables on page retry fault
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 25 Feb 2021 03:34:11 +0000 (22:34 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:48:50 +0000 (21:48 -0400)
commit90d7d3eda5796fa48048f1114b0aa090c5465d17
treebc950b404da840d2a86395375fec3f8317e509dd
parent48ff079b28d82dbce000cc45c0fd35b6ae9ffbda
drm/amdkfd: invalidate tables on page retry fault

GPU page tables are invalidated by unmapping prange directly at
the mmu notifier, when page fault retry is enabled through
amdgpu_noretry global parameter. The restore page table is
performed at the page fault handler.

If xnack is on, we update GPU mappings after migration to avoid
unnecessary GPUVM faults.

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