[PATCH 2/2] drm/amd/pm: add the missing mapping for PPT feature on SMU13.0.0 and 13.0.7
Alex Deucher
alexdeucher at gmail.com
Wed Jan 4 14:31:57 UTC 2023
Series is:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
On Wed, Jan 4, 2023 at 1:36 AM Evan Quan <evan.quan at amd.com> wrote:
>
> Then we are able to set a new ppt limit via the hwmon interface(power1_cap).
>
> Signed-off-by: Evan Quan <evan.quan at amd.com>
> Change-Id: Ife80277f89065aa8405715e7ae21fb20be7eb706
> ---
> drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 1 +
> drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
> index aebdd9747c37..969e5f965540 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
> @@ -213,6 +213,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] = {
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
> index 5c6c6ad011ca..e87db7e02e8a 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
> @@ -192,6 +192,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] = {
> --
> 2.34.1
>
More information about the amd-gfx
mailing list