Skip to content

Commit

Permalink
drm/amd/pm: skip pptable override for smu_v13_0_7
Browse files Browse the repository at this point in the history
skip pptable override for smu_v13_0_7 secure boards only.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
  • Loading branch information
Kenneth Feng authored and Gang Long committed Aug 15, 2022
1 parent 4094b6c commit 314096c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,20 +212,16 @@ int smu_v13_0_init_pptable_microcode(struct smu_context *smu)
if (!adev->scpm_enabled)
return 0;

if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 7))
return 0;

/* override pptable_id from driver parameter */
if (amdgpu_smu_pptable_id >= 0) {
pptable_id = amdgpu_smu_pptable_id;
dev_info(adev->dev, "override pptable id %d\n", pptable_id);
} else {
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:
* - use 36831 signed pptable when pp_table_id is 3683
Expand Down

0 comments on commit 314096c

Please sign in to comment.