From: Likun Gao <likun....@amd.com> Add support to force and unforce MCLK or SOCCLK to dpm limit value.
Signed-off-by: Likun Gao <likun....@amd.com> Reviewed-by: Kenneth Feng <kenneth.f...@amd.com> Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c index 667c912e47fd..ef8532ff8e30 100644 --- a/drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c +++ b/drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c @@ -945,6 +945,8 @@ static int sienna_cichlid_force_dpm_limit_value(struct smu_context *smu, bool hi enum smu_clk_type clks[] = { SMU_GFXCLK, + SMU_MCLK, + SMU_SOCCLK, }; for (i = 0; i < ARRAY_SIZE(clks); i++) { @@ -970,6 +972,8 @@ static int sienna_cichlid_unforce_dpm_levels(struct smu_context *smu) enum smu_clk_type clks[] = { SMU_GFXCLK, + SMU_MCLK, + SMU_SOCCLK, }; for (i = 0; i < ARRAY_SIZE(clks); i++) { -- 2.25.4 _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx