From: Rex Zhu Date: Tue, 20 Oct 2015 03:05:45 +0000 (+0800) Subject: drm/amdgpu: enable powerplay module by default for fiji. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=edb611c1e1e7647510185a3fcde5914f761afd75;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu: enable powerplay module by default for fiji. Signed-off-by: Rex Zhu Reviewed-by: Jammy Zhou Reviewed-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index cbb00e29b56c..1ff6fd54df61 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c @@ -96,13 +96,16 @@ static int amdgpu_pp_early_init(void *handle) struct amdgpu_device *adev = (struct amdgpu_device *)handle; int ret = 0; +#ifdef CONFIG_DRM_AMD_POWERPLAY switch (adev->asic_type) { case CHIP_TONGA: + case CHIP_FIJI: amdgpu_powerplay = 1; break; default: break; } +#endif ret = amdgpu_powerplay_init(adev); if (ret)