drm/amd/pm: correct aldebaran smu feature mapping FEATURE_DATA_CALCULATIONS
authorKevin Wang <kevin1.wang@amd.com>
Mon, 2 Aug 2021 02:49:55 +0000 (10:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Aug 2021 01:17:58 +0000 (21:17 -0400)
correct smu feature mapping: FEATURE_DATA_CALCULATIONS
it will cause sysfs node of "pp_features" show error.

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

index 1d3765b873df4d11168c1628d66aff98fe5a1b0a..6239c30fcd5ff7411191363e5c4dfee16d99ad1e 100644 (file)
@@ -282,6 +282,7 @@ enum smu_clk_type {
        __SMU_DUMMY_MAP(TDC),                                   \
        __SMU_DUMMY_MAP(THERMAL),                               \
        __SMU_DUMMY_MAP(GFX_PER_CU_CG),                         \
+       __SMU_DUMMY_MAP(DATA_CALCULATIONS),                     \
        __SMU_DUMMY_MAP(RM),                                    \
        __SMU_DUMMY_MAP(DS_DCEFCLK),                            \
        __SMU_DUMMY_MAP(ACDC),                                  \
index 856eeaf293b895c759a244dde5d11cf7b6b793a8..562783d0302fa5b8fa7b156bc21c42285e355279 100644 (file)
@@ -150,7 +150,7 @@ static const struct cmn2asic_mapping aldebaran_clk_map[SMU_CLK_COUNT] = {
 };
 
 static const struct cmn2asic_mapping aldebaran_feature_mask_map[SMU_FEATURE_COUNT] = {
-       ALDEBARAN_FEA_MAP(SMU_FEATURE_DPM_PREFETCHER_BIT,               FEATURE_DATA_CALCULATIONS),
+       ALDEBARAN_FEA_MAP(SMU_FEATURE_DATA_CALCULATIONS_BIT,            FEATURE_DATA_CALCULATIONS),
        ALDEBARAN_FEA_MAP(SMU_FEATURE_DPM_GFXCLK_BIT,                   FEATURE_DPM_GFXCLK_BIT),
        ALDEBARAN_FEA_MAP(SMU_FEATURE_DPM_UCLK_BIT,                     FEATURE_DPM_UCLK_BIT),
        ALDEBARAN_FEA_MAP(SMU_FEATURE_DPM_SOCCLK_BIT,                   FEATURE_DPM_SOCCLK_BIT),