OSDN Git Service

drm/amd/powerplay: regards the APU always enable the dpm feature mask
authorPrike Liang <Prike.Liang@amd.com>
Thu, 15 Aug 2019 01:39:06 +0000 (09:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Aug 2019 20:52:32 +0000 (15:52 -0500)
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>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 99924d3..ffbe4d8 100644 (file)
@@ -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)