From: Jonathan Kim Date: Thu, 11 Apr 2024 18:57:52 +0000 (-0400) Subject: drm/amdgpu: increase mes submission timeout X-Git-Tag: v6.10-rc1~148^2~19^2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7c161a4c250d44eb96a1dcbf5bb3a8e3eba525b;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: increase mes submission timeout MES internally has a timeout allowance of 2 seconds. Increase driver timeout to 3 seconds to be safe. Signed-off-by: Jonathan Kim Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c b/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c index e5230078a4cdd..81833395324a0 100644 --- a/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c @@ -111,7 +111,7 @@ static int mes_v11_0_submit_pkt_and_poll_completion(struct amdgpu_mes *mes, struct amdgpu_device *adev = mes->adev; struct amdgpu_ring *ring = &mes->ring; unsigned long flags; - signed long timeout = adev->usec_timeout; + signed long timeout = 3000000; /* 3000 ms */ if (amdgpu_emu_mode) { timeout *= 100;