OSDN Git Service

drm/amdgpu: For sriov reset, move IB test into exclusive mode
authorEmily Deng <Emily.Deng@amd.com>
Thu, 26 Apr 2018 10:02:55 +0000 (18:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:44:06 +0000 (13:44 -0500)
commitabc342538cc4670a107e45037c39d1dda8174563
treefb77c6cd1623f06ccf9a4616714e56b3f35f10b2
parent5dd3f9efd4199f0d9e8244322934494ebd140dfd
drm/amdgpu: For sriov reset, move IB test into exclusive mode

When put the IB test out of exclusive mode, and do sriov reset,
the IB test will randomly fail. As out of exclusive mode it uses
kiq to do read and write registers, but as it has world switch,
the kiq read and write time will be random, sometimes it will
beyond the MAX_KIQ_REG_WAIT and then the read or write register
will fail, which will result the IB test fail.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c