netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sky2 hangs
@ 2008-09-20  0:23 Greg Fitzgerald
  2008-09-20  5:53 ` Stephen Hemminger
  0 siblings, 1 reply; 17+ messages in thread
From: Greg Fitzgerald @ 2008-09-20  0:23 UTC (permalink / raw)
  To: netdev

Hope I am sending this to the right place. Have the sky2 network card.
Internet will die out randomly, re-probing the sky2 module usually solves
the problem. According to dmesg the receiver is hanging.

sky2 eth0: hung mac 0:81 fifo 3 (86:89)
sky2 eth0: receiver hang detected
sky2 eth0: disabling interface
sky2 eth0: enabling interface
sky2 eth0: Link is up at 10 Mbps, half duplex, flow control none
sky2 eth0: hung mac 0:11 fifo 194 (51:45)
sky2 eth0: receiver hang detected

This top half happens 3 or 4 times, then I'll start to get this extra
output in dmesg after that.

sky2 eth0: disabling interface
ACPI: PCI interrupt for device 0000:02:00.0 disabled
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 19 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:02:00.0 to 64
sky2 0000:02:00.0: v1.21 addr 0xcdefc000 irq 19 Yukon-EC (0xb6) rev 2
sky2 eth0: addr 00:17:31:9b:ca:89
sky2 eth0: enabling interface
sky2 eth0: Link is up at 10 Mbps, half duplex, flow control none
sky2 eth0: disabling interface
sky2 eth0: enabling interface
sky2 eth0: Link is up at 10 Mbps, half duplex, flow control none

Some where in between all this, it actually gets to the point where I
totally loose my connection. Sometimes it will come back up and I'm
perfectly fine.

If I can provide any other information please let me know.

Oh, been having this problem for some time now. Current version of the
my kernel is 2.6.26.5.

--Greg

^ permalink raw reply	[flat|nested] 17+ messages in thread
* sky2 hangs
@ 2007-02-01 18:55 Thomas Glanzmann
  2007-02-01 19:05 ` Stephen Hemminger
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Thomas Glanzmann @ 2007-02-01 18:55 UTC (permalink / raw)
  To: LKML; +Cc: shemminger, netdev

Hello,
I have a sky2 network card in my intel mac mini. It stops working when I
do havy network load like watching a divx over http/sshfs. However if I
remove the driver module and load it again it works and even the tcp
connection doesn't get shutdown. I automated the above procedure using
a userland watchdog which basically does the same thing and is written
entirely by me, because the traditional watchdog wasn't that reliable
and did a lot of false positives:

        * Look every ten seconds if my default router is pingable (3
          pings, one has to get back).
                If it isn't the case I call network_fix script (it calls the
                script only once after a ping gets lost. To run the script again at least one
                ping has to arrive again)

                (mini) [~] cat /usr/local/sbin/fix_network
                #!/bin/bash

                export PATH=/bin:/usr/bin:/usr/sbin:/sbin

                rmmod sky2
                modprobe sky2
                ifdown eth0
                ifup eth0

                If after that no ping is received from the default
                router for another 90 seconds I tell init to reboot and
                stop feeding the kernel software watchdog.

        * My watchdog also checks if sshd process is running. If it is
          down for more than 100 seconds it reboots the machine, too.

Jan 27 22:35:35 mini watchdog-tg[4146]: No PONG received from 192.168.0.3 (failure 1 of 10)
Jan 27 22:35:35 mini watchdog-tg[4146]: Running fix_network script.
Jan 27 22:38:46 mini watchdog-tg[4146]: No PONG received from 192.168.0.3 (failure 1 of 10)
Jan 27 22:38:46 mini watchdog-tg[4146]: Running fix_network script.
Jan 27 22:44:17 mini watchdog-tg[4146]: No PONG received from 192.168.0.3 (failure 1 of 10)
Jan 27 22:44:17 mini watchdog-tg[4146]: Running fix_network script.
Jan 29 12:00:13 mini watchdog-tg[4146]: No PONG received from 192.168.0.3 (failure 1 of 10)
Jan 29 12:00:13 mini watchdog-tg[4146]: Running fix_network script.
Jan 29 19:18:59 mini watchdog-tg[4146]: No PONG received from 192.168.0.3 (failure 1 of 10)
Jan 29 19:18:59 mini watchdog-tg[4146]: Running fix_network script.
Jan 31 15:56:29 mini watchdog-tg[4146]: No PONG received from 192.168.0.3 (failure 1 of 10)
Jan 31 15:56:29 mini watchdog-tg[4146]: Running fix_network script.
Feb  1 08:56:57 mini watchdog-tg[4146]: No PONG received from 192.168.0.3 (failure 1 of 10)
Feb  1 08:56:57 mini watchdog-tg[4146]: Running fix_network script.

I have a question to this: I wonder why the Linux Kernel (no longer?)
increments the use counter of an ethernet driver (I saw it on sky2 and
e1000) when the interface is up, running and configured? I can unload
the sky2 driver without doing a 'ifconfig eth0 down' beforehand. Could
somone provide me with background on this fact?

With that everything works. If somone is interested in my userland
watchdog, just send me an E-Mail.

@Sam: I can provide you access to my hardware including root access via
the wifi driver so that you can debug this network driver lockup, if you
want to.

        Thomas

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

end of thread, other threads:[~2008-09-20 21:18 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-20  0:23 sky2 hangs Greg Fitzgerald
2008-09-20  5:53 ` Stephen Hemminger
2008-09-20 21:18   ` Greg Fitzgerald
  -- strict thread matches above, loose matches on Subject: below --
2007-02-01 18:55 Thomas Glanzmann
2007-02-01 19:05 ` Stephen Hemminger
2007-02-01 19:19   ` Thomas Glanzmann
2007-02-01 19:07 ` Stephen Hemminger
2007-02-01 19:16   ` Thomas Glanzmann
2007-02-01 22:46 ` Fagyal Csongor
2007-02-01 22:58   ` Stephen Hemminger
2007-02-02  6:31     ` Thomas Glanzmann
2007-02-02 10:44       ` Julien BLACHE
2007-02-02 10:49         ` Thomas Glanzmann
2007-02-02 11:53           ` Fagyal Csongor
2007-02-02 13:43             ` Jarek Poplawski
2007-02-02 14:13               ` Jarek Poplawski
2007-02-02  6:27   ` Thomas Glanzmann

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