mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
![]() This patch is to add the fine grain tuning function for vangogh. This function uses the pp_od_clk_voltage sysfs file to configure the min and max value of gfx clock frequency or restore the default value. Command guide: echo "s level value" > pp_od_clk_voltage "s" - set the sclk frequency "level" - 0 or 1, "0" represents the min value, "1" represents the max value "value" - the target value of sclk frequency, it should be limited in the safe range echo "r" > pp_od_clk_voltage "r" - reset the sclk frequency, restore the default value instantly echo "c" > pp_od_clk_voltage "c" - commit the min and max value of sclk frequency to the system only after the commit command, the setting target values by "s" command will take effect. Example: 1)check the default sclk frequency $ cat pp_od_clk_voltage OD_SCLK: 0: 200Mhz 1: 1400Mhz OD_RANGE: SCLK: 200MHz 1400MHz 2)use "s" -- set command to configure the min or max sclk frequency $ echo "s 0 600" > pp_od_clk_voltage $ echo "s 1 1000" > pp_od_clk_voltage $ echo "c" > pp_od_clk_voltage $ cat pp_od_clk_voltage OD_SCLK: 0: 600Mhz 1: 1000Mhz OD_RANGE: SCLK: 200MHz 1400MHz 3)use "r" -- reset command to restore the min and max sclk frequency $ echo "r" > pp_od_clk_voltage $ cat pp_od_clk_voltage OD_SCLK: 0: 200Mhz 1: 1400Mhz OD_RANGE: SCLK: 200MHz 1400MHz Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> |
||
---|---|---|
.. | ||
vega12 | ||
amd_powerplay.h | ||
amdgpu_dpm.h | ||
amdgpu_pm.h | ||
amdgpu_smu.h | ||
arcturus_ppsmc.h | ||
cz_ppsmc.h | ||
fiji_ppsmc.h | ||
hardwaremanager.h | ||
hwmgr.h | ||
polaris10_pwrvirus.h | ||
power_state.h | ||
pp_debug.h | ||
pp_endian.h | ||
pp_thermal.h | ||
ppinterrupt.h | ||
rv_ppsmc.h | ||
smu7.h | ||
smu7_common.h | ||
smu7_discrete.h | ||
smu7_fusion.h | ||
smu7_ppsmc.h | ||
smu8.h | ||
smu8_fusion.h | ||
smu9.h | ||
smu9_driver_if.h | ||
smu10.h | ||
smu10_driver_if.h | ||
smu11_driver_if.h | ||
smu11_driver_if_arcturus.h | ||
smu11_driver_if_navi10.h | ||
smu11_driver_if_sienna_cichlid.h | ||
smu11_driver_if_vangogh.h | ||
smu12_driver_if.h | ||
smu71.h | ||
smu71_discrete.h | ||
smu72.h | ||
smu72_discrete.h | ||
smu73.h | ||
smu73_discrete.h | ||
smu74.h | ||
smu74_discrete.h | ||
smu75.h | ||
smu75_discrete.h | ||
smu_11_0_cdr_table.h | ||
smu_types.h | ||
smu_ucode_xfer_cz.h | ||
smu_ucode_xfer_vi.h | ||
smu_v11_0.h | ||
smu_v11_0_7_ppsmc.h | ||
smu_v11_0_7_pptable.h | ||
smu_v11_0_ppsmc.h | ||
smu_v11_0_pptable.h | ||
smu_v11_5_pmfw.h | ||
smu_v11_5_ppsmc.h | ||
smu_v12_0.h | ||
smu_v12_0_ppsmc.h | ||
smumgr.h | ||
tonga_ppsmc.h | ||
vega10_ppsmc.h | ||
vega12_ppsmc.h | ||
vega20_ppsmc.h |