]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitdf99ac0fcc507cb680c5b75b679cda1195a99a42
tree98950f910c1f3b99a59f7620fb4017d904d5e4e9
parent90a08351f72d609dfa22871226d75d3758b2df50
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