drm/amdgpu/gfx10: fix race condition for kiq
authorJack Xiao <Jack.Xiao@amd.com>
Fri, 10 Jul 2020 04:18:22 +0000 (12:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Jul 2020 21:42:50 +0000 (17:42 -0400)
commit926ee775ba53482d2895d31caf212d234158224c
tree75a170c931f1a7d070979ca9236a06b43262bd20
parent2b9f78481b3e16925e2bfa6256a227e104dc2e79
drm/amdgpu/gfx10: fix race condition for kiq

During preemption test for gfx10, it uses kiq to trigger
gfx preemption, which would result in race condition
with flushing TLB for kiq.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c