aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0065-drm-amdgpu-enable-powerplay-module-by-default-for-to.patch
blob: 97126033973186fe47f4dea0e8c1180ef9782e48 (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
From b18cc36a16c393854c4cea0eb2e752fe78b540fa Mon Sep 17 00:00:00 2001
From: Rex Zhu <Rex.Zhu@amd.com>
Date: Sat, 17 Oct 2015 17:57:58 +0800
Subject: [PATCH 0065/1110] drm/amdgpu: enable powerplay module by default for
 tonga.

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 | 8 ++++++++
 1 file changed, 8 insertions(+)

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