[AMD Official Use Only - AMD Internal Distribution Only]

Ignore this, I will send the next one.
________________________________
From: Sun, Ce(Overlord) <[email protected]>
Sent: Tuesday, February 10, 2026 3:52 PM
To: [email protected] <[email protected]>
Cc: Lazar, Lijo <[email protected]>; Sun, Ce(Overlord) <[email protected]>
Subject: [PATCH] amdgpu/psp: Adjust usleep_range in fence wait

Tune the sleep interval in the PSP fence wait loop from 10-100us to 30-100us.
This adjustment results in an overall wait window of 600ms (30us * 20000 
iterations)
to 2 seconds (100us * 20000 iterations), which guarantees that we can retrieve
the correct fence value

Signed-off-by: Ce Sun <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index b0540b009e84..b08a57a07331 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -735,7 +735,7 @@ psp_cmd_submit_buf(struct psp_context *psp,
                 ras_intr = amdgpu_ras_intr_triggered();
                 if (ras_intr)
                         break;
-               usleep_range(10, 100);
+               usleep_range(30, 100);
                 amdgpu_device_invalidate_hdp(psp->adev, NULL);
         }

--
2.34.1

Reply via email to