drm/amdgpu: Fix SDMA TO after GPU reset v3
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Mon, 10 Sep 2018 22:43:58 +0000 (18:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Sep 2018 21:30:48 +0000 (16:30 -0500)
commitd8de8260a45aae8f74af77eae9a162bdc0ed48d2
tree2df525b3a86fcfa357ec4be181a0928bb6485852
parent1c860a022f65224d6e8af71cc9f1411cb779f666
drm/amdgpu: Fix SDMA TO after GPU reset v3

After GPU reset amdgpu_vm_clear_bo triggers VM flush
but job->vm_pd_addr is not set causing SDMA TO.

v2:
Per advise by Christian König avoid flushing VM for jobs where
job->vm_pd_addr wasn't explicitly set.

v3:
Shortcut vm_flush_needed early.

Fixes cbd5285 drm/amdgpu: move setting the GART addr into TTM.
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c