@@ -1157,18 +1157,6 @@ static void kv_update_requested_ps(struct radeon_device *rdev,
pi->requested_rps.ps_priv = &pi->requested_ps;
}
-void kv_dpm_enable_bapm(struct radeon_device *rdev, bool enable)
-{
- struct kv_power_info *pi = kv_get_pi(rdev);
- int ret;
-
- if (pi->bapm_enable) {
- ret = kv_smc_bapm_enable(rdev, enable);
- if (ret)
- DRM_ERROR("kv_smc_bapm_enable failed\n");
- }
-}
-
static void kv_enable_thermal_int(struct radeon_device *rdev, bool enable)
{
u32 thermal_int;
@@ -2228,7 +2228,6 @@ static struct radeon_asic kv_asic = {
.debugfs_print_current_performance_level = &kv_dpm_debugfs_print_current_performance_level,
.force_performance_level = &kv_dpm_force_performance_level,
.powergate_uvd = &kv_dpm_powergate_uvd,
- .enable_bapm = &kv_dpm_enable_bapm,
},
.pflip = {
.page_flip = &evergreen_page_flip,
@@ -889,7 +889,6 @@ void kv_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev,
int kv_dpm_force_performance_level(struct radeon_device *rdev,
enum radeon_dpm_forced_level level);
void kv_dpm_powergate_uvd(struct radeon_device *rdev, bool gate);
-void kv_dpm_enable_bapm(struct radeon_device *rdev, bool enable);
/* uvd v1.0 */
uint32_t uvd_v1_0_get_rptr(struct radeon_device *rdev,
It is never called. BAPM on KV is only controlled through the power profile. Signed-off-by: Lucas Stach <dev@lynxeye.de> --- drivers/gpu/drm/radeon/kv_dpm.c | 12 ------------ drivers/gpu/drm/radeon/radeon_asic.c | 1 - drivers/gpu/drm/radeon/radeon_asic.h | 1 - 3 files changed, 14 deletions(-)