aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4245-drm-amdgpu-pm-document-pp_power_profile_mode.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4245-drm-amdgpu-pm-document-pp_power_profile_mode.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4245-drm-amdgpu-pm-document-pp_power_profile_mode.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4245-drm-amdgpu-pm-document-pp_power_profile_mode.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4245-drm-amdgpu-pm-document-pp_power_profile_mode.patch
new file mode 100644
index 00000000..da022540
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4245-drm-amdgpu-pm-document-pp_power_profile_mode.patch
@@ -0,0 +1,48 @@
+From 802d1f256294057e380528b8859c4e5c24c042de Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Thu, 19 Apr 2018 14:38:31 -0500
+Subject: [PATCH 4245/5725] 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>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 20 ++++++++++++++++++++
+ 1 file changed, 20 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+index 4480212..3345760 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+@@ -781,6 +781,26 @@ static ssize_t amdgpu_set_pp_mclk_od(struct device *dev,
+ return count;
+ }
+
++/**
++ * DOC: pp_power_profile_mode
++ *
++ * The amdgpu driver provides a sysfs API for adjusting the heuristics
++ * related to switching between power levels in a power state. The file
++ * pp_power_profile_mode is used for this.
++ *
++ * Reading this file outputs a list of all of the predefined power profiles
++ * and the relevant heuristics settings for that profile.
++ *
++ * To select a profile or create a custom profile, first select manual using
++ * power_dpm_force_performance_level. Writing the number of a predefined
++ * profile to pp_power_profile_mode will enable those heuristics. To
++ * create a custom set of heuristics, write a string of numbers to the file
++ * starting with the number of the custom profile along with a setting
++ * for each heuristic parameter. Due to differences across asic families
++ * the heuristic parameters vary from family to family.
++ *
++ */
++
+ static ssize_t amdgpu_get_pp_power_profile_mode(struct device *dev,
+ struct device_attribute *attr,
+ char *buf)
+--
+2.7.4
+