drm/amdgpu/powerplay: Move vega10_enable_smc_features
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Sep 2018 01:50:54 +0000 (20:50 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2018 02:09:09 +0000 (21:09 -0500)
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>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.h
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h

index ca9be58..f32951f 100644 (file)
@@ -39,6 +39,7 @@
 #include "soc15_common.h"
 #include "pppcielanes.h"
 #include "vega10_hwmgr.h"
+#include "vega10_smumgr.h"
 #include "vega10_processpptables.h"
 #include "vega10_pptable.h"
 #include "vega10_thermal.h"
@@ -4940,16 +4941,6 @@ static const struct pp_hwmgr_func vega10_hwmgr_funcs = {
        .get_performance_level = vega10_get_performance_level,
 };
 
-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);
-}
-
 int vega10_hwmgr_init(struct pp_hwmgr *hwmgr)
 {
        hwmgr->hwmgr_func = &vega10_hwmgr_funcs;
index 339820d..8987055 100644 (file)
@@ -441,7 +441,5 @@ int vega10_update_uvd_dpm(struct pp_hwmgr *hwmgr, bool bgate);
 int vega10_update_samu_dpm(struct pp_hwmgr *hwmgr, bool bgate);
 int vega10_update_acp_dpm(struct pp_hwmgr *hwmgr, bool bgate);
 int vega10_enable_disable_vce_dpm(struct pp_hwmgr *hwmgr, bool enable);
-int vega10_enable_smc_features(struct pp_hwmgr *hwmgr,
-               bool enable, uint32_t feature_mask);
 
 #endif /* _VEGA10_HWMGR_H_ */
index 2236487..2d88abf 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "hwmgr.h"
 #include "vega10_hwmgr.h"
+#include "vega10_smumgr.h"
 #include "vega10_powertune.h"
 #include "vega10_ppsmc.h"
 #include "vega10_inc.h"
index aa044c1..407762b 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "vega10_thermal.h"
 #include "vega10_hwmgr.h"
+#include "vega10_smumgr.h"
 #include "vega10_ppsmc.h"
 #include "vega10_inc.h"
 #include "soc15_common.h"
index 5d19115..8176d33 100644 (file)
@@ -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)
 {
index 424e868..630c0ae 100644 (file)
@@ -42,6 +42,8 @@ struct vega10_smumgr {
        struct smu_table_array            smu_tables;
 };
 
+int vega10_enable_smc_features(struct pp_hwmgr *hwmgr,
+                              bool enable, uint32_t feature_mask);
 
 #endif