]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu:Fix compute ring unable to detect hang.
authorJesse Zhang <zhexi.zhang@amd.com>
Tue, 30 Jul 2019 11:15:42 +0000 (19:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:01 +0000 (09:11 -0500)
commit751616596a5b73cac61f875cabb5e8153f066958
tree98950f910c1f3b99a59f7620fb4017d904d5e4e9
parent93bd26534a3a956fb4b7dd40cb86a271739363e0
drm/amd/amdgpu:Fix compute ring unable to detect hang.

When compute fence did not signal, compute ring cannot detect hardware hang
because its timeout value is set to be infinite by default.

In SR-IOV and passthrough mode, if user does not declare custome timeout
value for compute ring, then use gfx ring timeout value as default. So
that when there is a ture hardware hang, compute ring can detect it.

Signed-off-by: Jesse Zhang <zhexi.zhang@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_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c