* [TG3 7/8]: Add some tx timeout debug messages.
@ 2007-02-13 20:14 Michael Chan
2007-02-13 20:19 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Michael Chan @ 2007-02-13 20:14 UTC (permalink / raw)
To: davem, netdev
[TG3]: Add some tx timeout debug messages.
Print the most useful information during tx timeout to help debug.
Signed-off-by: Michael Chan <mchan@broadcom.com>
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index a1aeba2..159570b 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -3735,13 +3735,23 @@ out:
tg3_full_unlock(tp);
}
+static void tg3_dump_short_state(struct tg3 *tp)
+{
+ printk(KERN_ERR PFX "DEBUG: MAC_TX_STATUS[%08x] MAC_RX_STATUS[%08x]\n",
+ tr32(MAC_TX_STATUS), tr32(MAC_RX_STATUS));
+ printk(KERN_ERR PFX "DEBUG: RDMAC_STATUS[%08x] WDMAC_STATUS[%08x]\n",
+ tr32(RDMAC_STATUS), tr32(WDMAC_STATUS));
+}
+
static void tg3_tx_timeout(struct net_device *dev)
{
struct tg3 *tp = netdev_priv(dev);
- if (netif_msg_tx_err(tp))
+ if (netif_msg_tx_err(tp)) {
printk(KERN_ERR PFX "%s: transmit timed out, resetting\n",
dev->name);
+ tg3_dump_short_state(tp);
+ }
schedule_work(&tp->reset_task);
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [TG3 7/8]: Add some tx timeout debug messages.
2007-02-13 20:14 [TG3 7/8]: Add some tx timeout debug messages Michael Chan
@ 2007-02-13 20:19 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-02-13 20:19 UTC (permalink / raw)
To: mchan; +Cc: netdev
From: "Michael Chan" <mchan@broadcom.com>
Date: Tue, 13 Feb 2007 12:14:50 -0800
> [TG3]: Add some tx timeout debug messages.
>
> Print the most useful information during tx timeout to help debug.
>
> Signed-off-by: Michael Chan <mchan@broadcom.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-13 20:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-13 20:14 [TG3 7/8]: Add some tx timeout debug messages Michael Chan
2007-02-13 20:19 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).