]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu/pm: add missing revision check for CI
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Apr 2026 15:38:58 +0000 (11:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2026 14:14:52 +0000 (10:14 -0400)
The ci_populate_all_memory_levels() workaround only
applies to revision 0 SKUs.

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 1db15ba8f72f400bbad8ae0ce24fafc43429d4bd)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c

index 731355bdb9bc302e8efddfb04f9fac2f6fd5a01e..0a3a0722b5c97743641b07d3d70eae99038f1710 100644 (file)
@@ -1333,8 +1333,9 @@ static int ci_populate_all_memory_levels(struct pp_hwmgr *hwmgr)
 
        dev_id = adev->pdev->device;
 
-       if ((dpm_table->mclk_table.count >= 2)
-               && ((dev_id == 0x67B0) ||  (dev_id == 0x67B1))) {
+       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 =