aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0137-amd-powerplay-disable-powerplay-by-default-initially.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0137-amd-powerplay-disable-powerplay-by-default-initially.patch')
-rw-r--r--common/recipes-kernel/linux/files/0137-amd-powerplay-disable-powerplay-by-default-initially.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0137-amd-powerplay-disable-powerplay-by-default-initially.patch b/common/recipes-kernel/linux/files/0137-amd-powerplay-disable-powerplay-by-default-initially.patch
new file mode 100644
index 00000000..31bc5796
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0137-amd-powerplay-disable-powerplay-by-default-initially.patch
@@ -0,0 +1,30 @@
+From c079a58edec7b8ef45361bd641f45612012b4035 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Mon, 21 Dec 2015 17:07:40 -0500
+Subject: [PATCH 0137/1110] amd/powerplay: disable powerplay by default
+ initially
+
+Hopefully we can enable this by default once we get more
+upstream feedback on stability, etc.
+
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
+index ddb90eb..5ee9a06 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
+@@ -101,7 +101,7 @@ static int amdgpu_pp_early_init(void *handle)
+ switch (adev->asic_type) {
+ case CHIP_TONGA:
+ case CHIP_FIJI:
+- adev->pp_enabled = (amdgpu_powerplay == 0) ? false : true;
++ adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
+ break;
+ default:
+ adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
+--
+2.7.4
+