linux-stable/drivers/gpu/drm/amd/powerplay/hwmgr
Rex Zhu c5a4484941 drm/amd/pp: Add OVERDRIVE support on Vega10 (v2)
when bit14 in module parameter ppfeaturemask was set.
od feature will be enabled on Vega10 except vbios not support.

user can read od range by reading sysfs pp_od_clk_voltage,
cat pp_od_clk_voltage
OD_SCLK:
0:        852Mhz        800mV
1:        991Mhz        900mV
2:       1138Mhz        950mV
3:       1269Mhz       1000mV
4:       1348Mhz       1050mV
5:       1399Mhz       1100mV
6:       1440Mhz       1150mV
7:       1500Mhz       1200mV
OD_MCLK:
0:        167Mhz        800mV
1:        500Mhz        800mV
2:        800Mhz        950mV
3:        945Mhz       1000mV
OD_RANGE:
SCLK:     852MHz       2200MHz
MCLK:     167MHz       1500MHz
VDDC:     800mV        1200mV

and can configure the clock/voltage by writing pp_od_clk_voltage
for example:

echo "s 0 900 820">pp_od_clk_voltage to change the sclk/vddc
to 900MHz and 820 mV in dpm level0.

echo "r" to change the clk/voltage to  default value.

echo "c">pp_od_clk_voltage
to commit the change

v2: squash in warning fix (Alex)

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-05-15 13:43:52 -05:00
..
hardwaremanager.c drm/amd/pp: Not call cgs interface to get display info 2018-04-11 13:07:52 -05:00
hwmgr.c drm/amdgpu: clear gfxoff feature mask if the asic is not raven 2018-05-15 13:43:41 -05:00
hwmgr_ppt.h drm/amd/powerplay: add some new structures for Vega10 2017-03-29 23:54:52 -04:00
Makefile drm/amd/pp: Remove Dead functions on Vega12 2018-04-03 12:52:57 -05:00
pp_overdriver.c drm/amdgpu: add license to files where it was missing 2017-12-07 11:51:25 -05:00
pp_overdriver.h drm/amd/powerplay: Fix missing newlines at end of file 2017-12-06 12:47:59 -05:00
pp_psm.c drm/amd/pp: Fix spelling mistake: "suppported" -> "supported" 2018-04-11 13:07:49 -05:00
pp_psm.h drm/amd/powerplay: Fix psm_set_user_performance_state() 2017-09-12 14:23:18 -04:00
ppatomctrl.c drm/amd/pp: Change voltage/clk range for OD feature on VI 2018-05-15 13:43:47 -05:00
ppatomctrl.h drm/amd/pp: Change voltage/clk range for OD feature on VI 2018-05-15 13:43:47 -05:00
ppatomfwctrl.c drm/amd/pp: Refine pp_atomfwctrl_get_vbios_bootup_values 2018-05-15 13:43:03 -05:00
ppatomfwctrl.h drm/amd/pp: Refine pp_atomfwctrl_get_vbios_bootup_values 2018-05-15 13:43:03 -05:00
ppevvmath.h
pppcielanes.c
pppcielanes.h
pptable_v1_0.h
process_pptables_v1_0.c drm/amd/pp: Use atombios api directly in powerplay (v2) 2018-04-11 13:07:51 -05:00
process_pptables_v1_0.h
processpptables.c drm/amd/pp: Use atombios api directly in powerplay (v2) 2018-04-11 13:07:51 -05:00
processpptables.h
smu7_clockpowergating.c drm/amdgpu: remove duplicate cg/pg wrapper functions 2018-04-11 13:07:53 -05:00
smu7_clockpowergating.h drm/amd/pp: Remove dead header file pp_asicblocks.h 2018-03-15 09:58:16 -05:00
smu7_dyn_defaults.h drm/amd/pp: Change activity_target for performance optimization on Polaris 2018-02-19 14:18:46 -05:00
smu7_hwmgr.c drm/amdgpu/powerplay: actually return the power with the new query 2018-05-15 13:43:48 -05:00
smu7_hwmgr.h drm/amd/pp: Change voltage/clk range for OD feature on VI 2018-05-15 13:43:47 -05:00
smu7_powertune.c drm/amd/pp: Use gfx rlc funcs directly in powerplay 2018-04-11 13:07:50 -05:00
smu7_powertune.h
smu7_thermal.c drm/amd/pp: Fix set wrong temperature range on smu7 2018-03-22 14:43:01 -05:00
smu7_thermal.h drm/amd/powerplay: refine code for thermal control in powerplay 2017-09-18 23:30:31 -04:00
smu8_hwmgr.c drm/amdgpu: remove duplicate cg/pg wrapper functions 2018-04-11 13:07:53 -05:00
smu8_hwmgr.h drm/amd/pp: Rename file name cz_* to smu8_* 2018-03-15 09:58:56 -05:00
smu10_hwmgr.c drm/amd/pp: Use dynamic gfx_clk rather than hardcoded values 2018-05-15 13:43:47 -05:00
smu10_hwmgr.h drm/amd/pp: Use dynamic gfx_clk rather than hardcoded values 2018-05-15 13:43:47 -05:00
smu10_inc.h drm/amd/pp: Replace rv_* with smu10_* 2018-03-15 09:57:12 -05:00
smu_helper.c drm/amd/pp: Fix NULL point check error in smu_set_watermarks_for_clocks_ranges 2018-05-15 13:43:33 -05:00
smu_helper.h drm/amd/pp: Move common code to smu_helper.c 2018-05-15 13:43:19 -05:00
vega10_hwmgr.c drm/amd/pp: Add OVERDRIVE support on Vega10 (v2) 2018-05-15 13:43:52 -05:00
vega10_hwmgr.h drm/amd/pp: Add OVERDRIVE support on Vega10 (v2) 2018-05-15 13:43:52 -05:00
vega10_inc.h drm/amd/include:cleanup vega10 nbio header files. 2017-12-06 12:48:21 -05:00
vega10_powertune.c drm/amd/pp: use soc15 common macros instead of vega10 specific 2018-05-15 13:43:04 -05:00
vega10_powertune.h drm/amd/powerplay: added didt support for vega10 2017-07-14 11:06:26 -04:00
vega10_pptable.h drm/amd/powerplay: add support for ATOM GFXCLK table v2. 2017-06-29 12:43:44 -04:00
vega10_processpptables.c drm/amd/pp: Use atombios api directly in powerplay (v2) 2018-04-11 13:07:51 -05:00
vega10_processpptables.h drm/amd/powerplay: port newest process pptable code for vega10. 2017-04-07 15:15:43 -04:00
vega10_thermal.c drm/amd/pp: use soc15 common macros instead of vega10 specific 2018-05-15 13:43:04 -05:00
vega10_thermal.h drm/amd/pp: Delete get_xclk function in powerplay (v2) 2018-03-19 13:38:31 -05:00
vega12_hwmgr.c drm/amd/pp: Remove struct pp_gpu_power 2018-05-15 13:43:18 -05:00
vega12_hwmgr.h drm/amd/powerplay: Get more than 8 level gfxclk states 2018-05-15 13:43:09 -05:00
vega12_inc.h drm/amd/powerplay: add vega12_inc.h 2018-03-21 14:36:53 -05:00
vega12_pptable.h drm/amd/powerplay: add vega12_pptable.h 2018-03-21 14:36:55 -05:00
vega12_processpptables.c drm/amd/powerplay: add registry key to disable ACG 2018-05-15 13:43:35 -05:00
vega12_processpptables.h drm/amd/powerplay: add the hw manager for vega12 (v4) 2018-03-21 14:36:56 -05:00
vega12_thermal.c drm/amd/pp: use soc15 common macros instead of vega10 specific 2018-05-15 13:43:04 -05:00
vega12_thermal.h drm/amd/powerplay: add the hw manager for vega12 (v4) 2018-03-21 14:36:56 -05:00