Bug 178267

Summary: [usb] USB causing interrupt storm on irq16
Product: Base System Reporter: Stephen Sanders <stephen.sanders>
Component: usbAssignee: freebsd-usb (Nobody) <usb>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Stephen Sanders 2013-04-30 20:10:00 UTC
USB hub controller seems to be generating a large number of interrupts
per second.  This seems to be in effect whether something is attached
to the USB ports or not.

The mother board is an Intel S5520HC with 48GB RAM .

"vmstat -i | grep irq16"  yields

irq16: uhci3 uhci4*                87743        923

Very often,the number of interrupts is above 1200.

Altering the usb quirks sysctl's didn't have any effect.  There seems
to be no BIOS setting that effects this problem either.

"sysctl hw.usb.ehci.debug=15 ; sleep 5 ; sysctl hw.usb.ehci.debug=0" yielded the following in /var/log/message :

Apr 30 14:44:39 bd5000-34 kernel: ehci_roothub_exec: get port status i=1
Apr 30 14:44:39 bd5000-34 kernel: ehci_roothub_exec: get port status i=1
Apr 30 14:44:39 bd5000-34 kernel:
Apr 30 14:44:59 bd5000-34 kernel: ehci_set_hw_power: ehci_set_hw_power:
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x0001
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x0001
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: get port status i=1
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: get port status i=1
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: port status=0x1000
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: port status=0x1000
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x0002
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x0002
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: get port status i=2
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: get port status i=2
Apr 30 14:44:59 bd5000-34 kernel:
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: port status=0x1000
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: port status=0x1000
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x0003
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x0003
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: get port status i=3
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: get port status i=3
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: port status=0x1000
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: port status=0x1000
Apr 30 14:44:59 bd5000-34 kernel:
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x0004
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x0004
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: get port status i=4
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: get port status i=4
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: port status=0x3000
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: port status=0x1000
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x0005
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x0005
Apr 30 14:44:59 bd5000-34 kernel:
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: get port status i=5
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: get port status i=5
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: port status=0x1000
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: port status=0x3000
Apr 30 14:44:59 bd5000-34 kernel:
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x0006
Apr 30 14:44:59 bd5000-34 kernel: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x00
00 wIndex=0x000

Fix: 

Unknown.
How-To-Repeat: Boot 8.1 on an Intel S5520HC board.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-05-20 04:28:08 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-usb

reclassify.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:59 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped