From: Alex Deucher Date: Mon, 29 Apr 2024 15:40:26 +0000 (-0400) Subject: drm/amdgpu/mes12: increase mes submission timeout X-Git-Tag: io_uring-6.11-20240722~49^2~25^2~381 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=94b51a3d01ed498c753fe474157ca62f0b8a4bc2;p=linux-2.6-block.git drm/amdgpu/mes12: 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: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c index 9385ee76f3e6..57bc277677ed 100644 --- a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c @@ -151,8 +151,8 @@ static int mes_v12_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; const char *op_str, *misc_op_str; + signed long timeout = 3000000; /* 3000 ms */ if (x_pkt->header.opcode >= MES_SCH_API_MAX) return -EINVAL;