drm/amd/pm: Use VBIOS PPTable for aldebaran
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 12 Apr 2021 05:57:35 +0000 (13:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:01:13 +0000 (16:01 -0400)
Keep the logic to force-use VBIOS PPTable in aldebaran rather
than in generic SMU13.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c

index bca02a9..7b8b53c 100644 (file)
@@ -405,6 +405,9 @@ static int aldebaran_setup_pptable(struct smu_context *smu)
 {
        int ret = 0;
 
+       /* VBIOS pptable is the first choice */
+       smu->smu_table.boot_values.pp_table_id = 0;
+
        ret = smu_v13_0_setup_pptable(smu);
        if (ret)
                return ret;
index 30c9ac6..0864083 100644 (file)
@@ -276,8 +276,6 @@ int smu_v13_0_setup_pptable(struct smu_context *smu)
        void *table;
        uint16_t version_major, version_minor;
 
-       /* temporarily hardcode to use vbios pptable */
-       smu->smu_table.boot_values.pp_table_id = 0;
 
        if (amdgpu_smu_pptable_id >= 0) {
                smu->smu_table.boot_values.pp_table_id = amdgpu_smu_pptable_id;