]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: adjust timeout for ib_ring_tests(v2)
authorMonk Liu <Monk.Liu@amd.com>
Tue, 23 Jan 2018 10:26:20 +0000 (18:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Feb 2018 19:18:07 +0000 (14:18 -0500)
commitfbee5d40cd0f0756bb1980ba682685dbe9d4cdb8
tree0267389b869a300910335f46e3bbf2e5273e3a8d
parentdd40735b51c41028ff123f795399c5e7a2ecc4a6
drm/amdgpu: adjust timeout for ib_ring_tests(v2)

issue:
sometime GFX/MM ib test hit timeout under SRIOV env, root cause
is that engine doesn't come back soon enough so the current
IB test considered as timed out.

fix:
for SRIOV GFX IB test wait time need to be expanded a lot during
SRIOV runtimei mode since it couldn't really begin before GFX engine
come back.

for SRIOV MM IB test it always need more time since MM scheduling
is not go together with GFX engine, it is controled by h/w MM
scheduler so no matter runtime or exclusive mode MM IB test
always need more time.

v2:
use ring type instead of idx to judge

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