]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amdgpu/mes11: reduce timeout
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2024 14:52:24 +0000 (10:52 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:33:28 +0000 (16:33 +0200)
commit 856265caa94a3c78feaa23ec1acd799fe1989201 upstream.

The firmware timeout is 2s.  Reduce the driver timeout to
2.1 seconds to avoid back pressure on queue submissions.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3627
Fixes: f7c161a4c250 ("drm/amdgpu: increase mes submission timeout")
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c

index e1a66d585f5e9930555a4854a60cc55fbe6db0c3..44b277c55de4a51d4f405d5f88e92f3adaaf110e 100644 (file)
@@ -155,7 +155,7 @@ static int mes_v11_0_submit_pkt_and_poll_completion(struct amdgpu_mes *mes,
                                                    int api_status_off)
 {
        union MESAPI__QUERY_MES_STATUS mes_status_pkt;
-       signed long timeout = 3000000; /* 3000 ms */
+       signed long timeout = 2100000; /* 2100 ms */
        struct amdgpu_device *adev = mes->adev;
        struct amdgpu_ring *ring = &mes->ring;
        struct MES_API_STATUS *api_status;