Commit 4e64b529 authored by Kenneth Feng's avatar Kenneth Feng Committed by Alex Deucher

drm/amd/pm: skip pptable override for smu_v13_0_7

skip pptable override for smu_v13_0_7 secure boards only.
Signed-off-by: default avatarKenneth Feng <kenneth.feng@amd.com>
Reviewed-by: default avatarFeifei Xu <Feifei.Xu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b7ffeb4a
...@@ -212,6 +212,9 @@ int smu_v13_0_init_pptable_microcode(struct smu_context *smu) ...@@ -212,6 +212,9 @@ int smu_v13_0_init_pptable_microcode(struct smu_context *smu)
if (!adev->scpm_enabled) if (!adev->scpm_enabled)
return 0; return 0;
if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 7))
return 0;
/* override pptable_id from driver parameter */ /* override pptable_id from driver parameter */
if (amdgpu_smu_pptable_id >= 0) { if (amdgpu_smu_pptable_id >= 0) {
pptable_id = amdgpu_smu_pptable_id; pptable_id = amdgpu_smu_pptable_id;
...@@ -219,13 +222,6 @@ int smu_v13_0_init_pptable_microcode(struct smu_context *smu) ...@@ -219,13 +222,6 @@ int smu_v13_0_init_pptable_microcode(struct smu_context *smu)
} else { } else {
pptable_id = smu->smu_table.boot_values.pp_table_id; pptable_id = smu->smu_table.boot_values.pp_table_id;
if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 7) &&
pptable_id == 3667)
pptable_id = 36671;
if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 7) &&
pptable_id == 3688)
pptable_id = 36881;
/* /*
* Temporary solution for SMU V13.0.0 with SCPM enabled: * Temporary solution for SMU V13.0.0 with SCPM enabled:
* - use 36831 signed pptable when pp_table_id is 3683 * - use 36831 signed pptable when pp_table_id is 3683
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment