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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 08:19:53 +0000 (10:19 +0200)
commitd2b27b4f5b04bdce08df1b4e421b34fb2572ba97
tree6bad6a3695e89e47621ceaece851082d4c4470e5
parentf5aaa22dea25728c3102e91d8246337c90b02fcf
drm/amdgpu/gfx10: fix race condition for kiq

[ Upstream commit 7d65a577bb58d4f27a3398a4c0cb0b00ab7d0511 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c