drm/amdgpu: add graceful VM fault handling v3
authorChristian König <christian.koenig@amd.com>
Fri, 7 Dec 2018 14:18:43 +0000 (15:18 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 15:42:55 +0000 (10:42 -0500)
commitec671737f8edfb8edf246afd425fdbed35284b23
tree10c9ba5161733d391d5430f85a66de07922925f9
parentb65709a92156b850840edba9f9932e10c235d44e
drm/amdgpu: add graceful VM fault handling v3

Next step towards HMM support. For now just silence the retry fault and
optionally redirect the request to the dummy page.

v2: make sure the VM is not destroyed while we handle the fault.
v3: fix VM destroy check, cleanup comments

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c