From patchwork Thu Apr 7 07:07:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: durgadoss.r@intel.com X-Patchwork-Id: 8768961 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 57632C0553 for ; Thu, 7 Apr 2016 06:27:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 76E3C201C7 for ; Thu, 7 Apr 2016 06:27:18 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id DBA5E201B9 for ; Thu, 7 Apr 2016 06:27:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2DF636E315; Thu, 7 Apr 2016 06:27:16 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id E43A76E315 for ; Thu, 7 Apr 2016 06:27:13 +0000 (UTC) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 06 Apr 2016 23:27:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,448,1455004800"; d="scan'208";a="682211394" Received: from dr3-desktop.iind.intel.com ([10.223.26.125]) by FMSMGA003.fm.intel.com with ESMTP; 06 Apr 2016 23:27:12 -0700 From: Durgadoss R To: intel-gfx@lists.freedesktop.org Date: Thu, 7 Apr 2016 12:37:49 +0530 Message-Id: <1460012869-20168-1-git-send-email-durgadoss.r@intel.com> X-Mailer: git-send-email 1.9.1 Subject: [Intel-gfx] [PATCH] drm/i915/bxt: Add BXT pll config hw_state to debugfs X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP BXT Shared DPLL hw_state config uses values that are different from other platforms. This patch prints the right values for BXT through debugfs which helps during debug. Signed-off-by: Durgadoss R --- drivers/gpu/drm/i915/i915_debugfs.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 74f2274..3dd9773 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -3211,12 +3211,26 @@ static int i915_shared_dplls_info(struct seq_file *m, void *unused) seq_printf(m, " crtc_mask: 0x%08x, active: 0x%x, on: %s\n", pll->config.crtc_mask, pll->active_mask, yesno(pll->on)); seq_printf(m, " tracked hardware state:\n"); - seq_printf(m, " dpll: 0x%08x\n", pll->config.hw_state.dpll); - seq_printf(m, " dpll_md: 0x%08x\n", - pll->config.hw_state.dpll_md); - seq_printf(m, " fp0: 0x%08x\n", pll->config.hw_state.fp0); - seq_printf(m, " fp1: 0x%08x\n", pll->config.hw_state.fp1); - seq_printf(m, " wrpll: 0x%08x\n", pll->config.hw_state.wrpll); + if (IS_BROXTON(dev)) { + seq_printf(m, " ebb0: 0x%08x\n", pll->config.hw_state.ebb0); + seq_printf(m, " ebb4: 0x%08x\n", pll->config.hw_state.ebb4); + seq_printf(m, " pll0: 0x%08x\n", pll->config.hw_state.pll0); + seq_printf(m, " pll1: 0x%08x\n", pll->config.hw_state.pll1); + seq_printf(m, " pll2: 0x%08x\n", pll->config.hw_state.pll2); + seq_printf(m, " pll3: 0x%08x\n", pll->config.hw_state.pll3); + seq_printf(m, " pll6: 0x%08x\n", pll->config.hw_state.pll6); + seq_printf(m, " pll8: 0x%08x\n", pll->config.hw_state.pll8); + seq_printf(m, " pll9: 0x%08x\n", pll->config.hw_state.pll9); + seq_printf(m, " pll10: 0x%08x\n", pll->config.hw_state.pll10); + seq_printf(m, " pcsdw12: 0x%08x\n", pll->config.hw_state.pcsdw12); + } else { + seq_printf(m, " dpll: 0x%08x\n", pll->config.hw_state.dpll); + seq_printf(m, " dpll_md: 0x%08x\n", + pll->config.hw_state.dpll_md); + seq_printf(m, " fp0: 0x%08x\n", pll->config.hw_state.fp0); + seq_printf(m, " fp1: 0x%08x\n", pll->config.hw_state.fp1); + seq_printf(m, " wrpll: 0x%08x\n", pll->config.hw_state.wrpll); + } } drm_modeset_unlock_all(dev);