drm/amd/pm: add the missing mapping for PPT feature on SMU13.0.0 and 13.0.7
authorjsg <jsg@openbsd.org>
Thu, 19 Jan 2023 00:05:52 +0000 (00:05 +0000)
committerjsg <jsg@openbsd.org>
Thu, 19 Jan 2023 00:05:52 +0000 (00:05 +0000)
From Evan Quan
363781f72d46c3762d7c0fd8fc13f27dce47f5cf in linux-6.1.y/6.1.7
318ca20893c19ead02845a08204c3f9249bb74cd in mainline linux

sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c

index 9d16b42..a794a60 100644 (file)
@@ -189,6 +189,7 @@ static struct cmn2asic_mapping smu_v13_0_0_feature_mask_map[SMU_FEATURE_COUNT] =
        FEA_MAP(SOC_PCC),
        [SMU_FEATURE_DPM_VCLK_BIT] = {1, FEATURE_MM_DPM_BIT},
        [SMU_FEATURE_DPM_DCLK_BIT] = {1, FEATURE_MM_DPM_BIT},
+       [SMU_FEATURE_PPT_BIT] = {1, FEATURE_THROTTLERS_BIT},
 };
 
 static struct cmn2asic_mapping smu_v13_0_0_table_map[SMU_TABLE_COUNT] = {
index 21f192e..5282094 100644 (file)
@@ -191,6 +191,7 @@ static struct cmn2asic_mapping smu_v13_0_7_feature_mask_map[SMU_FEATURE_COUNT] =
        FEA_MAP(SOC_PCC),
        [SMU_FEATURE_DPM_VCLK_BIT] = {1, FEATURE_MM_DPM_BIT},
        [SMU_FEATURE_DPM_DCLK_BIT] = {1, FEATURE_MM_DPM_BIT},
+       [SMU_FEATURE_PPT_BIT] = {1, FEATURE_THROTTLERS_BIT},
 };
 
 static struct cmn2asic_mapping smu_v13_0_7_table_map[SMU_TABLE_COUNT] = {