drm/amdgpu/powerplay: wire up BACO to powerplay API for smu7
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Feb 2019 23:17:24 +0000 (18:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2019 19:55:31 +0000 (15:55 -0400)
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>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c

index 1fe992835a76ae1e5093f61bfe2703eccfe812ba..c805c6fcdba202f8dc14acd1420a059d2dbc1253 100644 (file)
@@ -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,
 };