aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0121-drm-amd-powerplay-check-whether-enable-dpm-in-powerp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0121-drm-amd-powerplay-check-whether-enable-dpm-in-powerp.patch')
-rw-r--r--common/recipes-kernel/linux/files/0121-drm-amd-powerplay-check-whether-enable-dpm-in-powerp.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0121-drm-amd-powerplay-check-whether-enable-dpm-in-powerp.patch b/common/recipes-kernel/linux/files/0121-drm-amd-powerplay-check-whether-enable-dpm-in-powerp.patch
new file mode 100644
index 00000000..d0f8b99e
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0121-drm-amd-powerplay-check-whether-enable-dpm-in-powerp.patch
@@ -0,0 +1,32 @@
+From 27b8581febea0979f10a7a3d1e34e961eb70ad0f Mon Sep 17 00:00:00 2001
+From: Rex Zhu <Rex.Zhu@amd.com>
+Date: Mon, 23 Nov 2015 14:50:10 +0800
+Subject: [PATCH 0121/1110] drm/amd/powerplay: check whether enable dpm in
+ powerplay.
+
+Change-Id: I0a2dbf8ef7d4a3e9788fe211fc5964dd2487c519
+Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
+index 6cbbae7..b8b4a47 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
+@@ -145,8 +145,11 @@ static int amdgpu_pp_sw_init(void *handle)
+
+ #ifdef CONFIG_DRM_AMD_POWERPLAY
+ if (adev->pp_enabled) {
+- adev->pm.dpm_enabled = true;
+ amdgpu_pm_sysfs_init(adev);
++ if (amdgpu_dpm == 0)
++ adev->pm.dpm_enabled = false;
++ else
++ adev->pm.dpm_enabled = true;
+ }
+ #endif
+
+--
+2.7.4
+