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>
Tue, 3 Dec 2019 16:39:21 +0000 (11:39 -0500)
commite2195f7d0e735b9e466873333a7e832e3b7d254b
treed8d7120a7bcb6a3dced8d9927610e6ab06c284fc
parentc38402fe6c4dbb235bef405209c2195ee9cd679c
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