From patchwork Fri Aug 31 13:45:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Lespiau X-Patchwork-Id: 1393401 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 9C0313FDF5 for ; Fri, 31 Aug 2012 13:52:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8F662A0A7E for ; Fri, 31 Aug 2012 06:52:21 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 170F59E830 for ; Fri, 31 Aug 2012 06:51:55 -0700 (PDT) Received: by weyr3 with SMTP id r3so1718867wey.36 for ; Fri, 31 Aug 2012 06:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=vz+h2NT7QmmPUmJ/7NX21E4f3Zw0zykaZbpncjDsykg=; b=fOiQb6JCNK+i15PAnVYjH0Hc4xHFGozEqfjFEhOqOePUIg8CbWB+0ZdzErO7PQQGjE kQo+RXlcAAl9S6ePoKy4iqO+F9eJky19Kq9La09IkfVJcp/M2qMW7lK2yf7FYM/B2De6 ZTwLs5wwRWvT27pCoJV0CCby6NSy3LlOCjKI4rRmX6nTuKuH77LXg+Kq+4YplE7mHRQf e6GkibtBUCtz6cuRoWCMxCwUqmqL2XD4GW5FM3qlIEEL+DoulX5cvCkF869GbzFLTUlS LBm+PgHRXp+zAwxy40rKOcb+5emHfc5FbGiz/ZYw54LW5/5KgSECB8QmddcXBiqpddtB 3t6Q== Received: by 10.180.84.164 with SMTP id a4mr4821094wiz.12.1346420730589; Fri, 31 Aug 2012 06:45:30 -0700 (PDT) Received: from localhost.localdomain ([83.217.123.106]) by mx.google.com with ESMTPS id fu8sm1025571wib.5.2012.08.31.06.45.29 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 31 Aug 2012 06:45:29 -0700 (PDT) From: Damien Lespiau To: intel-gfx@lists.freedesktop.org Date: Fri, 31 Aug 2012 14:45:19 +0100 Message-Id: <1346420719-5532-2-git-send-email-damien.lespiau@gmail.com> X-Mailer: git-send-email 1.7.11.4 In-Reply-To: <1346420719-5532-1-git-send-email-damien.lespiau@gmail.com> References: <1346420719-5532-1-git-send-email-damien.lespiau@gmail.com> Subject: [Intel-gfx] [PATCH 2/2] intel_reg_dumper: Decode FDI_RX_IIR X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org From: Damien Lespiau Signed-off-by: Damien Lespiau --- tools/intel_reg_dumper.c | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c index 098affa..d831733 100644 --- a/tools/intel_reg_dumper.c +++ b/tools/intel_reg_dumper.c @@ -1310,6 +1310,33 @@ DEBUGSTRING(ironlake_debug_fdi_rx_misc) snprintf(result, len, "FDI Delay %d", val & ((1 << 13) - 1)); } +DEBUGSTRING(ironlake_debug_fdi_rx_iir) +{ + const char *aligned = val & FDI_RX_INTER_LANE_ALIGN ? "aligned " : ""; + const char *symbol_locked = val & FDI_RX_SYMBOL_LOCK ? + "symbol locked " : ""; + const char *bit_locked = val & FDI_RX_BIT_LOCK ? "bit locked " : ""; + const char *tp2_failed = val & FDI_RX_TRAIN_PATTERN_2_FAIL ? + "tp2 failed " : ""; + const char *fs_err = val & FDI_RX_FS_CODE_ERR ? "FS code error " : ""; + const char *fe_err = val & FDI_RX_FE_CODE_ERR ? "FE code error " : ""; + const char *ber_high = val & FDI_RX_SYMBOL_ERR_RATE_ABOVE ? + "BER high " : ""; + const char *hdcp_fail = val & FDI_RX_HDCP_LINK_FAIL ? + "HDCP link failed " : ""; + const char *fifo_overflow = val & FDI_RX_PIXEL_FIFO_OVERFLOW ? + "FIFO overflow " : ""; + const char *xclock_overflow = val & FDI_RX_CROSS_CLOCK_OVERFLOW ? + "XClock overflow " : ""; + const char *symbol_overflow = val & FDI_RX_SYMBOL_QUEUE_OVERFLOW ? + "Symbol overlfow " : ""; + + snprintf(result, len, "%s%s%s%s%s%s%s%s%s%s%s", + aligned, symbol_locked, bit_locked, tp2_failed, fs_err, fe_err, + ber_high, hdcp_fail, fifo_overflow, xclock_overflow, + symbol_overflow); +} + DEBUGSTRING(ironlake_debug_transconf) { const char *enable = val & TRANS_ENABLE ? "enable" : "disable"; @@ -1788,9 +1815,9 @@ static struct reg_debug ironlake_debug_regs[] = { DEFINEREG(FDI_PLL_CTL_1), DEFINEREG(FDI_PLL_CTL_2), - DEFINEREG(FDI_RXA_IIR), + DEFINEREG2(FDI_RXA_IIR, ironlake_debug_fdi_rx_iir), DEFINEREG(FDI_RXA_IMR), - DEFINEREG(FDI_RXB_IIR), + DEFINEREG2(FDI_RXB_IIR, ironlake_debug_fdi_rx_iir), DEFINEREG(FDI_RXB_IMR), DEFINEREG2(PCH_ADPA, i830_debug_adpa),