drm/amd/powerplay: correct the way for checking SMU_FEATURE_BACO_BIT support
authorEvan Quan <evan.quan@amd.com>
Wed, 12 Feb 2020 03:52:20 +0000 (11:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2020 21:16:45 +0000 (16:16 -0500)
commitc16904b0f305c5f6bc31de118d4b1e60a5da5408
treefc5bd5793bee30fce27d41de982ffd7335b81943
parent434cbcb1bd5dea181e6e2379f9f4d4949b51d445
drm/amd/powerplay: correct the way for checking SMU_FEATURE_BACO_BIT support

Since 'smu_feature_is_enabled(smu, SMU_FEATURE_BACO_BIT)' will always return
false considering the 'smu_system_features_control(smu, false)' disabled
all SMU features.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c