aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0178-drm-amdgpu-Allow-the-driver-to-load-if-amdgpu.powerp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0178-drm-amdgpu-Allow-the-driver-to-load-if-amdgpu.powerp.patch')
-rw-r--r--common/recipes-kernel/linux/files/0178-drm-amdgpu-Allow-the-driver-to-load-if-amdgpu.powerp.patch54
1 files changed, 0 insertions, 54 deletions
diff --git a/common/recipes-kernel/linux/files/0178-drm-amdgpu-Allow-the-driver-to-load-if-amdgpu.powerp.patch b/common/recipes-kernel/linux/files/0178-drm-amdgpu-Allow-the-driver-to-load-if-amdgpu.powerp.patch
deleted file mode 100644
index 452f57a4..00000000
--- a/common/recipes-kernel/linux/files/0178-drm-amdgpu-Allow-the-driver-to-load-if-amdgpu.powerp.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From 2589993a32dd6069b737681ed926e4209d5424a9 Mon Sep 17 00:00:00 2001
-From: Jordan Lazare <Jordan.Lazare@amd.com>
-Date: Mon, 18 Jan 2016 17:00:03 -0500
-Subject: [PATCH 0178/1110] drm/amdgpu: Allow the driver to load if
- amdgpu.powerplay=1 on asics without powerplay support
-
-Avoid setting pp_enabled if there is no powerplay implementation.
-
-Signed-off-by: Jordan Lazare <Jordan.Lazare@amd.com>
-Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 25 ++++++++++++++++++-------
- 1 file changed, 18 insertions(+), 7 deletions(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
-index 5ee9a06..b9d0d55 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
-@@ -99,13 +99,24 @@ static int amdgpu_pp_early_init(void *handle)
-
- #ifdef CONFIG_DRM_AMD_POWERPLAY
- switch (adev->asic_type) {
-- case CHIP_TONGA:
-- case CHIP_FIJI:
-- adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
-- break;
-- default:
-- adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
-- break;
-+ case CHIP_TONGA:
-+ case CHIP_FIJI:
-+ adev->pp_enabled = (amdgpu_powerplay == 0) ? false : true;
-+ break;
-+ case CHIP_CARRIZO:
-+ case CHIP_STONEY:
-+ adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
-+ break;
-+ /* These chips don't have powerplay implemenations */
-+ case CHIP_BONAIRE:
-+ case CHIP_HAWAII:
-+ case CHIP_KABINI:
-+ case CHIP_MULLINS:
-+ case CHIP_KAVERI:
-+ case CHIP_TOPAZ:
-+ default:
-+ adev->pp_enabled = false;
-+ break;
- }
- #else
- adev->pp_enabled = false;
---
-2.7.4
-