drm/msm/a6xx: Increase HFI response timeout
authorAkhil P Oommen <quic_akhilpo@quicinc.com>
Sat, 19 Apr 2025 14:51:31 +0000 (20:21 +0530)
committerRob Clark <robdclark@chromium.org>
Sun, 4 May 2025 16:20:29 +0000 (09:20 -0700)
When ACD feature is enabled, it triggers some internal calibrations
which result in a pretty long delay during the first HFI perf vote.
So, increase the HFI response timeout to match the downstream driver.

Signed-off-by: Akhil P Oommen <quic_akhilpo@quicinc.com>
Tested-by: Maya Matuszczyk <maccraft123mc@gmail.com>
Tested-by: Anthony Ruhier <aruhier@mailbox.org>
Patchwork: https://patchwork.freedesktop.org/patch/649344/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_hfi.c

index 3cab07f622852469a46b02b6339c31fc87685629..8e69b1e8465711837151725c8f70e7b4b16a368e 100644 (file)
@@ -107,7 +107,7 @@ static int a6xx_hfi_wait_for_msg_interrupt(struct a6xx_gmu *gmu, u32 id, u32 seq
 
        /* Wait for a response */
        ret = gmu_poll_timeout(gmu, REG_A6XX_GMU_GMU2HOST_INTR_INFO, val,
-               val & A6XX_GMU_GMU2HOST_INTR_INFO_MSGQ, 100, 5000);
+               val & A6XX_GMU_GMU2HOST_INTR_INFO_MSGQ, 100, 1000000);
 
        if (ret) {
                DRM_DEV_ERROR(gmu->dev,