Skip to contentSkip to conversation

drm/amdgpu: increase mes submission timeout

PATCH In review Jonathan Kim 2 participants 2 messages Apr 11, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: increase mes submission timeout

MES internally has a timeout allowance of 2 seconds. Increase driver timeout to 3 seconds to be safe.

---
 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 e5230078a4cd..81833395324a 100644
@@ -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;
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

________________________________
From: Kim, Jonathan <[email protected]>
Sent: Thursday, April 11, 2024 3:03 PM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Joshi, Mukul <[email protected]>; Kim, Jonathan <[email protected]>; Kim, Jonathan <[email protected]>
Subject: [PATCH] drm/amdgpu: increase mes submission timeout

MES internally has a timeout allowance of 2 seconds. Increase driver timeout to 3 seconds to be safe.

---
 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 e5230078a4cd..81833395324a 100644
@@ -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;

--
2.34.1