]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amdgpu: increase mes submission timeout
authorJonathan Kim <Jonathan.Kim@amd.com>
Thu, 11 Apr 2024 18:57:52 +0000 (14:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Apr 2024 02:38:59 +0000 (22:38 -0400)
MES internally has a timeout allowance of 2 seconds.
Increase driver timeout to 3 seconds to be safe.

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

index e5230078a4cdd3cdbad4c6f98f100ee1e94cff60..81833395324a0c618933e87bdfa8969ef4583778 100644 (file)
@@ -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;