summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2016-06-20 13:35:28 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-08-08 11:32:27 -0400
commit54c825a9166f0c13aa4044500910633105a7e6a7 (patch)
treef4b42b1e221307d5b5226a6a1bae96c06bfd2e00 /drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
parent025f8bfb84cbcaa78df31ab00d7e3c5f979e9e27 (diff)
drm/amdgpu: enable iceland powerplay manually
It's able to enable iceland powerplay manually via the module parameter. The default state is disabled. Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
index c5738a22b690..260da022beef 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
@@ -112,13 +112,15 @@ static int amdgpu_pp_early_init(void *handle)
case CHIP_STONEY:
adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
break;
+ case CHIP_TOPAZ:
+ 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;