All of lore.kernel.org
 help / color / mirror / Atom feed
* sk98lin for 2.6.23-rc1
@ 2007-07-26 15:16 Kyle Rose
  2007-07-26 16:28 ` Jan Engelhardt
                   ` (3 more replies)
  0 siblings, 4 replies; 39+ messages in thread
From: Kyle Rose @ 2007-07-26 15:16 UTC (permalink / raw)
  To: linux-kernel

>From http://www.krose.org/~krose/computing.html:

Since the sky2 driver continues to suck ass (which is a technical
description for "it hangs all the time under load, at least on my
hardware" :-) ), I've fixed the sk98lin driver to compile for
linux-2.6.23-rc1. Those who continue to have problems with sky2 can
still use 2.6.23-rc1, simply by doing the following:

   1.

      Make sure you have the headers for your kernel properly installed
      and linked to /usr/src/linux-$KVER.

   2.

      Download the sk98lin source from Marvell's site
      <http://www.marvell.com/drivers/search.do>.

   3.

      Untar the driver and run the install.sh according to the
      directions. It will fail.

   4.

      Look in /tmp for a directory called Sk98something. Go to
      http://www.krose.org/~krose/projects/sk98lin/ and copy the
      Makefile <http://www.krose.org/%7Ekrose/projects/sk98lin/Makefile>
      and sky2.c <http://www.krose.org/%7Ekrose/projects/sk98lin/sky2.c>
      into /tmp/Sk98something/all.

   5.

      Change into /tmp/Sk98something/all and execute:

          sudo -H make -C /usr/src/linux-$KVER M=`pwd` modules
          sudo -H make -C /usr/src/linux-$KVER M=`pwd` modules_install

   6.

      Blacklist sky2 in /etc/modprobe.d/blacklist, and (maybe not
      necessary) manually load sk98lin in /etc/modules.

There. You're done. Stable networking at last... er, again.

Unfortunately, you lose the nicest differential feature of
sky2---WOL---but that's a small price to pay for networking stability of
a desktop machine. It's nice to be able to watch MythTV again without
having to sudo bash -c 'ifdown eth0; rmmod sky2; modprobe sky2; ifup
eth0' every few minutes.


Personally, I'd like to see sk98lin remain in the kernel proper until
sky2 goes at least 6 months without reported problems.  The fact that I
am not the only one still seeing issues is a clear indication that sky2
(even with the recent patches in 2.6.23-rc1) is not yet ready to replace
sk98lin.

I'm happy to help debug the remaining issues with sky2, Stephen; just
let me know what information you need.

Kyle


^ permalink raw reply	[flat|nested] 39+ messages in thread
* Re: sk98lin for 2.6.23-rc1
@ 2007-07-27 19:27 Daniel J Blueman
  0 siblings, 0 replies; 39+ messages in thread
From: Daniel J Blueman @ 2007-07-27 19:27 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Linux Netdev

> If anyone still has hang issues with sky2, please send me the hardware
> information (lspci, dmesg output), and capture the debugfs state after hang.
>
> At present the known open skge, sky2 issues are:
[snip]

There is still this active issue which I believe is orthogonal from
the interrupt hang. I just hit it again. The IRQ-hang recovery logic
doesn't seem to kick in, so it's perhaps another issue:

# ifconfig lan0
lan0      Link encap:Ethernet  HWaddr 00:03:2D:05:9C:27
          inet addr:192.168.0.250  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13304841 errors:1 dropped:1 overruns:0 frame:2
          TX packets:7493765 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:232720755 (221.9 MiB)  TX bytes:3964088142 (3.6 GiB)
          Interrupt:16

# ethtool -S lan0
NIC statistics:
     tx_bytes: 44342166229
     rx_bytes: 28807483162
     tx_broadcast: 20071
     rx_broadcast: 3309
     tx_multicast: 0
     rx_multicast: 31
     tx_unicast: 45095221
     rx_unicast: 43331790
     tx_mac_pause: 0
     rx_mac_pause: 278
     collisions: 0
     late_collision: 0
     aborted: 0
     single_collisions: 0
     multi_collisions: 0
     rx_short: 0
     rx_runt: 0
     rx_64_byte_packets: 1815009
     rx_65_to_127_byte_packets: 18626585
     rx_128_to_255_byte_packets: 788459
     rx_256_to_511_byte_packets: 4880174
     rx_512_to_1023_byte_packets: 1016831
     rx_1024_to_1518_byte_packets: 16208350
     rx_1518_to_max_byte_packets: 0
     rx_too_long: 0
     rx_fifo_overflow: 0
     rx_jabber: 0
     rx_fcs_error: 0
     tx_64_byte_packets: 1632797
     tx_65_to_127_byte_packets: 11211285
     tx_128_to_255_byte_packets: 1628446
     tx_256_to_511_byte_packets: 2042646
     tx_512_to_1023_byte_packets: 637342
     tx_1024_to_1518_byte_packets: 27962776
     tx_1519_to_max_byte_packets: 0
     tx_fifo_underrun: 0

# dmesg
[snip]
sky2 0000:01:00.0: v1.16 addr 0xdfbfc000 irq 16 Yukon-EC (0xb6) rev 1
sky2 eth1: addr 00:03:2d:05:9c:27
sky2 lan0: enabling interface
sky2 lan0: ram buffer 48K
[snip]
sky2 lan0: rx error, status 0xad78ad78 length 0
lan0: hw csum failure.
[stack-trace snipped]
lan0: hw csum failure.
...

# cat /debug/sky2/lan0
IRQ src=0 mask=c000001d control=0
Status ring (empty)
Tx ring pending=424...424 report=424 done=424

Rx ring hw get=252 put=405 last=1023

# cat /debug/sky2/lan0
IRQ src=0 mask=c000001d control=0
Status ring (empty)
Tx ring pending=432...432 report=432 done=432

Rx ring hw get=252 put=415 last=1023

# cat /debug/sky2/lan0
IRQ src=0 mask=c000001d control=0
Status ring (empty)
Tx ring pending=451...451 report=451 done=451

Rx ring hw get=316 put=440 last=1023
-- 
Daniel J Blueman

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

end of thread, other threads:[~2007-11-07  2:06 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-26 15:16 sk98lin for 2.6.23-rc1 Kyle Rose
2007-07-26 16:28 ` Jan Engelhardt
2007-07-26 16:30   ` Kyle Rose
2007-07-26 16:41     ` Jan Engelhardt
2007-07-27  1:07       ` Kyle Rose
2007-07-26 16:57 ` Adrian Bunk
2007-07-26 22:58   ` Chris Stromsoe
2007-07-26 23:38   ` Bill Davidsen
2007-07-26 23:41     ` Jeff Garzik
2007-07-30  3:01   ` Rob Sims
2007-09-05  9:22     ` Stephen Hemminger
2007-09-05 19:42       ` James Corey
2007-09-05 21:04         ` Kyle Rose
2007-09-05 23:00           ` Stephen Hemminger
2007-09-08 17:44         ` Bill Davidsen
2007-09-08 19:11           ` Adrian Bunk
2007-09-09  2:42             ` Kyle Rose
2007-09-09  4:48               ` Willy Tarreau
2007-09-09 11:13               ` Adrian Bunk
2007-09-11  8:05                 ` Stephen Hemminger
2007-09-11 11:54                   ` Adrian Bunk
2007-09-11 14:29                     ` Bill Davidsen
2007-09-11 15:03                       ` Adrian Bunk
2007-09-11 22:37                         ` Willy Tarreau
2007-09-11 22:20                   ` James Corey
2007-09-09 12:54             ` Chris Stromsoe
2007-11-06 22:23               ` Stephen Hemminger
2007-11-07  1:42                 ` Chris Stromsoe
2007-09-10 14:32             ` Bill Davidsen
2007-09-10 15:39               ` Adrian Bunk
2007-09-11  4:23                 ` Kyle Moffett
2007-09-12 16:46       ` Torsten Kaiser
2007-07-26 19:17 ` Stephen Hemminger
     [not found]   ` <46A8F3EE.3070102@krose.org>
2007-07-27  8:13     ` Stephen Hemminger
2007-07-27 12:58       ` Jeff Garzik
2007-07-27 13:06         ` Stephen Hemminger
2007-07-26 23:52 ` Bill Davidsen
2007-07-27  1:13   ` Kyle Rose
  -- strict thread matches above, loose matches on Subject: below --
2007-07-27 19:27 Daniel J Blueman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.