OpenCloudOS-Kernel/drivers/gpu/drm/amd/include
Eric Huang 34bb2734d1 drm/amd/amdgpu: add power profile sysfs entry
Add the sysfs entries pp_gfx_power_profile and
pp_compute_power_profile which give user a way to set
power profile through parameters minimum sclk, minimum mclk,
activity threshold, up hysteresis and down hysteresis only
when the entry power_dpm_force_performance_level is in
default value "auto". It is read and write. Example:

echo 500 800 20 0 5 > /sys/class/drm/card0/device/pp_*_power_profile

cat /sys/class/drm/card0/device/pp_*_power_profile
500 800 20 0 5

Note: first parameter is sclk in MHz, second is mclk in MHz,
third is activity threshold in percentage, fourth is up hysteresis
in ms and fifth is down hysteresis in ms.

echo set > /sys/class/drm/card0/device/pp_*_power_profile
To set power profile state if it exists.

echo reset > /sys/class/drm/card0/device/pp_*_power_profile
To restore default state and clear previous setting.

Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Acked-by: Rex Zhu <Rex.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-03-29 23:52:48 -04:00
..
asic_reg drm/amdgpu: read hw register to check pg status. 2017-02-13 12:43:04 -05:00
ivsrcid drm/amd: Adding IVSRC register headers 2016-02-10 16:09:04 -05:00
amd_acpi.h drm/amdgpu: update radeon acpi header 2016-02-26 14:17:04 -05:00
amd_pcie.h drm/amdgpu: change pcie_gen_cap magic code to macro 2016-07-07 15:01:59 -04:00
amd_pcie_helpers.h drm/amd/powerplay: fix boolreturn.cocci warnings 2015-12-21 16:42:34 -05:00
amd_shared.h drm/amd/amdgpu: add power profile sysfs entry 2017-03-29 23:52:48 -04:00
atom-bits.h drm/amdgpu: move some atombios definitions to common folder (v2) 2015-08-17 16:50:19 -04:00
atom-names.h drm/amdgpu: move some atombios definitions to common folder (v2) 2015-08-17 16:50:19 -04:00
atom-types.h drm/amdgpu: move some atombios definitions to common folder (v2) 2015-08-17 16:50:19 -04:00
atombios.h scripts/spelling.txt: add "aligment" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
cgs_common.h drm/amd/powerplay: add kicker flag into smumgr 2017-02-16 11:43:11 -05:00
cgs_linux.h drm/amd: make a type-safe cgs_device struct. (v2) 2016-05-04 20:20:28 -04:00
cik_structs.h drm/amd: Put cik structures in a common place 2015-01-02 23:18:39 +02:00
kgd_kfd_interface.h drm/amdkfd: Track when module's init is complete 2016-02-27 22:52:40 +02:00
pptable.h drm/amdgpu: add some pptable definitions 2015-08-17 16:50:21 -04:00
vi_structs.h drm/amdgpu: Add amdgpu <--> amdkfd gfx8 interface 2015-07-20 09:16:48 +03:00