Commit 47381540 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amd/pm: don't mark all apu as true on feature mask

VHG based APU will support feature mask checking.
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent aedebd40
......@@ -273,11 +273,13 @@ int smu_cmn_feature_is_enabled(struct smu_context *smu,
enum smu_feature_mask mask)
{
struct smu_feature *feature = &smu->smu_feature;
struct amdgpu_device *adev = smu->adev;
int feature_id;
int ret = 0;
if (smu->is_apu)
if (smu->is_apu && adev->family < AMDGPU_FAMILY_VGH)
return 1;
feature_id = smu_cmn_to_asic_specific_index(smu,
CMN2ASIC_MAPPING_FEATURE,
mask);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment