]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu/pm: align Hawaii mclk workaround with radeon
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2026 14:42:49 +0000 (10:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2026 14:15:11 +0000 (10:15 -0400)
Align the hawaii mclk workaround with radeon and windows.

Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/1816
Fixes: 9f4b35411cfe ("drm/amd/powerplay: add CI asics support to smumgr (v3)")
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 9649528b637f668c5af9f2b83ca4ad8576ae2121)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c

index 0a3a0722b5c97743641b07d3d70eae99038f1710..3650e7beeb67127043cfa1bd6376c88e11b02937 100644 (file)
@@ -1336,10 +1336,10 @@ static int ci_populate_all_memory_levels(struct pp_hwmgr *hwmgr)
        if ((dpm_table->mclk_table.count >= 2) &&
            ((dev_id == 0x67B0) ||  (dev_id == 0x67B1)) &&
            (adev->pdev->revision == 0)) {
-               smu_data->smc_state_table.MemoryLevel[1].MinVddci =
-                               smu_data->smc_state_table.MemoryLevel[0].MinVddci;
-               smu_data->smc_state_table.MemoryLevel[1].MinMvdd =
-                               smu_data->smc_state_table.MemoryLevel[0].MinMvdd;
+               smu_data->smc_state_table.MemoryLevel[1].MinVddc =
+                               smu_data->smc_state_table.MemoryLevel[0].MinVddc;
+               smu_data->smc_state_table.MemoryLevel[1].MinVddcPhases =
+                               smu_data->smc_state_table.MemoryLevel[0].MinVddcPhases;
        }
        smu_data->smc_state_table.MemoryLevel[0].ActivityLevel = 0x1F;
        CONVERT_FROM_HOST_TO_SMC_US(smu_data->smc_state_table.MemoryLevel[0].ActivityLevel);