return ret;
}
-int smu_feature_init_dpm(struct smu_context *smu)
+static int smu_get_driver_allowed_feature_mask(struct smu_context *smu)
{
struct smu_feature *feature = &smu->smu_feature;
int ret = 0;
return ret;
}
-
int smu_feature_is_enabled(struct smu_context *smu, enum smu_feature_mask mask)
{
struct smu_feature *feature = &smu->smu_feature;
return 0;
}
-static int smu_smc_table_hw_init(struct smu_context *smu,
- bool initialize)
+static int smu_smc_hw_setup(struct smu_context *smu)
{
struct amdgpu_device *adev = smu->adev;
int ret;
if (ret)
return ret;
- ret = smu_feature_init_dpm(smu);
+ ret = smu_get_driver_allowed_feature_mask(smu);
if (ret)
goto failed;
- ret = smu_smc_table_hw_init(smu, true);
+ ret = smu_smc_hw_setup(smu);
if (ret)
goto failed;
goto failed;
}
- ret = smu_smc_table_hw_init(smu, false);
+ ret = smu_smc_hw_setup(smu);
if (ret)
goto failed;
extern const struct amdgpu_ip_block_version smu_v11_0_ip_block;
extern const struct amdgpu_ip_block_version smu_v12_0_ip_block;
-extern int smu_feature_init_dpm(struct smu_context *smu);
-
extern int smu_feature_is_enabled(struct smu_context *smu,
enum smu_feature_mask mask);
extern int smu_feature_set_enabled(struct smu_context *smu,