From patchwork Thu Jan 28 21:25:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 8154381 Return-Path: X-Original-To: patchwork-linux-arm@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 02FE79F9A0 for ; Thu, 28 Jan 2016 21:52:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2DD2220219 for ; Thu, 28 Jan 2016 21:52:31 +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 F11A920218 for ; Thu, 28 Jan 2016 21:52:29 +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 1aOuSy-0004Xs-MZ; Thu, 28 Jan 2016 21:51:00 +0000 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOu7f-0005yC-6G for linux-arm-kernel@lists.infradead.org; Thu, 28 Jan 2016 21:29:01 +0000 Received: by mail-pa0-x22d.google.com with SMTP id uo6so29721387pac.1 for ; Thu, 28 Jan 2016 13:28:43 -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=XPP5VjybUj53s7+KHtN0vYO7Em2ZZPc+T+M/sB9ArdQ=; b=zRZuPHcZzCawnabziIiGkbWO+3LfjWfy7SnpU4GVCRRUuM0u5QNlH7oDAoawmQ5QDp LpBkBaDr67EtEpob+G9D4gyo2BCgzZ7BGMSDDfSc7p0f0EMNmlltf5AHEFF8btMypP61 zhp5FYYcaUB4MgG9SB7sWZaxtw+LTHi7LMBfMexscVgva8NbUb/HPdTeJ2YNeP3oti4Y EW/ZUjDxxTMsmBwAiV3W3T2lmzVMjH8ml/TuXVlrIodqcgeiyyX/9khW+ePSbCNjSMoa UuRM/CNt6U8sgKibr0xTF8WsaYlQfABlq7fI8r3OcGbV4gGt4G18P1Z6XeDk0Oax4ZqP rlRQ== 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=XPP5VjybUj53s7+KHtN0vYO7Em2ZZPc+T+M/sB9ArdQ=; b=BSo5r7qzjt0QAVMG0MabB9oGrk2BryzybsnxeuytKdYTnBpS00Bg34C+LtAuE1FuMJ A+BxBpKSFe9QnH9+83lAJIBvGNOrUmOMh/cL89J1AsTq+WIM0pWmOWoSLz6L9fzUm9yX ykqTi7bGF8akCe9FYZPLmEdrZJpq3KNgIx8qU40ojWpDxjuYyTb8svR1wBJNAWPkcECw k2yLdHMjwOM4aFR29W2NcNCjCXSiA6Wz8AOBve+iyU2wEO6255ggZnHE0n8DcAd1bajv Q5aIUioXtKJb14S+FMAkAUsHcrldeiCu8gPf65nKJYBDz/ICfyGGZyGEoaPjzUpQsXOZ I67w== X-Gm-Message-State: AG10YORDzZ2WGcnsOvRbbbS6tg610PVzs5klIAD/4mGpDRi8wjE4CP4/Xjg9XHgVguhjUQ== X-Received: by 10.66.55.73 with SMTP id q9mr8044382pap.44.1454016523466; Thu, 28 Jan 2016 13:28:43 -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 c90sm18583190pfd.31.2016.01.28.13.28.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jan 2016 13:28:42 -0800 (PST) From: Troy Kisky To: netdev@vger.kernel.org, davem@davemloft.net, B38611@freescale.com Subject: [PATCH net-next 21/40] net: fec: print more debug info in fec_timeout Date: Thu, 28 Jan 2016 14:25:45 -0700 Message-Id: <1454016364-30985-22-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454016364-30985-1-git-send-email-troy.kisky@boundarydevices.com> References: <1454016364-30985-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160128_132859_556941_A8F3D674 X-CRM114-Status: GOOD ( 10.55 ) 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, linux@arm.linux.org.uk, Troy Kisky , laci@boundarydevices.com, 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 Print the current interrupt flags and mask and the interrupt state during the last interrupt in fec_timeout. Signed-off-by: Troy Kisky --- drivers/net/ethernet/freescale/fec.h | 1 + drivers/net/ethernet/freescale/fec_main.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index be0e3d9..d2ca2e2 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -490,6 +490,7 @@ struct fec_enet_private { unsigned int total_tx_ring_size; unsigned int total_rx_ring_size; uint events; + uint last_ievents; struct platform_device *pdev; diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 47df66e..bc084ad9 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -1102,6 +1102,9 @@ fec_timeout(struct net_device *ndev) int i; uint events = 0; + pr_err("%s: last=%x %x, mask %x\n", __func__, fep->last_ievents, + readl(fep->hwp + FEC_IEVENT), readl(fep->hwp + FEC_IMASK)); + for (i = 0; i < fep->num_tx_queues; i++) { struct fec_enet_priv_tx_q *txq = fep->tx_queue[i]; int index; @@ -1504,6 +1507,7 @@ fec_enet_interrupt(int irq, void *dev_id) if (!int_events) return IRQ_NONE; + fep->last_ievents = int_events; if (int_events & (FEC_ENET_RXF | FEC_ENET_TXF)) { if (napi_schedule_prep(&fep->napi)) {