drm/amdgpu: Fix a race of IB test
authorxinhui pan <xinhui.pan@amd.com>
Sat, 11 Sep 2021 01:41:29 +0000 (09:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Sep 2021 19:59:58 +0000 (15:59 -0400)
commit0fcfb30019d3e0b891a201e41262b926648c38b0
treebccd8e5b5b0e287f17d3685271ddc2a0939afc3c
parent405a81ae3fe81a175ef51e6f4ed240744370163e
drm/amdgpu: Fix a race of IB test

Direct IB submission should be exclusive. So use write lock.

Signed-off-by: xinhui pan <xinhui.pan@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/amdgpu_debugfs.c