]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3fbcca8d668dd1698648d7bd32ca59a57bf24076
treefc5bd5793bee30fce27d41de982ffd7335b81943
parente83356d01b56855e986148b06ec1a2d90d2c15a7
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