drm/amd/powerplay: Disable renoir smu feature retrieve for the moment
authorPrike Liang <Prike.Liang@amd.com>
Fri, 9 Aug 2019 06:17:40 +0000 (14:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 22:48:23 +0000 (17:48 -0500)
To avoid the dpm frequence range get failed when DPM enabled and it
will be enabled later once handle well the feature bit map struct.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 9e774f557771a5ee9de856f72dfb458a1cedfafb..99924d3538c2d45639cbf68de75f91cd1d5be9b3 100644 (file)
@@ -630,10 +630,14 @@ int smu_feature_update_enable_state(struct smu_context *smu, uint64_t feature_ma
 
 int smu_feature_is_enabled(struct smu_context *smu, enum smu_feature_mask mask)
 {
+       struct amdgpu_device *adev = smu->adev;
        struct smu_feature *feature = &smu->smu_feature;
        int feature_id;
        int ret = 0;
 
+       if (adev->flags & AMD_IS_APU)
+               return 0;
+
        feature_id = smu_feature_get_index(smu, mask);
        if (feature_id < 0)
                return 0;