From ffe61cd6423c9e5db973eb9d9f35accaeec0d9d8 Mon Sep 17 00:00:00 2001 From: Prike Liang Date: Thu, 15 Aug 2019 09:39:06 +0800 Subject: [PATCH] drm/amd/powerplay: regards the APU always enable the dpm feature mask There is no driver message to enable/disable feature mask for APU. For the sake of APU reusing swSMU interface and assume APU supports all the feature. Signed-off-by: Prike Liang Reviewed-by: Evan Quan Reviewed-by: Aaron Liu Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index 99924d3538c2..ffbe4d881e48 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -636,7 +636,7 @@ int smu_feature_is_enabled(struct smu_context *smu, enum smu_feature_mask mask) int ret = 0; if (adev->flags & AMD_IS_APU) - return 0; + return 1; feature_id = smu_feature_get_index(smu, mask); if (feature_id < 0) -- 2.11.0