From patchwork Thu Feb 25 00:36:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 8415561 Return-Path: X-Original-To: patchwork-linux-arm@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 183C6C0553 for ; Thu, 25 Feb 2016 00:47:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E8CF2010C for ; Thu, 25 Feb 2016 00:47:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6CFD420108 for ; Thu, 25 Feb 2016 00:47:10 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aYk2i-0002Tw-Ik; Thu, 25 Feb 2016 00:44:32 +0000 Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aYjz6-000817-FR for linux-arm-kernel@lists.infradead.org; Thu, 25 Feb 2016 00:40:49 +0000 Received: by mail-pf0-x229.google.com with SMTP id e127so22269084pfe.3 for ; Wed, 24 Feb 2016 16:40:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DOpkXQvV6YiW01pgz9m/d3NPjPKCTfifHGsESs7iNWA=; b=U2dff9ZvM5XhIjBL9UlaqoFZBBRtNMPdlRd5lYdEOHmkcdG4xXv4oxeJQVZ9gYVjD9 X/Q4IQO2kylhUjFrc9QDVoFM+nyQSpc3KPlvDI8HYEVVq+nDkW33iYHWL912AvE9IflL 0ECjedfEx1ZLLKmMSyXNGRWBYb0j9IY5FrAdzBSkWfXW/kyhEOOELX3qHjCwONXJ8XvP FYX9KASSVRkuTRdSEAJfFDK079yEaiwZ6xddvkPT5TuCPymsZuRxAX3VQsWLdfi5u2Fe K8CZE8W7iv1dmyEir0HuPFBlYqVbLqoDvxWnThAzYQe5dKc3Qr15y090w31JhP/SHxkq hsfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DOpkXQvV6YiW01pgz9m/d3NPjPKCTfifHGsESs7iNWA=; b=eP0ppT7IFLgn9cnzVyyZhHHf3kRfgC6LGfUnDRtJfGX81OPJFSOtrymgjIUz7+jFCZ xgM+297SJAClLLEcaxA+HoBlizMZzkNsvORgnOMz3s6Qkeo8Fb3nOqxSp2BlKCkhPuwo Wn6eAcESIqtSP+cvXVduQHwdolZa78UtD6ro7xSnGl8+3X/g5R+bssKH7skmtXj0jCfO ZplT2gmjquHw/T2om012wtew16bggkmYnaGZdiBHgagYbfY7vS7jjMxEQNVpe44bvAZz 1Ko5yEVL7cCEuvvFadn8ga2KsxskjtOirspip14QFacJigV633C33SpQ48Cltq53LjGt FtDA== X-Gm-Message-State: AG10YOQiOdeDeSxv/gFN9xURCYJWlXl/AFa17KDv4sRH/BkW3TNt/0+CrS6E1SlDit6jMw== X-Received: by 10.98.14.68 with SMTP id w65mr58974471pfi.144.1456360829493; Wed, 24 Feb 2016 16:40:29 -0800 (PST) Received: from localhost.localdomain (wsip-70-184-93-199.ph.ph.cox.net. [70.184.93.199]) by smtp.googlemail.com with ESMTPSA id 79sm7561982pfr.22.2016.02.24.16.40.27 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Feb 2016 16:40:28 -0800 (PST) From: Troy Kisky To: netdev@vger.kernel.org, davem@davemloft.net, B38611@freescale.com Subject: [PATCH net-next V2 10/16] net: fec: clear cbd_sc after transmission to help with debugging Date: Wed, 24 Feb 2016 17:36:53 -0700 Message-Id: <1456360619-24390-11-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456360619-24390-1-git-send-email-troy.kisky@boundarydevices.com> References: <1456360619-24390-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160224_164048_700133_1C480FDC X-CRM114-Status: GOOD ( 10.06 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fabio.estevam@freescale.com, andrew@lunn.ch, stillcompiling@gmail.com, linux@arm.linux.org.uk, arnd@arndb.de, sergei.shtylyov@cogentembedded.com, Troy Kisky , laci@boundarydevices.com, johannes@sipsolutions.net, l.stach@pengutronix.de, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, tremyfr@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 When the tx queue is dumped, it is easier to see that this entry is idle. Signed-off-by: Troy Kisky --- drivers/net/ethernet/freescale/fec_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 1902897..96a0394 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -1164,6 +1164,8 @@ static void fec_txq(struct net_device *ndev, struct fec_enet_private *fep, } break; } + bdp->cbd_sc = cpu_to_fec16((bdp == txq->bd.last) ? + BD_SC_WRAP : 0); index = fec_enet_get_bd_index(bdp, &txq->bd);