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>
Tue, 14 Jul 2020 19:07:46 +0000 (15:07 -0400)
commit7d65a577bb58d4f27a3398a4c0cb0b00ab7d0511
tree8a24f05918242c2e4474a65d0fa6a85e35cf7494
parent38794a5465b752118098e36cf95c59083f9f1f88
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