i'm tring new network driver sky2 in kernel 2.6.15-gentoo-r7 and sometime i have many problem using samba, distccd. There are no log in dmesg and /var/log/message watching with ethereal i can see many udp packet out of order. I don't know if this bug is for gentoo developer but they will see.
I have exactly the same problem... the drivers just stop.. To make it work again just by modprobe -r sky2 && modprobe sky2 I already test with httpd ftpd samba sshd ... and all cause this .. But no log at all.
I forgot to put my emerge --info Portage 2.1_pre6-r6 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo i686) ================================================================= System uname: 2.6.16-gentoo i686 Intel(R) Pentium(R) M processor 2.00GHz Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium-m -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.dei.uc.pt/pub/linux/gentoo/gentoo http://darkstar.ist.utl.pt/gentoo/" LANG="en_US@euro" LC_ALL="en_US@euro" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt ctype cups dba dri eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile idn imlib ipv6 jpeg kde kernel_linux lcms libg++ libwww mad memlimit mikmod mng motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png posix python qt quicktime readline samba sdl session simplexml slang soap sockets spell spl ssl tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev userland_GNU vorbis x86 xml xml2 xmms xsl xv zlib input_devices_keyboard input_devices_mouse input_devices_synaptics video_cards_fglrx video_cards_vesa video_cards_fbdev" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, LINGUAS
my driver don't stop but all udp packet will be too slow, particulary samba, for little transfer there isn't problem but when i'll browse a directory will tooo slow. I have also problem with distcc always no log Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r7 x86_64) ================================================================= System uname: 2.6.15-gentoo-r7 x86_64 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.6.14 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -mtune=nocona -march=nocona -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=nocona -march=nocona -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distcc_ distlocks maketest_ sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="it_IT.UTF-8" LC_ALL="it_IT.UTF-8" LINGUAS="ar en_GB it it_IT" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X a52 aac aalib acpi alsa apache2 audiofile avi bash-completion berkdb bidi bitmap-fonts bluetooth bonobo browserplugin bzip2 cairo caps cddb cdr cgi chroot cjk cli crypt ctype cups curl dba dbus directfb dri dts dv dvd dvdr dvdread eds emboss encode esd ethereal evo exif expat fam fame fastbuild fbcon ffmpeg firefox flac flash foomaticdb force-cgi-redirect fortran freetype ftp gcj gd gdbm gif gimp gimpprint glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl idea idn ieee1394 imagemagick imap imlib ipv6 ithreads jack java jpeg junit lcms libcaca libclamav libedit libwww live lm_sensors lzo lzw lzw-tiff mad matroska memlimit mhash mikmod ming mjpeg mng motif mozilla mozsvg mp3 mpeg mule musicbrainz mysql nautilus ncurses nfs nls nptl nsplugin ogg oggvorbis opengl oss pam pcre pda pdflib perl php pic png posix ppds python qmail qt quicktime quotas readline real recode rtc samba scanner sdl server session simplexml slang smp sndfile soap sockets speex spell spl ssl svg symlink tcltk tetex theora threads tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vhosts vorbis wxgtk1 wxwindows xine xml xml2 xmms xpm xsl xv xvid zlib video_cards_fglrx input_devices_keyboard input_devices_mouse linguas_ar linguas_en_GB linguas_it linguas_it_IT userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
Please retest with gentoo-sources-2.6.16-r1
I already test gentoo-sources-2.6.16-r1 but its worst than before. when trying to connect to proftd from another PC the driver just stop...
Created attachment 83473 [details] dmesg
Created attachment 83474 [details] debug of sky2
I have spent some time debugging this, and found the old patch from syskonnect.de to be more useful. I have tried using ethtool to force flow control on, I have tried hacking the driver. sky2 seems very immature of a driver, absolutely no documentation what so ever. It handles packets horribly, and i'm sure it's due to the actual NIC itself, but that's never a solution. I have tried 2.6.16 and 2.6.16-r1 and found that eventually i get 'frame' count errors. Once those start, it all dies. So I can get maybe 2-3minutes of goodness. // paste eth0: Marvell Yukon 88E8053 Gigabit Ethernet Controller PrefPort:A RlmtMode:Check Link State ASUS P5LD2 Motherboard, with the most recent BIOS revision. // emerge info Portage 2.1_pre7-r3 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.15-gentoo-r7 i686) ================================================================= System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.3.5-r2, 2.4.2-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.91.0.4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mail/dspam /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control /var/run/dspam" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=pentium4 -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sfperms strict" GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="... not worth pasting too many to count" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY I hope that syskonnect will update their driver for 2.6.16, or they fix sky2. Documentation would be wonderful, because it's obvious that even with no traffic except for 'ARP' traffic of the local subnet, this driver can't seem to hack it at all.
Scott: please don't be so negative. Syskonnect have done a bad job at maintaining quality in their drivers and the sky2 developer had to jump through many hoops before they provided any documentation whatsoever (this only happened very recently). Is your problem a regression in 2.6.16-r1, or was sky2 in gentoo-sources-2.6.16 (or older) also non-operational? Jo
Scott: please don't be so negative. Syskonnect have done a bad job at maintaining quality in their drivers and the sky2 developer had to jump through many hoops before they provided any documentation whatsoever (this only happened very recently). Is your problem a regression in 2.6.16-r1, or was sky2 in gentoo-sources-2.6.16 (or older) also non-operational? João: Please attach full dmesg from a 2.6.16-r1 boot. Are you saying the network is hardly usable at all on this kernel, or does it work OK for a few minutes and then drop?
It looks like you are running VMware. Can you reproduce this with a standard non-tainted kernel?
same problem for me. new kernel without biuld (and start) vmware. samba don't work.
Stephen, FYI, gentoo-sources-2.6.16 included an unmodified sky2 (version stamp 0.15). After this bug report I patched sky2-1.1 into gentoo-sources-2.6.16-r1 I'm still waiting for someone to provide a full dmesg dump from 2.6.16-r1 so that I could have headed this your way.
how i can have a full dmesg dump
Boot 2.6.16-gentoo-r1, run "dmesg > out" and then attach the file named "out" to this bug.
Created attachment 84603 [details] 2.6.16-r2 dmesg
Scott, is your problem a regression in 2.6.16-r1, or was sky2 in gentoo-sources-2.6.16 (or older) also non-operational?
at this moment, the 2.6.16-r2 seems to be working 'OK', it was actually a regression test, and I have 2.6.16-r1 and 2.6.16 also installed, but I was seeing if the new sky2 driver got in. Of course the kernel was also untainted from alsa, and nvidia and others so that also might be why. I'm going to do further research later tonight to determine if it was the tainted kernel modules that were causing the problem.
Created attachment 84672 [details] dmesg log 2.6.16-r2
Here is the dmesg dump for gentoo-sources-2.6.16-r2.. The sky2 just dont work at all on this kernel.. Its worse than <=2.6.16 .. I cant even browse the net because it cant resolve a domain.. If you need I can post here a ethereal log....
Stephen, there's now one full report here you can look at. Jo
Stephen, there's now one full report here you can look at. João tested Gentoo's 2.6.15 kernel (which included sky2-0.15) which sort-of worked, but ran into occasional problems. João upgraded to a recent Gentoo 2.6.16 kernel which includes sky2-1.1 and it is now not even possible to establish a single connection. The hardware in question is: sky2 v1.1 addr 0xbc000000 irq 11 Yukon-FE (0xb7) rev 1 There is a full dmesg log in comment #18. Please let us know which other info we can provide you with.
There is a lot of interupt sharing occurring on these machines. Please try and reproduce it with 2.6.17-rc2. The version of sky2 in that release supports Message Signaled Interrupts, and that may reduce/avoid issues with lost interrupts. Also please check /proc/interrupts to make sure that the interrupt being used by sky2 is either MSI or level triggered.
Created attachment 85196 [details] 2.6.17-rc2 dmesg
Created attachment 85197 [details] /proc/interrupts log
The driver just does not work at all.. The only thing I can do is pump -ieth0 and then it froze.. I am currently using gentoo-sources-2.6.16 witch is the most stable version.. I hope this logs can help you Stephen.
The problem is that many devices are sharing the same interrupt, and the interrupt is getting programmed to edge triggered. You might investigate BIOS settings or it could be an ACPI bug. The relevant lines are in /proc/interrupts: 11: 27 XT-PIC uhci_hcd:usb3, uhci_hcd:usb4, uhci_hcd:usb5, yenta, sdhci:slot0, sdhci:slot1, sdhci:slot2, ohci1394, sky2 In dmesg output: ACPI: setting ELCR to 0200 (from 0c20) The ELCR register is the edge versus level triggered control register. For some reason, ACPI is deciding to set it 0200 which means only IRQ 9 is level triggered. Network devices using NAPI won't work with edge triggered interrupts and shared IRQ's won't work properly with edge triggered interrupts.
wee using 2.6.16-gentoo-r3 -- kernel output -- NETDEV WATCHDOG: eth0: transmit timed out sky2 eth0: tx timeout sky2 eth0: transmit ring 299 .. 277 report=299 done=299 sky2 hardware hung? flushing NETDEV WATCHDOG: eth0: transmit timed out sky2 eth0: tx timeout sky2 eth0: transmit ring 277 .. 254 report=299 done=299 sky2 status report lost? NETDEV WATCHDOG: eth0: transmit timed out sky2 eth0: tx timeout sky2 eth0: transmit ring 299 .. 276 report=299 done=299 sky2 hardware hung? flushing NETDEV WATCHDOG: eth0: transmit timed out sky2 eth0: tx timeout sky2 eth0: transmit ring 276 .. 253 report=299 done=299 sky2 status report lost? NETDEV WATCHDOG: eth0: transmit timed out sky2 eth0: tx timeout sky2 eth0: transmit ring 299 .. 276 report=299 done=299 sky2 hardware hung? flushing NETDEV WATCHDOG: eth0: transmit timed out -- end kernel debug -- pretty sweet obviously, I had a torrent running and aparently it killed the driver. :(
Scott, please attach /proc/interrupts
Jo
João, sorry for the inconvenience, but it is a little confusing working on this bug where there are many interleaved reports which are not necessarily the same bug. Could you open a new bug about your issue? We can then go from there, the problem is an ACPI/BIOS thing.
damm@desolation> cat /proc/interrupts ~ CPU0 CPU1 0: 13711674 0 IO-APIC-edge timer 1: 797 0 IO-APIC-edge i8042 7: 0 0 IO-APIC-edge parport0 8: 2 0 IO-APIC-edge rtc 9: 0 0 IO-APIC-level acpi 10: 0 0 IO-APIC-edge MPU401 UART 14: 113 0 IO-APIC-edge ide0 17: 4637948 0 IO-APIC-level uhci_hcd:usb5, sky2, HDA Intel 19: 148787 0 IO-APIC-level ide2, ide3, ehci_hcd:usb1, uhci_hcd:usb2 20: 0 0 IO-APIC-level uhci_hcd:usb3 21: 26659 0 IO-APIC-level uhci_hcd:usb4 22: 0 0 IO-APIC-level libata NMI: 0 0 LOC: 13704499 13704498 ERR: 0 MIS: 0
Stephen, Scott's problem appears to be different. Here's a quick summary: The driver works, but stops after a while. This was reproduced with sky2 v0.15 included in 2.6.16, and also with sky2 v1.1 which I took from 2.6.17-rc and included in Gentoo's 2.6.16 kernel. APIC is being used, and the interrupt is level triggered. There is some sharing going on, but it is not excessive. See comment #29 for /proc/interrupts. The hardware in question is: sky2 v1.1 addr 0xcaefc000 irq 17 Yukon-EC (0xb6) rev 2 See attachment #84603 [details] for a full dmesg dump. See comment #26 for a snippet of dmesg logs at the point of failure, with sky2 debugging enabled. I noticed that sky2 v1.2 entered Linus' tree today, with some possible fixes for edge triggered interrupts. Is it worth us testing those patches against this problem? Is there any other info we can provide?
Linux version 2.6.16-gentoo-r3 (root@nocona) (gcc version 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)) #1 SMP Wed Apr 26 23:03:25 CEST 2006 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 00000000bffa0000 (usable) BIOS-e820: 00000000bffa0000 - 00000000bffae000 (ACPI data) BIOS-e820: 00000000bffae000 - 00000000bffe0000 (ACPI NVS) BIOS-e820: 00000000bffe0000 - 00000000c0000000 (reserved) BIOS-e820: 00000000ffb80000 - 0000000100000000 (reserved) ACPI: RSDP (v000 ACPIAM ) @ 0x00000000000facb0 ACPI: RSDT (v001 A M I OEMRSDT 0x01000609 MSFT 0x00000097) @ 0x00000000bffa0000 ACPI: FADT (v001 A M I OEMFACP 0x01000609 MSFT 0x00000097) @ 0x00000000bffa0200 ACPI: MADT (v001 A M I OEMAPIC 0x01000609 MSFT 0x00000097) @ 0x00000000bffa0390 ACPI: OEMB (v001 A M I AMI_OEM 0x01000609 MSFT 0x00000097) @ 0x00000000bffae040 >>> ERROR: Invalid checksum ACPI: MCFG (v001 A M I OEMMCFG 0x01000609 MSFT 0x00000097) @ 0x00000000bffa8630 ACPI: DSDT (v001 A0227 A0227000 0x00000000 INTL 0x02002026) @ 0x0000000000000000 On node 0 totalpages: 774104 DMA zone: 2558 pages, LIFO batch:0 DMA32 zone: 771546 pages, LIFO batch:31 Normal zone: 0 pages, LIFO batch:0 HighMem zone: 0 pages, LIFO batch:0 ACPI: PM-Timer IO Port: 0x808 ACPI: Local APIC address 0xfee00000 >>> ERROR: Invalid checksum
Created attachment 85568 [details] dmesg and /proc/interrupts
Michele, Scott: Please retest with vanilla-sources-2.6.17_rc3. This includes some patches which might help.
HI am also encountering the same problem on my Intel iMac (EFI-based). I am using a vanilla 2.6.16 with the patch from the mactel-linux website at [1]. My problem is that all network stops working at some point in time (esp after an emerge --sync or opening multiple tabs in Firefox). I have found that restarting the net.eth0 service solves the issues until the next time it appears (generally some minutes after that). The issue started to appear some time ago after I moved to ~x86, it used to work fine previously (AFAIK). I am attaching my dmesg output, /proc/interrupts as well as my emerge info. I am going to ask the mactel-linux folks about the problem since they provided the patch and will stop bugging you unless you need more info :) [1] http://svn.sourceforge.net/viewcvs.cgi/mactel-linux/trunk/misc/misc/imac-2.6.16.patch?view=markup&rev=24
Created attachment 86258 [details] dmesg output (macIntel 2.6.16)
Created attachment 86259 [details] /proc/interrupts listing (macIntel 2.6.16)
Created attachment 86260 [details] emerge info (macIntel 2.6.16)
Should be fixed in gentoo-sources-2.6.16-r8. If there are any problems remaining, please open new bugs.
Hi i'm having problems with the sky2 driver as well, the sk98lin from skyconnect with worked flawlessly doesn't compile anymore. sky2 on 2.6.16-gentoo-r9 the entire computer crashes from time to time and lots of errors on the interface. sky2 on 2.6.17-rc5 the driver stops working after 1-3 days (works ok until it does), didn't try it as a module yet to see if unload/reload works, for now I reboot.....
Hi, I can confirm the issue is fixed by upgrading to sky v1.4. For those not able or interested to change kernel versions (esp if you are using an Intel iMac w/ patches applying on 2.6.16.1-vanilla), simply copy drivers/net/sky2* from 2.6.16-r8 into your old kernel tree and rebuid.