Skip to contentSkip to conversation

drm/amdgpu/mes11: reduce timeout

PATCH In review Alex Deucher 2 participants 4 messages Sep 18, 2024

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 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")
---
 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
index 3c923719e32d3..e2b3f859a1c05 100644
@@ -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
author maintainer
#1 lore raw

PATCH 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")
---
 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
index ef05a41162306..186f778133974 100644
@@ -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
Acked-by on v1 2/2
#2 lore raw

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")

We should probably move that to a higher level.

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
index ef05a41162306..186f778133974 100644
@@ -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];
Acked-by on v1 1/2
#3 lore raw
In reply to Alex Deucher

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")
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
index 3c923719e32d3..e2b3f859a1c05 100644
@@ -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;