From: Prike Liang Date: Thu, 15 Aug 2019 01:39:06 +0000 (+0800) Subject: drm/amd/powerplay: regards the APU always enable the dpm feature mask X-Git-Tag: v5.4-rc1~106^2~5^2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffe61cd6423c9e5db973eb9d9f35accaeec0d9d8;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index 99924d3538c2d..ffbe4d881e480 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)