summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/powerplay
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2019-08-09 14:17:40 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-08-22 17:48:23 -0500
commit51b9121af0946afa4ef9fc164f4b0c1686af7225 (patch)
tree54e9a321fde596c73e1862edd6155f0e582ae07b /drivers/gpu/drm/amd/powerplay
parentd237e0974b21bebcc15ad1f8e23f51538230dcf5 (diff)
drm/amd/powerplay: Disable renoir smu feature retrieve for the moment
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>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay')
-rw-r--r--drivers/gpu/drm/amd/powerplay/amdgpu_smu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index 9e774f557771..99924d3538c2 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -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;