mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
[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> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
569a5df859
commit
b040875112
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user