Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/smu10: fix SoC/fclk units in auto mode

SMU takes clock limits in Mhz units. socclk and fclk were
using 10 khz units in some cases. Switch to Mhz units.
Fixes higher than required SoC clocks.

Fixes: 97cf32996c46d9 ("drm/amd/pm: Removed fixed clock in auto mode DPM")
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+4 -4
+4 -4
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
··· 773 773 smum_send_msg_to_smc_with_parameter(hwmgr, 774 774 PPSMC_MSG_SetHardMinFclkByFreq, 775 775 hwmgr->display_config->num_display > 3 ? 776 - data->clock_vol_info.vdd_dep_on_fclk->entries[0].clk : 776 + (data->clock_vol_info.vdd_dep_on_fclk->entries[0].clk / 100) : 777 777 min_mclk, 778 778 NULL); 779 779 780 780 smum_send_msg_to_smc_with_parameter(hwmgr, 781 781 PPSMC_MSG_SetHardMinSocclkByFreq, 782 - data->clock_vol_info.vdd_dep_on_socclk->entries[0].clk, 782 + data->clock_vol_info.vdd_dep_on_socclk->entries[0].clk / 100, 783 783 NULL); 784 784 smum_send_msg_to_smc_with_parameter(hwmgr, 785 785 PPSMC_MSG_SetHardMinVcn, ··· 792 792 NULL); 793 793 smum_send_msg_to_smc_with_parameter(hwmgr, 794 794 PPSMC_MSG_SetSoftMaxFclkByFreq, 795 - data->clock_vol_info.vdd_dep_on_fclk->entries[index_fclk].clk, 795 + data->clock_vol_info.vdd_dep_on_fclk->entries[index_fclk].clk / 100, 796 796 NULL); 797 797 smum_send_msg_to_smc_with_parameter(hwmgr, 798 798 PPSMC_MSG_SetSoftMaxSocclkByFreq, 799 - data->clock_vol_info.vdd_dep_on_socclk->entries[index_socclk].clk, 799 + data->clock_vol_info.vdd_dep_on_socclk->entries[index_socclk].clk / 100, 800 800 NULL); 801 801 smum_send_msg_to_smc_with_parameter(hwmgr, 802 802 PPSMC_MSG_SetSoftMaxVcn,