]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amd/pm: Increase SMUv13.0.6 mode-2 reset time
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 26 Feb 2024 10:34:36 +0000 (16:04 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Feb 2024 16:06:18 +0000 (11:06 -0500)
On SOCs with SMUv13.0.6, mode-2 reset takes a bit longer. Wait for 200ms
before trying to restore config space after mode-2 reset.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index 29c102fe650da580e364da45651abc869c50f249..2b7a60b23d6bbc229b529a2d30c2af3a449aef4b 100644 (file)
@@ -2307,8 +2307,8 @@ static int smu_v13_0_6_mode2_reset(struct smu_context *smu)
        ret = smu_cmn_send_msg_without_waiting(smu, (uint16_t)index,
                                               SMU_RESET_MODE_2);
 
-       /* This is similar to FLR, wait till max FLR timeout */
-       msleep(100);
+       /* Reset takes a bit longer, wait for 200ms. */
+       msleep(200);
 
        dev_dbg(smu->adev->dev, "restore config space...\n");
        /* Restore the config space saved during init */