Skip to content

Commit 4ee2bb2

Browse files
Prike Liangalexdeucher
authored andcommitted
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. Signed-off-by: Prike Liang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 36a5a58 commit 4ee2bb2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/gpu/drm/amd/powerplay/renoir_ppt.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,17 @@ static int renoir_read_sensor(struct smu_context *smu,
893893
return ret;
894894
}
895895

896+
static bool renoir_is_dpm_running(struct smu_context *smu)
897+
{
898+
/*
899+
* Util now, the pmfw hasn't exported the interface of SMU
900+
* feature mask to APU SKU so just force on all the feature
901+
* at early initial stage.
902+
*/
903+
return true;
904+
905+
}
906+
896907
static const struct pptable_funcs renoir_ppt_funcs = {
897908
.get_smu_msg_index = renoir_get_smu_msg_index,
898909
.get_smu_clk_index = renoir_get_smu_clk_index,
@@ -933,6 +944,7 @@ static const struct pptable_funcs renoir_ppt_funcs = {
933944
.mode2_reset = smu_v12_0_mode2_reset,
934945
.set_soft_freq_limited_range = smu_v12_0_set_soft_freq_limited_range,
935946
.set_driver_table_location = smu_v12_0_set_driver_table_location,
947+
.is_dpm_running = renoir_is_dpm_running,
936948
};
937949

938950
void renoir_set_ppt_funcs(struct smu_context *smu)

0 commit comments

Comments
 (0)