diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2019-02-16 00:17:24 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-10-15 21:55:31 +0200 |
commit | 2a113c74ec7c50aef18fcd9442ea70f09ff26b16 (patch) | |
tree | d3c346fc1303025c6bd7b17ace65a81b82a62d5e /drivers/gpu/drm/amd/powerplay/hwmgr | |
parent | drm/amdgpu/powerplay: split out common smu7 BACO code (diff) | |
download | linux-2a113c74ec7c50aef18fcd9442ea70f09ff26b16.tar.xz linux-2a113c74ec7c50aef18fcd9442ea70f09ff26b16.zip |
drm/amdgpu/powerplay: wire up BACO to powerplay API for smu7
Wire up the powerplay callbacks for for BACO for smu7 devices.
Reviewed-by: Evan Quan <evan.quan@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c index 1fe992835a76..c805c6fcdba2 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c @@ -48,6 +48,7 @@ #include "smu7_clockpowergating.h" #include "processpptables.h" #include "pp_thermal.h" +#include "smu7_baco.h" #include "ivsrcid/ivsrcid_vislands30.h" @@ -5143,6 +5144,9 @@ static const struct pp_hwmgr_func smu7_hwmgr_funcs = { .get_power_profile_mode = smu7_get_power_profile_mode, .set_power_profile_mode = smu7_set_power_profile_mode, .get_performance_level = smu7_get_performance_level, + .get_asic_baco_capability = smu7_baco_get_capability, + .get_asic_baco_state = smu7_baco_get_state, + .set_asic_baco_state = smu7_baco_set_state, .power_off_asic = smu7_power_off_asic, }; |