]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/mes12: increase mes submission timeout
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Apr 2024 15:40:26 +0000 (11:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 20:18:15 +0000 (16:18 -0400)
MES internally has a timeout allowance of 2 seconds.
Increase driver timeout to 3 seconds to be safe.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c

index 9385ee76f3e6bf0a69a28bebfec3cfd4923dbdc4..57bc277677ed6e4308a53a46735960357e0b5648 100644 (file)
@@ -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;