From patchwork Thu Feb 25 00:36:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 8415581 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 49F79C0553 for ; Thu, 25 Feb 2016 00:48:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 712502010C for ; Thu, 25 Feb 2016 00:48:56 +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 9D22A20108 for ; Thu, 25 Feb 2016 00:48:55 +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 1aYk4s-0005kZ-Ji; Thu, 25 Feb 2016 00:46:46 +0000 Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aYjzB-00082W-Sq for linux-arm-kernel@lists.infradead.org; Thu, 25 Feb 2016 00:40:56 +0000 Received: by mail-pf0-x22f.google.com with SMTP id e127so22270288pfe.3 for ; Wed, 24 Feb 2016 16:40:35 -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=+0iQ4gPp1sODt1awaYJCB+PacddUklTCZW0guJrfE7k=; b=dee3Z6GSN5I9JZuUbCyozYnSnWcD5XWytz9cgW3t7dhOYXpwG96+fmb1yfkl3Qi1t/ JG4tnHhoqR1I4LD5jCww6X8N8YncMuWTNJRstN4YNjnManVM9/xK7AsF7K+aZ8FEya1/ cJHvyQFReqHyg4TlKfdN6AUBlMVoMU107nayTp1ZAJ8IKHHKNlPjvPQIf5dTVoUZAg/K GLivFIntG+R0YcfhKgtEZ8XxH9Pcp3UZuMwKd8LFb62ag8meuJsftbi03zLw5RUq4im1 6D5zFHWe6uElxlNoLnKFfC8RUnQT5lLTmJ7FKcM5gijkL5tBQY2HiNUjqFwXoRno9KR3 NSuw== 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=+0iQ4gPp1sODt1awaYJCB+PacddUklTCZW0guJrfE7k=; b=etBL7L92CLRl96Ru9MaD6BKv6wGiJrVeKzSKlqWCNvulF7UeS0Qr4ZyWMa9baW6VBM Upg6Cq1VPo3GcpO7GwgKpL/s/eWk2rycX4jM71iZ8sJF7HPe7JII9INQW855Kzb8ykvU Lv4E0PPh7JwpiRDFDvHavgfOXSPkDjnE3X+g72Oze17/s9BK1u/TJ1KI32qTvX1M93YC iHgTh4AJMmwiY2Zjm49q7Jo4lSrdxv+NYPXGtLcRePy2m+mGtv8alRtc5FWqsxvfwgNK IgNivd7Q8EiC24Fr2SYUVdjOqbxUT1vhfacxI6g9shlQJSUYkVc/mUrPlI0YTVIAaGDa RaGA== X-Gm-Message-State: AG10YOTX6MhGLyCahoFz4tgHqoNvCpFbBOUpkVXq/mwzYi1T88xXX07y+RmBArCVgcel6A== X-Received: by 10.98.0.148 with SMTP id 142mr58831398pfa.84.1456360835122; Wed, 24 Feb 2016 16:40:35 -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.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Feb 2016 16:40:34 -0800 (PST) From: Troy Kisky To: netdev@vger.kernel.org, davem@davemloft.net, B38611@freescale.com Subject: [PATCH net-next V2 13/16] net: fec: print more debug info in fec_timeout Date: Wed, 24 Feb 2016 17:36:56 -0700 Message-Id: <1456360619-24390-14-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_164054_129438_9E72E8E6 X-CRM114-Status: GOOD ( 11.22 ) 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 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 001200b..615cca1 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -506,6 +506,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 afd4060..9a3136b 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -1107,6 +1107,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; @@ -1514,6 +1517,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)) {