Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/pm: add missing revision check for CI

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

+3 -2
+3 -2
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
··· 1333 1333 1334 1334 dev_id = adev->pdev->device; 1335 1335 1336 - if ((dpm_table->mclk_table.count >= 2) 1337 - && ((dev_id == 0x67B0) || (dev_id == 0x67B1))) { 1336 + if ((dpm_table->mclk_table.count >= 2) && 1337 + ((dev_id == 0x67B0) || (dev_id == 0x67B1)) && 1338 + (adev->pdev->revision == 0)) { 1338 1339 smu_data->smc_state_table.MemoryLevel[1].MinVddci = 1339 1340 smu_data->smc_state_table.MemoryLevel[0].MinVddci; 1340 1341 smu_data->smc_state_table.MemoryLevel[1].MinMvdd =