From patchwork Thu Apr 23 21:28:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Stach X-Patchwork-Id: 6265431 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BC6CF9F1C4 for ; Thu, 23 Apr 2015 21:37:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E5A2B20380 for ; Thu, 23 Apr 2015 21:37:14 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 5166F2038C for ; Thu, 23 Apr 2015 21:37:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7786A6E818; Thu, 23 Apr 2015 14:37:11 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 522 seconds by postgrey-1.34 at gabe; Thu, 23 Apr 2015 14:37:10 PDT Received: from lynxeye.de (ns.lynxeye.de [87.118.118.114]) by gabe.freedesktop.org (Postfix) with ESMTP id 8BA0F6E818 for ; Thu, 23 Apr 2015 14:37:10 -0700 (PDT) Received: by lynxeye.de (Postfix, from userid 501) id 3455326C2001; Thu, 23 Apr 2015 23:28:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from antimon.Speedport_W_504V_Typ_A (p4FD7DE34.dip0.t-ipconnect.de [79.215.222.52]) by lynxeye.de (Postfix) with ESMTPA id E174526C2001; Thu, 23 Apr 2015 23:28:24 +0200 (CEST) From: Lucas Stach To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie Subject: [PATCH 1/2] drm/radeon: remove KV bapm callback Date: Thu, 23 Apr 2015 23:28:12 +0200 Message-Id: <1429824493-3162-1-git-send-email-dev@lynxeye.de> X-Mailer: git-send-email 2.1.0 Cc: dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP It is never called. BAPM on KV is only controlled through the power profile. Signed-off-by: Lucas Stach --- 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(-) diff --git a/drivers/gpu/drm/radeon/kv_dpm.c b/drivers/gpu/drm/radeon/kv_dpm.c index 0e236d0..98d8428 100644 --- a/drivers/gpu/drm/radeon/kv_dpm.c +++ b/drivers/gpu/drm/radeon/kv_dpm.c @@ -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; diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c index c0ecd12..2a33e38 100644 --- a/drivers/gpu/drm/radeon/radeon_asic.c +++ b/drivers/gpu/drm/radeon/radeon_asic.c @@ -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, diff --git a/drivers/gpu/drm/radeon/radeon_asic.h b/drivers/gpu/drm/radeon/radeon_asic.h index 72bdd3b..85d76da 100644 --- a/drivers/gpu/drm/radeon/radeon_asic.h +++ b/drivers/gpu/drm/radeon/radeon_asic.h @@ -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,