Skip to content

Commit a103f11

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/pm: add missing revision check for CI
commit 2a561b3 upstream. The ci_populate_all_memory_levels() workaround only applies to revision 0 SKUs. Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/1816 Fixes: 9f4b354 ("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 1db15ba) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4f7ca00 commit a103f11

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,8 +1326,9 @@ static int ci_populate_all_memory_levels(struct pp_hwmgr *hwmgr)
13261326

13271327
dev_id = adev->pdev->device;
13281328

1329-
if ((dpm_table->mclk_table.count >= 2)
1330-
&& ((dev_id == 0x67B0) || (dev_id == 0x67B1))) {
1329+
if ((dpm_table->mclk_table.count >= 2) &&
1330+
((dev_id == 0x67B0) || (dev_id == 0x67B1)) &&
1331+
(adev->pdev->revision == 0)) {
13311332
smu_data->smc_state_table.MemoryLevel[1].MinVddci =
13321333
smu_data->smc_state_table.MemoryLevel[0].MinVddci;
13331334
smu_data->smc_state_table.MemoryLevel[1].MinMvdd =

0 commit comments

Comments
 (0)