drm/amdgpu: use CPU to flush vmhub if sched stopped
authorMonk Liu <Monk.Liu@amd.com>
Tue, 26 Nov 2019 11:40:08 +0000 (19:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Dec 2019 22:38:03 +0000 (17:38 -0500)
commit869aebc7baa5b9bc65bde29690de311a26b2681b
treeae9ea8d5640bbe09f66f802eab2f1dbec2aa7339
parent45317d5ffb4d9bc842ef1f6119bc0b9e36c95f56
drm/amdgpu: use CPU to flush vmhub if sched stopped

otherwse the flush_gpu_tlb will hang if we unload the
KMD becuase the schedulers already stopped

Signed-off-by: Monk Liu <Monk.Liu@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/gmc_v10_0.c