aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4243-drm-amdgpu-pm-document-pp_table.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4243-drm-amdgpu-pm-document-pp_table.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4243-drm-amdgpu-pm-document-pp_table.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4243-drm-amdgpu-pm-document-pp_table.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4243-drm-amdgpu-pm-document-pp_table.patch
new file mode 100644
index 00000000..044f2739
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4243-drm-amdgpu-pm-document-pp_table.patch
@@ -0,0 +1,39 @@
+From 1990b877ce450e26bae85244b759875daebc035a Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Thu, 19 Apr 2018 14:02:52 -0500
+Subject: [PATCH 4243/5725] drm/amdgpu/pm: document pp_table
+
+This file is for uploading new powerplay tables.
+
+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 | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+index 05d701b0..b659f4b3 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+@@ -408,6 +408,17 @@ static ssize_t amdgpu_set_pp_force_state(struct device *dev,
+ return count;
+ }
+
++/**
++ * DOC: pp_table
++ *
++ * The amdgpu driver provides a sysfs API for uploading new powerplay
++ * tables. The file pp_table is used for this. Reading the file
++ * will dump the current power play table. Writing to the file
++ * will attempt to upload a new powerplay table and re-initialize
++ * powerplay using that new table.
++ *
++ */
++
+ static ssize_t amdgpu_get_pp_table(struct device *dev,
+ struct device_attribute *attr,
+ char *buf)
+--
+2.7.4
+