Commit 2a561b36 authored by Alex Deucher's avatar Alex Deucher
Browse files

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: 9f4b3541 ("drm/amd/powerplay: add CI asics support to smumgr (v3)")
Reviewed-by: default avatarTimur Kristóf <timur.kristof@gmail.com>
Reviewed-by: default avatarKent Russell <kent.russell@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 1db15ba8f72f400bbad8ae0ce24fafc43429d4bd)
Cc: stable@vger.kernel.org
parent 7bbfb255
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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 =