On my Toshiba Satellite A100-649, all USB devices freeze a few minutes after using them (for example, the USB mouse). Booting with the 'noapic' kernel option solves the problem. It also does not work with gentoo-sources (last tested version was around 2.6.21) When the devices freeze, the USB controller does not seem to receive interrupts any more: /proc/interrupts: CPU0 0: 10245 local-APIC-edge-fasteoi timer 1: 10 IO-APIC-edge i8042 8: 2 IO-APIC-edge rtc 12: 123 IO-APIC-edge i8042 15: 38 IO-APIC-edge ide1 17: 171 IO-APIC-fasteoi HDA Intel 18: 3069 IO-APIC-fasteoi sata_sil 19: 31 IO-APIC-fasteoi ohci_hcd:usb1, ohci_hcd:usb2, ehci_hcd:usb3 20: 4369 IO-APIC-fasteoi wifi0 21: 20 IO-APIC-fasteoi acpi NMI: 0 LOC: 2766 ERR: 0 MIS: 0 lspci: 00:00.0 Host bridge: ATI Technologies Inc Unknown device 5a31 (rev 01) 00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge 00:12.0 IDE interface: ATI Technologies Inc 4379 Serial ATA Controller (rev 80) 00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80) 00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80) 00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller (rev 80) 00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 81) 00:14.1 IDE interface: ATI Technologies Inc Standard Dual Channel PCI IDE Controller (rev 80) 00:14.2 Audio device: ATI Technologies Inc SB450 HDA Audio (rev 01) 00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge (rev 80) 00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge (rev 80) 01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon Xpress 200M] 02:04.0 Ethernet controller: Atheros Communications, Inc. AR2413 802.11bg NIC (rev 01) 02:06.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01) 02:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 02:0a.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link) Reproducible: Always Steps to Reproduce:
Can you please try with latest gentoo-sources-2.6.22? As if it does not work either I can reassign to kernel herd. Thanks!
Happens also with 2.6.22-gentoo-r8 (testing).
Reassign to kernel herd.
Can you please test with the latest development kernel which is 2.6.23_rc8 as of this writing. Can you enable CONFIG_USB_DEBUG and post dmesg logs from after when one of the devices breaks? Can I also see the following attached: cat /proc/bus/input/devices Besides the USB mouse what other devices are freezing?
Created attachment 132166 [details] complete dmesg with 2.6.23-rc8 Also happens with sys-kernel/vanilla-sources-2.6.23-rc8. The attachement is the complete output of dmesg after it broke. It currently happens with all USB-devices I currently have: My USB mouse, the external USB harddisk and the Pinnacle PCTV 400e (USB DVB device).
Created attachment 132168 [details] /proc/bus/input/devices From 2.6.22-gentoo-r8 when the USB mouse is still working.
Can you post your .config for the vanilla kernel you tested?
Created attachment 132464 [details] Linux 2.6.23-rc8 config
Can you attempt to boot with "acpi=ht". Can you post the output of /proc/interrupts in this case?
Sorry for the bug-spam post emerge --info also.
Because the kernel does not detect my S-ATA controller when booting with acpi=ht, I booted from the Gentoo 2007.0-r1 minimal install CD with "acpi=ht nodetect" and loaded the USB modules (without nodetect, the keyboard did not work for some reason). As it also didn't detect the controller, I had to write down the contents of /proc/interrupts. CPU0 0: 28542 IO-APIC-<NULL> timer 1: 383 IO-APIC-edge i8842 2: 0 XT-PIC-XT cascade 8: 2 IO-APIC-edge rtc 12: 124 IO-APIC-edge i8042 15: 462 IO-APIC-edge ide1 19: 33 IO-APIC-fasteoi ehci_hcd:usb1, ohci_hcd:usb2, ohci_hcd:usb3 NMI: 0 LOC: 28515 ERR: 0 MIS: 0 emerge --info: Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686) ================================================================= System uname: 2.6.22-gentoo-r8 i686 Intel(R) Celeron(R) M processor 1.50GHz Timestamp of tree: Wed, 03 Oct 2007 01:50:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0_rc4-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -pipe -fomit-frame-pointer -O2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=pentium-m -pipe -fomit-frame-pointer -O2" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo" LC_ALL="en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlay /usr/portage/local/layman/sunrise" SYNC="rsync://192.168.178.60/gentoo-portage" USE="X acl acpi alsa amrr aotuv apache2 battery berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt dri dvb dvd dvdread encode evo fam ffmpeg firefox flac gdbm gif glibc-omitfp glsa gnutls gpm graphviz gtk iconv imlib injection isdnlog jpeg kdeenablefinal kdehiddenvisibility kqemu mad madwifi midi mikmod mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl php png pppd python qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd threadsafe tiff truetype truetype-fonts type1-fonts unicode usb vim vorbis win32codecs x86 xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" DVB_CARDS="ttusb-dec" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx radeon v4l" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I see a lot of references to users with your laptop having to boot with noapic. Can you try booting with only irqpoll and tell me what happens? Some references: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.17/+bug/67577 http://ubuntuforums.org/showthread.php?t=81153 http://student.icis.pcz.pl/~89573/laptop/
It seems to work, however, the USB mouse is much more responsive when booting without it.
More responsive in X? Please elaborate.
Compared to the reaction of the mouse previous to changing the kernel parameter, my impression is that the mouse (in X) now reacts much more slowly. Occassionally it skips.
Can you tell me if interrupt counts change when you move the mouse around. cat /proc/interrupts Can you also post the output of that command?
As long as the USB devices work, the interrupt counts change when moving the mouse. However, when the mouse freezes, the interrupt count for the IRQ the USB devices are assigned stop changing. Reloading the USB modules also does not help. Output of 'cat /proc/interrupts' on gentoo-sources-2.6.23 with 'irqpoll' boot option: CPU0 0: 1958575 local-APIC-edge-fasteoi timer 1: 15813 IO-APIC-edge i8042 8: 2 IO-APIC-edge rtc 12: 51159 IO-APIC-edge i8042 15: 59 IO-APIC-edge ide1 17: 34642 IO-APIC-fasteoi HDA Intel 18: 303362 IO-APIC-fasteoi sata_sil 19: 1988 IO-APIC-fasteoi ohci_hcd:usb1, ohci_hcd:usb2, ehci_hcd:usb3 20: 3197746 IO-APIC-fasteoi wifi0 21: 46 IO-APIC-fasteoi acpi 22: 0 IO-APIC-fasteoi fglrx NMI: 0 LOC: 1722534 ERR: 0 MIS: 0
Also effects the new SB600 chipset. I have an external USB drive. When I transfer large files (over ~1 Gig), it always stalls. And it takes down the machine. Nothing but a reboot will fix it. I am using 2.6.22-gentoo-r5 and looking to move to 2.6.22-gentoo-r9.
Is this still an issue with later kernels?
Yes. Still doesn't work with 2.6.23-tuxonice-r6.
Can you test with a vanilla development kernel. The latest is 2.6.24_rc7 as of this writing.
Same problem with vanilla-sources-2.6.24-rc7.
Can you try 2 things? 1. Look if your BIOS and see if it has something concerning legacy USB. If you do, can you disable it and let me know if that helps. 2. Else, try booting with the following: irqpoll and acpi=force
Disabling legacy USB support does not help. irqpoll acpi=force works, but, as I already said, when booting with irqpoll, the system gets sometimes unresponsive. Some applications, for example mplayer, occasionally freeze for about 30 seconds to 1 minute. This happens more often when the CPU load is high (for example, when compiling something).
You mentioned that using "noapic" solves the problem too, does that have any side effects? Are there any BIOS updates available for your board?
Well, noapic _solved_ the problem until my laptop fan got broken and I had to send the laptop to Toshiba. They repaired the fan and did a BIOS update. Unfortunately, noapic doesn't seem to help with this new BIOS version. Using 'noapic' didn't have any side effects. There are no newer BIOS versions available. Everything still works under win.
Are they any updates to this issues? Have any attempts to try 2.6.25_rcX been made? I've seen many of the same problems on the net concerning this hardware with some having success and some not.
Feel free to reopen if this is still an issue with later kernels.
yes, more bugspam...