drm/amdgpu/mes11: reduce timeout
Subsystems (2)
Alex Deucher
maintainerPATCH 1/2 drm/amdgpu/mes11: reduce timeout
The firmware timeout is 2s. Reduce the driver timeout to 2.1 seconds to avoid back pressure on queue submissions.
Fixes f7c161a4c250 ("drm/amdgpu: increase mes submission timeout")
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c +1 -1
@@ -161,7 +161,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[0 ];struct MES_API_STATUS *api_status;
Signature · 1 line
2.46.0
Alex Deucher
maintainerPATCH 2/2 drm/amdgpu/mes12: reduce timeout
The firmware timeout is 2s. Reduce the driver timeout to 2.1 seconds to avoid back pressure on queue submissions.
Fixes 94b51a3d01ed ("drm/amdgpu/mes12: increase mes submission timeout")
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +1 -1
@@ -146,7 +146,7 @@ static int mes_v12_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[pipe];spinlock_t *ring_lock = &mes->ring_lock[pipe];
Signature · 1 line
2.46.0
Re: [PATCH 2/2] drm/amdgpu/mes12: reduce timeout
Am 18.09.24 um 15:39 schrieb Alex Deucher:
Quoted 5 lines
The firmware timeout is 2s. Reduce the driver timeout to 2.1 seconds to avoid back pressure on queue submissions.
Fixes 94b51a3d01ed ("drm/amdgpu/mes12: increase mes submission timeout")Signed-off-by Alex Deucher <[email protected]>
We should probably move that to a higher level.
Acked-by Christian König <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +1
-1@@ -146,7 +146,7 @@ static int mes_v12_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[pipe];spinlock_t *ring_lock = &mes->ring_lock[pipe];
Am 18.09.24 um 15:39 schrieb Alex Deucher:
Quoted 6 lines
The firmware timeout is 2s. Reduce the driver timeout to 2.1 seconds to avoid back pressure on queue submissions.
Fixes f7c161a4c250 ("drm/amdgpu: increase mes submission timeout")Signed-off-by Alex Deucher <[email protected]>
Acked-by Christian König <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/mes_v11_0.c +1
-1@@ -161,7 +161,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[0 ];struct MES_API_STATUS *api_status;