summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/powerplay
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2019-08-15 09:39:06 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-08-29 15:52:32 -0500
commitffe61cd6423c9e5db973eb9d9f35accaeec0d9d8 (patch)
tree01710c948c5f18e234b14881422f3b945c0848d2 /drivers/gpu/drm/amd/powerplay
parent334ffd0daa4357e998f43a4f914903013294f350 (diff)
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 <Prike.Liang@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Aaron Liu <aaron.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay')
-rw-r--r--drivers/gpu/drm/amd/powerplay/amdgpu_smu.c2
1 files changed, 1 insertions, 1 deletions
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)