[PATCH 32/51] drm/amdgpu: enable powerplay module by default for tonga.
Alex Deucher
alexdeucher at gmail.com
Wed Nov 11 22:18:22 PST 2015
From: Rex Zhu <Rex.Zhu at amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at 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;
--
1.8.3.1
More information about the dri-devel
mailing list