diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-04-19 15:38:31 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-15 14:43:45 -0400 |
commit | 6b2576f5bddae4c89f29481f387735ac99e256d5 (patch) | |
tree | a272e453eb2f6433ff041cfb8d7e12e8609f3038 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | 271dc908732b72bb9b1ad22b7cd14e75df3612c5 (diff) |
drm/amdgpu/pm: document pp_power_profile_mode
sysfs file for adjusting power level heuristics.
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 07f2e9606337..d6e66414bb12 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -780,6 +780,26 @@ fail: | |||
780 | return count; | 780 | return count; |
781 | } | 781 | } |
782 | 782 | ||
783 | /** | ||
784 | * DOC: pp_power_profile_mode | ||
785 | * | ||
786 | * The amdgpu driver provides a sysfs API for adjusting the heuristics | ||
787 | * related to switching between power levels in a power state. The file | ||
788 | * pp_power_profile_mode is used for this. | ||
789 | * | ||
790 | * Reading this file outputs a list of all of the predefined power profiles | ||
791 | * and the relevant heuristics settings for that profile. | ||
792 | * | ||
793 | * To select a profile or create a custom profile, first select manual using | ||
794 | * power_dpm_force_performance_level. Writing the number of a predefined | ||
795 | * profile to pp_power_profile_mode will enable those heuristics. To | ||
796 | * create a custom set of heuristics, write a string of numbers to the file | ||
797 | * starting with the number of the custom profile along with a setting | ||
798 | * for each heuristic parameter. Due to differences across asic families | ||
799 | * the heuristic parameters vary from family to family. | ||
800 | * | ||
801 | */ | ||
802 | |||
783 | static ssize_t amdgpu_get_pp_power_profile_mode(struct device *dev, | 803 | static ssize_t amdgpu_get_pp_power_profile_mode(struct device *dev, |
784 | struct device_attribute *attr, | 804 | struct device_attribute *attr, |
785 | char *buf) | 805 | char *buf) |