diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-09-21 04:50:54 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-27 05:09:09 +0300 |
commit | 0b2c0a12cbb444a4dfbd5bb531cd927a33235cd7 (patch) | |
tree | 871d66b62bb2e0dc8a48171847f96c3e52ebb411 /drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c | |
parent | d498a6e1127b7cc8943582b7aea4c1fd170c56a5 (diff) | |
download | linux-0b2c0a12cbb444a4dfbd5bb531cd927a33235cd7.tar.xz |
drm/amdgpu/powerplay: Move vega10_enable_smc_features
to vega10_smumgr.c. For consistency with other vega parts.
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c index 5d19115f410c..8176d3371e70 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c @@ -88,6 +88,16 @@ static int vega10_copy_table_to_smc(struct pp_hwmgr *hwmgr, return 0; } +int vega10_enable_smc_features(struct pp_hwmgr *hwmgr, + bool enable, uint32_t feature_mask) +{ + int msg = enable ? PPSMC_MSG_EnableSmuFeatures : + PPSMC_MSG_DisableSmuFeatures; + + return smum_send_msg_to_smc_with_parameter(hwmgr, + msg, feature_mask); +} + static int vega10_get_smc_features(struct pp_hwmgr *hwmgr, uint32_t *features_enabled) { |