summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2016-06-20 05:35:28 (GMT)
committerAlex Deucher <alexander.deucher@amd.com>2016-08-08 15:32:27 (GMT)
commit54c825a9166f0c13aa4044500910633105a7e6a7 (patch)
treef4b42b1e221307d5b5226a6a1bae96c06bfd2e00
parent025f8bfb84cbcaa78df31ab00d7e3c5f979e9e27 (diff)
downloadlinux-54c825a9166f0c13aa4044500910633105a7e6a7.tar.xz
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>
-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 c5738a22..260da02 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;