From patchwork Sat May 3 02:23:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Widawsky X-Patchwork-Id: 4105531 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B04EE9F271 for ; Sat, 3 May 2014 02:23:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E27AB20380 for ; Sat, 3 May 2014 02:23:13 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id CD88020374 for ; Sat, 3 May 2014 02:23:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D9366F02B; Fri, 2 May 2014 19:23:11 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 13B646F02B for ; Fri, 2 May 2014 19:23:10 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 02 May 2014 19:23:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,975,1389772800"; d="scan'208";a="505184995" Received: from unknown (HELO ironside.intel.com) ([10.255.12.151]) by orsmga001.jf.intel.com with ESMTP; 02 May 2014 19:23:07 -0700 From: Ben Widawsky To: Intel GFX Date: Fri, 2 May 2014 19:23:04 -0700 Message-Id: <1399083784-30357-1-git-send-email-benjamin.widawsky@intel.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1398808360-3674-13-git-send-email-benjamin.widawsky@intel.com> References: <1398808360-3674-13-git-send-email-benjamin.widawsky@intel.com> Cc: Ben Widawsky , Ben Widawsky Subject: [Intel-gfx] [PATCH 12.1/13] drm/i915: Small semaphore debugfs fixup X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 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=-4.8 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 Each ring only has ring-1 sync seqnos. It is a bug to try to print extra. This should be squashed into drm/i915: semaphore debugfs. I don't have an easy way at the moment to do the rebase and resend, but that is what should be done. Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 0c4159d..7cd3c7f 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -2443,7 +2443,7 @@ static int i915_semaphore_status(struct seq_file *m, void *unused) seq_puts(m, "\nSync seqno:\n"); for_each_ring(ring, dev_priv, i) { - for (j = 0; j < I915_NUM_RINGS; j++) { + for (j = 0; j < I915_NUM_RINGS - 1; j++) { seq_printf(m, " 0x%08x ", ring->semaphore.sync_seqno[j]); } seq_putc(m, '\n');