[PATCH] drm/amd/pm: update the features set on smu v14.0.2/3

Wang, Yang(Kevin) KevinYang.Wang at amd.com
Fri Sep 6 05:58:17 UTC 2024


[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-by: Yang Wang <kevinyang.wang at amd.com>

Best Regards,
Kevin

-----Original Message-----
From: Kenneth Feng <kenneth.feng at amd.com>
Sent: Thursday, September 5, 2024 3:40 PM
To: amd-gfx at lists.freedesktop.org
Cc: Wang, Yang(Kevin) <KevinYang.Wang at amd.com>; Feng, Kenneth <Kenneth.Feng at amd.com>
Subject: [PATCH] drm/amd/pm: update the features set on smu v14.0.2/3

update the features set on smu v14.0.2/3

Signed-off-by: Kenneth Feng <kenneth.feng at amd.com>
---
 drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h         | 11 ++++++++++-
 drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c |  9 +++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h
index 12a7b0634ed5..5b3e38eb26b7 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h
@@ -439,7 +439,16 @@ enum smu_clk_type {
        __SMU_DUMMY_MAP(BACO_CG),                       \
        __SMU_DUMMY_MAP(SOC_CG),    \
        __SMU_DUMMY_MAP(LOW_POWER_DCNCLKS),       \
-       __SMU_DUMMY_MAP(WHISPER_MODE),
+       __SMU_DUMMY_MAP(WHISPER_MODE),                  \
+       __SMU_DUMMY_MAP(EDC_PWRBRK),                            \
+       __SMU_DUMMY_MAP(SOC_EDC_XVMIN),                         \
+       __SMU_DUMMY_MAP(GFX_PSM_DIDT),                          \
+       __SMU_DUMMY_MAP(APT_ALL_ENABLE),                                \
+       __SMU_DUMMY_MAP(APT_SQ_THROTTLE),                               \
+       __SMU_DUMMY_MAP(APT_PF_DCS),                            \
+       __SMU_DUMMY_MAP(GFX_EDC_XVMIN),                         \
+       __SMU_DUMMY_MAP(GFX_DIDT_XVMIN),                                \
+       __SMU_DUMMY_MAP(FAN_ABNORMAL),

 #undef __SMU_DUMMY_MAP
 #define __SMU_DUMMY_MAP(feature)       SMU_FEATURE_##feature##_BIT
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
index a31fae5feedf..7125f72d01f2 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
@@ -199,6 +199,15 @@ static struct cmn2asic_mapping smu_v14_0_2_feature_mask_map[SMU_FEATURE_COUNT] =
        FEA_MAP(MEM_TEMP_READ),
        FEA_MAP(ATHUB_MMHUB_PG),
        FEA_MAP(SOC_PCC),
+       FEA_MAP(EDC_PWRBRK),
+       FEA_MAP(SOC_EDC_XVMIN),
+       FEA_MAP(GFX_PSM_DIDT),
+       FEA_MAP(APT_ALL_ENABLE),
+       FEA_MAP(APT_SQ_THROTTLE),
+       FEA_MAP(APT_PF_DCS),
+       FEA_MAP(GFX_EDC_XVMIN),
+       FEA_MAP(GFX_DIDT_XVMIN),
+       FEA_MAP(FAN_ABNORMAL),
        [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},
--
2.34.1



More information about the amd-gfx mailing list