aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0066-drm-amdgpu-enable-powerplay-module-by-default-for-fi.patch
blob: 803fe9478fcf6be84c921b637abd612fa383d872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 78c5ba369b8995d8c03493f2e405f7a5bb64e7f8 Mon Sep 17 00:00:00 2001
From: Rex Zhu <Rex.Zhu@amd.com>
Date: Tue, 20 Oct 2015 11:05:45 +0800
Subject: [PATCH 0066/1110] drm/amdgpu: enable powerplay module by default for
 fiji.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
index cbb00e2..1ff6fd5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
@@ -96,13 +96,16 @@ static int amdgpu_pp_early_init(void *handle)
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 	int ret = 0;
 
+#ifdef CONFIG_DRM_AMD_POWERPLAY
 	switch (adev->asic_type) {
 		case CHIP_TONGA:
+		case CHIP_FIJI:
 			amdgpu_powerplay = 1;
 			break;
 		default:
 			break;
 	}
+#endif
 
 	ret = amdgpu_powerplay_init(adev);
 	if (ret)
-- 
2.7.4