From 76c8cc6b3ba2186215322cf45d6547d66713bd7b Mon Sep 17 00:00:00 2001 From: Rex Zhu Date: Sat, 17 Oct 2015 17:57:58 +0800 Subject: [PATCH] drm/amdgpu: enable powerplay module by default for tonga. Signed-off-by: Rex Zhu Reviewed-by: Jammy Zhou Reviewed-by: Alex Deucher --- 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 1a824f05a28b..cbb00e29b56c 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.20.1