drm/amdgpu: stop using sratch_reg in IB test
authorMonk Liu <Monk.Liu@amd.com>
Thu, 20 Feb 2020 05:35:02 +0000 (13:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Mar 2020 05:28:25 +0000 (00:28 -0500)
commit341dfe9073d18eed68ce1009ffd314f6d951db3f
treed0e875b25ec2c21571e7be16095659af880b5a02
parent752c683dbb65592e115886b252714ff41770df32
drm/amdgpu: stop using sratch_reg in IB test

scratch_reg0 is used by RLCG for register access usage
in SRIOV case.

both CP firmware and driver can invoke RLCG to do
certain register access (through scratch_reg0/1/2/3)
but rlcg now dosen't have race concern so if two
clients are in parallel doing the RLCG reg access
then we are colliding,

GFX IB test is a runtime work, so it is forbidden
to use scrach_reg0/1/2/3 during IB test period

note:
Although we can only have this change for SRIOV, but
looks it doesn't worth the effort to differentiate
bare-metal with SRIOV on the GFX ib test

Signed-off-by: Monk Liu <Monk.Liu@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