drm/amd/powerplay: implement the is_dpm_running()
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: implement the is_dpm_running()
As the pmfw hasn't exported the interface of SMU feature mask to APU SKU so just force on all the features to driver inquired interface at early initial stage.
--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +12 -0
@@ -893,6 +893,17 @@ static int renoir_read_sensor(struct smu_context *smu,return ret; } +static bool renoir_is_dpm_running (struct smu_context *smu) +{ +/* +* Util now, the pmfw hasn't exported the interface of SMU +* feature mask to APU SKU so just force on all the feature +* at early initial stage. +*/ +return true; + +} +static const struct pptable_funcs renoir_ppt_funcs = { .get_smu_msg_index = renoir_get_smu_msg_index, .get_smu_clk_index = renoir_get_smu_clk_index,
@@ -933,6 +944,7 @@ static const struct pptable_funcs renoir_ppt_funcs = { .mode2_reset = smu_v12_0_mode2_reset, .set_soft_freq_limited_range = smu_v12_0_set_soft_freq_limited_range, .set_driver_table_location = smu_v12_0_set_driver_table_location, + .is_dpm_running = renoir_is_dpm_running, };void renoir_set_ppt_funcs (struct smu_context *smu)
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 5 lines · Prike
As the pmfw hasn't exported the interface of SMU feature mask to APU SKU so just force on all the features to driver inquired interface at early initial stage.
Signed-off-by Prike Liang <[email protected]>
Quoted 37 lines
--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)drivers/gpu/drm/amd/powerplay/renoir_ppt.c +12
-0@@ -893,6 +893,17 @@ static int renoir_read_sensor(struct smu_context *smu,return ret; } +static bool renoir_is_dpm_running (struct smu_context *smu) +{ +/* +* Util now, the pmfw hasn't exported the interface of SMU +* feature mask to APU SKU so just force on all the feature +* at early initial stage. +*/ +return true; + +} +static const struct pptable_funcs renoir_ppt_funcs = { .get_smu_msg_index = renoir_get_smu_msg_index, .get_smu_clk_index = renoir_get_smu_clk_index,@@ -933,6 +944,7 @@ static const struct pptable_funcs renoir_ppt_funcs = { .mode2_reset = smu_v12_0_mode2_reset, .set_soft_freq_limited_range = smu_v12_0_set_soft_freq_limited_range, .set_driver_table_location = smu_v12_0_set_driver_table_location, + .is_dpm_running = renoir_is_dpm_running, };void renoir_set_ppt_funcs (struct smu_context *smu)Signature · 1 line
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 14 lines · Prike Liang
As the pmfw hasn't exported the interface of SMU feature mask to APU SKU so just force on all the features to driver inquired interface at early initial stage.
Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)drivers/gpu/drm/amd/powerplay/renoir_ppt.c +0
-0
drivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_read_sensor(struct smu_context *smu, · line 899
Quoted 7 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +4
-0@@ -893,6 +893,17 @@ static int renoir_read_sensor(struct smu_context *smu,return ret; } +static bool renoir_is_dpm_running (struct smu_context *smu) +{ +/* +* Util now, the pmfw hasn't exported the interface of SMU
small typo:
Util ->Until
Quoted 11 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +7
-0+* feature mask to APU SKU so just force on all the feature +* at early initial stage. +*/ +return true; + +} +static const struct pptable_funcs renoir_ppt_funcs = { .get_smu_msg_index = renoir_get_smu_msg_index, .get_smu_clk_index = renoir_get_smu_clk_index,
drivers/gpu/drm/amd/powerplay/renoir_ppt.c static const struct pptable_funcs renoir_ppt_funcs = { · line 950
Quoted 7 lines
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +1
-0@@ -933,6 +944,7 @@ static const struct pptable_funcs renoir_ppt_funcs = { .mode2_reset = smu_v12_0_mode2_reset, .set_soft_freq_limited_range = smu_v12_0_set_soft_freq_limited_range, .set_driver_table_location = smu_v12_0_set_driver_table_location, + .is_dpm_running = renoir_is_dpm_running, };void renoir_set_ppt_funcs (struct smu_context *smu)
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx