netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to debug a driver which hangs (niu)?
@ 2013-08-12 15:06 Andrew Brooks
  2013-08-14 13:30 ` Jesper Dangaard Brouer
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Brooks @ 2013-08-12 15:06 UTC (permalink / raw)
  To: Linux Net-Dev Mailing List

Hello

I'm using a network driver (niu) which regularly locks-up after
printing the message "transmit timed out"
(i.e. nothing else can be sent/received over that interface after the event).

Does anyone have any tips for helping me to debug this?
eg. how to find out what is causing the transmit timed out message;
how to find out what state the driver is going into which causes the lock-up;
how to get it out of this state and working again?

I'm a programmer but I'm new to kernel drivers so all tips are most
welcome, thanks!

Andrew

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to debug a driver which hangs (niu)?
  2013-08-12 15:06 How to debug a driver which hangs (niu)? Andrew Brooks
@ 2013-08-14 13:30 ` Jesper Dangaard Brouer
  0 siblings, 0 replies; 2+ messages in thread
From: Jesper Dangaard Brouer @ 2013-08-14 13:30 UTC (permalink / raw)
  To: Andrew Brooks; +Cc: Linux Net-Dev Mailing List, Jesper Brouer


On Mon, 12 Aug 2013, Andrew Brooks wrote:

> I'm using a network driver (niu) which regularly locks-up after
> printing the message "transmit timed out"
> (i.e. nothing else can be sent/received over that interface after the event).

What kernel version are you using?
I seem to remember to have fixed an issue with NIU driver, long time ago.


> Does anyone have any tips for helping me to debug this?

First thing you could do is to increase the message level in the driver (I 
remeber NIU uses these msglvl settings).

By command:
  ethtool -s eth0 msglvl $((0x7fff))

View the message level by command:
  ethtool eth0


Cheers,
   Jesper Brouer

--
-------------------------------------------------------------------
MSc. Master of Computer Science
Dept. of Computer Science, University of Copenhagen
Author of http://www.adsl-optimizer.dk
-------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-14 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-12 15:06 How to debug a driver which hangs (niu)? Andrew Brooks
2013-08-14 13:30 ` Jesper Dangaard Brouer

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).