Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194027 - sys-kernel/gentoo-sources-2.6.22-r8: USB controller does not receive interrupts
Summary: sys-kernel/gentoo-sources-2.6.22-r8: USB controller does not receive interrupts
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major with 1 vote (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-27 17:53 UTC by Dominik Paulus
Modified: 2008-06-16 21:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
complete dmesg with 2.6.23-rc8 (dmesg,15.06 KB, text/plain)
2007-09-29 11:54 UTC, Dominik Paulus
Details
/proc/bus/input/devices (ProcBusInputDevices,1.31 KB, text/plain)
2007-09-29 11:55 UTC, Dominik Paulus
Details
Linux 2.6.23-rc8 config (config,40.06 KB, text/plain)
2007-10-03 16:19 UTC, Dominik Paulus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Paulus 2007-09-27 17:53:12 UTC
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:
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2007-09-27 20:59:38 UTC
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!
Comment 2 Dominik Paulus 2007-09-28 10:41:32 UTC
Happens also with 2.6.22-gentoo-r8 (testing).
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2007-09-28 16:49:34 UTC
Reassign to kernel herd.
Comment 4 Mike Pagano gentoo-dev 2007-09-28 17:25:36 UTC
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?
Comment 5 Dominik Paulus 2007-09-29 11:54:21 UTC
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).
Comment 6 Dominik Paulus 2007-09-29 11:55:24 UTC
Created attachment 132168 [details]
/proc/bus/input/devices

From 2.6.22-gentoo-r8 when the USB mouse is still working.
Comment 7 Mike Pagano gentoo-dev 2007-10-03 16:08:22 UTC
Can you post your .config for the vanilla kernel you tested?
Comment 8 Dominik Paulus 2007-10-03 16:19:52 UTC
Created attachment 132464 [details]
Linux 2.6.23-rc8 config
Comment 9 Mike Pagano gentoo-dev 2007-10-03 16:33:40 UTC
Can you attempt to boot with "acpi=ht".  Can you post the output of /proc/interrupts in this case?
Comment 10 Mike Pagano gentoo-dev 2007-10-03 16:36:07 UTC
Sorry for the bug-spam post emerge --info also.
Comment 11 Dominik Paulus 2007-10-03 17:36:13 UTC
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
Comment 12 Mike Pagano gentoo-dev 2007-10-06 19:30:14 UTC
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/
Comment 13 Dominik Paulus 2007-10-08 16:58:25 UTC
It seems to work, however, the USB mouse is much more responsive when booting without it.
Comment 14 Mike Pagano gentoo-dev 2007-10-09 16:31:19 UTC
More responsive in X? Please elaborate.
Comment 15 Dominik Paulus 2007-10-14 16:26:00 UTC
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.
Comment 16 Mike Pagano gentoo-dev 2007-10-23 01:10:12 UTC
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?
Comment 17 Dominik Paulus 2007-10-28 10:53:31 UTC
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
Comment 18 Sumeet Sheokand 2007-10-31 03:32:33 UTC
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.
Comment 19 Mike Pagano gentoo-dev 2008-01-03 19:13:57 UTC
Is this still an issue with later kernels?
Comment 20 Dominik Paulus 2008-01-03 20:57:23 UTC
Yes. Still doesn't work with 2.6.23-tuxonice-r6.
Comment 21 Mike Pagano gentoo-dev 2008-01-08 15:33:53 UTC
Can you test with a vanilla development kernel. The latest is 2.6.24_rc7 as of this writing.
Comment 22 Dominik Paulus 2008-01-19 11:41:51 UTC
Same problem with vanilla-sources-2.6.24-rc7.
Comment 23 Mike Pagano gentoo-dev 2008-02-08 00:20:28 UTC
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
Comment 24 Dominik Paulus 2008-02-22 17:54:34 UTC
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).
Comment 25 Daniel Drake (RETIRED) gentoo-dev 2008-03-18 10:57:05 UTC
You mentioned that using "noapic" solves the problem too, does that have any side effects?

Are there any BIOS updates available for your board?
Comment 26 Dominik Paulus 2008-03-18 11:03:45 UTC
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.
Comment 27 Mike Pagano gentoo-dev 2008-04-16 12:41:54 UTC
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.

Comment 28 Mike Pagano gentoo-dev 2008-04-30 00:52:16 UTC
Feel free to reopen if this is still an issue with later kernels.
Comment 29 Mike Pagano gentoo-dev 2008-04-30 01:27:45 UTC
yes, more bugspam...