Skip to contentSkip to conversation

drm/amd/pm: add smu pp_feature_mask callback for smu_v13_0_7

PATCH In review Yang Wang 3 participants 3 messages May 10, 2022 – May 11, 2022

Subsystems (3)
lore
Share & tools
lore

Yang Wang

author
#0 lore raw

PATCH 1/1 drm/amd/pm: add smu pp_feature_mask callback for smu_v13_0_7

- set_pp_feature_mask
- get_pp_feature_mask

the pp_feature device node isn't working when
above callback functions aren't provided.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +2 -0
index 583a96784558..00964b3728fe 100644
@@ -1500,6 +1500,8 @@ static const struct pptable_funcs smu_v13_0_7_ppt_funcs = {
 	.get_power_profile_mode = smu_v13_0_7_get_power_profile_mode,
 	.set_power_profile_mode = smu_v13_0_7_set_power_profile_mode,
 	.set_tool_table_location = smu_v13_0_set_tool_table_location,
+	.get_pp_feature_mask = smu_cmn_get_pp_feature_mask,
+	.set_pp_feature_mask = smu_cmn_set_pp_feature_mask,
 };
 
 void smu_v13_0_7_set_ppt_funcs(struct smu_context *smu)
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

[Public]

________________________________
From: amd-gfx <[email protected]> on behalf of Yang Wang <[email protected]>
Sent: Tuesday, May 10, 2022 2:00 PM
To: [email protected] <[email protected]>
Cc: Wang, Yang(Kevin) <[email protected]>
Subject: [PATCH] drm/amd/pm: add smu pp_feature_mask callback for smu_v13_0_7

- set_pp_feature_mask
- get_pp_feature_mask

the pp_feature device node isn't working when
above callback functions aren't provided.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +2 -0
index 583a96784558..00964b3728fe 100644
@@ -1500,6 +1500,8 @@ static const struct pptable_funcs smu_v13_0_7_ppt_funcs = {
         .get_power_profile_mode = smu_v13_0_7_get_power_profile_mode,
         .set_power_profile_mode = smu_v13_0_7_set_power_profile_mode,
         .set_tool_table_location = smu_v13_0_set_tool_table_location,
+       .get_pp_feature_mask = smu_cmn_get_pp_feature_mask,
+       .set_pp_feature_mask = smu_cmn_set_pp_feature_mask,
 };
 
 void smu_v13_0_7_set_ppt_funcs(struct smu_context *smu)

--
2.25.1

maintainer Reviewed-by Kenneth Feng on v1 1/1
#2 lore raw
In reply to Yang Wang

[AMD Official Use Only - General]

Best wishes
Kenneth Feng

发件人: amd-gfx <[email protected]> 代表 Yang Wang <[email protected]> 日期: 星期三, 2022年5月11日 02:01
收件人: [email protected] <[email protected]>
抄送: Wang, Yang(Kevin) <[email protected]>
主题: [PATCH] drm/amd/pm: add smu pp_feature_mask callback for smu_v13_0_7 [CAUTION: External Email]

- set_pp_feature_mask
- get_pp_feature_mask

the pp_feature device node isn't working when
above callback functions aren't provided.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +2 -0
index 583a96784558..00964b3728fe 100644
@@ -1500,6 +1500,8 @@ static const struct pptable_funcs smu_v13_0_7_ppt_funcs = {
        .get_power_profile_mode = smu_v13_0_7_get_power_profile_mode,
        .set_power_profile_mode = smu_v13_0_7_set_power_profile_mode,
        .set_tool_table_location = smu_v13_0_set_tool_table_location,
+       .get_pp_feature_mask = smu_cmn_get_pp_feature_mask,
+       .set_pp_feature_mask = smu_cmn_set_pp_feature_mask,
 };
 
 void smu_v13_0_7_set_ppt_funcs(struct smu_context *smu)

--
2.25.1