2012-11-17 12:36:20

by Udo van den Heuvel

[permalink] [raw]
Subject: Re: 3.4.4: disabling irq

On 2012-07-15 20:28, Alan Stern wrote:
> Um, I think you missed the point. The whole idea of the test is to see
> what happens while the controller is unbound from the driver. Binding
> it again defeats the purpose.

The problem still happens. irq 18 is dsiabled every now and then.
This time on different, new hardware.
The motherboard is now a Gigabyte F2A85X-UP4.
Camera is the same pwc cam.

Recently I removed the USB printer that was attached to the same USB
controller.
So probably it is not a hardware issue related to board or printer.

How to proceed next?

Udo




PS: Info captured soon after one occurrence:

# cat /sys/kernel/debug/usb/ohci/*/registers
bus pci, device 0000:00:12.0
OHCI Host Controller
ohci_hcd
OHCI 1.0, NO legacy support registers, rh state running
control 0x08f HCFS=operational IE PLE CBSR=3
cmdstatus 0x00000 SOC=0
intrstatus 0x00000024 FNO SF
intrenable 0x8000005a MIE RHSC UE RD WDH
ed_controlhead 00004000
hcca frame 0x6ed9
fmintvl 0xa7782edf FIT FSMPS=0xa778 FI=0x2edf
fmremaining 0x800005fa FRT FR=0x05fa
periodicstart 0x2a2f
lsthresh 0x0628
hub poll timer off
roothub.a 02001205 POTPGT=2 NOCP NPS NDP=5(5)
roothub.b 00000000 PPCM=0000 DR=0000
roothub.status 00008000 DRWE
roothub.portstatus [0] 0x00000100 PPS
roothub.portstatus [1] 0x00000303 LSDA PPS PES CCS
roothub.portstatus [2] 0x00000100 PPS
roothub.portstatus [3] 0x00000100 PPS
roothub.portstatus [4] 0x00000100 PPS
bus pci, device 0000:00:13.0
OHCI Host Controller
ohci_hcd
OHCI 1.0, NO legacy support registers, rh state running
control 0x08f HCFS=operational IE PLE CBSR=3
cmdstatus 0x00000 SOC=0
intrstatus 0x00000026 FNO SF WDH
intrenable 0x8000005a MIE RHSC UE RD WDH
ed_controlhead 00004000
hcca frame 0x6e9d
fmintvl 0xa7782edf FIT FSMPS=0xa778 FI=0x2edf
fmremaining 0x80001fcf FRT FR=0x1fcf
periodicstart 0x2a2f
lsthresh 0x0628
hub poll timer off
roothub.a 02001205 POTPGT=2 NOCP NPS NDP=5(5)
roothub.b 00000000 PPCM=0000 DR=0000
roothub.status 00008000 DRWE
roothub.portstatus [0] 0x00000100 PPS
roothub.portstatus [1] 0x00000100 PPS
roothub.portstatus [2] 0x00000100 PPS
roothub.portstatus [3] 0x00000103 PPS PES CCS
roothub.portstatus [4] 0x00000100 PPS
bus pci, device 0000:00:14.5
OHCI Host Controller
ohci_hcd
OHCI 1.0, NO legacy support registers, rh state running
control 0x083 HCFS=operational CBSR=3
cmdstatus 0x00000 SOC=0
intrstatus 0x00000024 FNO SF
intrenable 0x8000005a MIE RHSC UE RD WDH
hcca frame 0x6e61
fmintvl 0xa7782edf FIT FSMPS=0xa778 FI=0x2edf
fmremaining 0x80000cd8 FRT FR=0x0cd8
periodicstart 0x2a2f
lsthresh 0x0628
hub poll timer off
roothub.a 02001202 POTPGT=2 NOCP NPS NDP=2(2)
roothub.b 00000000 PPCM=0000 DR=0000
roothub.status 00008000 DRWE
roothub.portstatus [0] 0x00000100 PPS
roothub.portstatus [1] 0x00000100 PPS
# cat /sys/kernel/debug/usb/devices

T: Bus=11 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:02:00.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=10 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:02:00.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=09 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:10.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=08 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:10.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=07 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:10.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=06 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:10.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 5
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.06
S: Manufacturer=Linux 3.6.6 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:13.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 5
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.06
S: Manufacturer=Linux 3.6.6 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:12.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 3.06
S: Manufacturer=Linux 3.6.6 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:14.5
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 5
B: Alloc=757/900 us (84%), #Int= 0, #Iso= 3
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 3.06
S: Manufacturer=Linux 3.6.6 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:13.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=02 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0471 ProdID=0311 Rev= 0.03
S: SerialNumber=01690000A5000000
C:* #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
I: If#= 0 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 196 Ivl=1ms
I: If#= 0 Alt= 2 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 292 Ivl=1ms
I: If#= 0 Alt= 3 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 448 Ivl=1ms
I: If#= 0 Alt= 4 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 592 Ivl=1ms
I: If#= 0 Alt= 5 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 704 Ivl=1ms
I: If#= 0 Alt= 6 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 776 Ivl=1ms
I: If#= 0 Alt= 7 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 840 Ivl=1ms
I: If#= 0 Alt= 8 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 896 Ivl=1ms
I:* If#= 0 Alt= 9 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 960 Ivl=1ms
I: If#= 0 Alt=10 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 960 Ivl=1ms
I:* If#= 1 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
I:* If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
I: If#= 2 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=84(I) Atr=01(Isoc) MxPS= 90 Ivl=1ms
I: If#= 2 Alt= 2 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=84(I) Atr=01(Isoc) MxPS= 46 Ivl=1ms
I: If#= 2 Alt= 3 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=84(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
I: If#= 2 Alt= 4 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=84(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 5
B: Alloc= 11/900 us ( 1%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 3.06
S: Manufacturer=Linux 3.6.6 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:12.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c00c Rev= 6.20
S: Manufacturer=Logitech
S: Product=USB Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=10ms



And another:

# cat /sys/kernel/debug/usb/ohci/*/registers
bus pci, device 0000:00:12.0
OHCI Host Controller
ohci_hcd
OHCI 1.0, NO legacy support registers, rh state running
control 0x08f HCFS=operational IE PLE CBSR=3
cmdstatus 0x00000 SOC=0
intrstatus 0x00000024 FNO SF
intrenable 0x8000005a MIE RHSC UE RD WDH
ed_controlhead 00004000
hcca frame 0x7769
fmintvl 0xa7782edf FIT FSMPS=0xa778 FI=0x2edf
fmremaining 0x800014b7 FRT FR=0x14b7
periodicstart 0x2a2f
lsthresh 0x0628
hub poll timer off
roothub.a 02001205 POTPGT=2 NOCP NPS NDP=5(5)
roothub.b 00000000 PPCM=0000 DR=0000
roothub.status 00008000 DRWE
roothub.portstatus [0] 0x00000100 PPS
roothub.portstatus [1] 0x00000303 LSDA PPS PES CCS
roothub.portstatus [2] 0x00000100 PPS
roothub.portstatus [3] 0x00000100 PPS
roothub.portstatus [4] 0x00000100 PPS
bus pci, device 0000:00:13.0
OHCI Host Controller
ohci_hcd
OHCI 1.0, NO legacy support registers, rh state running
control 0x08f HCFS=operational IE PLE CBSR=3
cmdstatus 0x00000 SOC=0
intrstatus 0x00000026 FNO SF WDH
intrenable 0x8000005a MIE RHSC UE RD WDH
ed_controlhead 0008e000
hcca frame 0xf7b1
fmintvl 0xa7782edf FIT FSMPS=0xa778 FI=0x2edf
fmremaining 0x8000121c FRT FR=0x121c
periodicstart 0x2a2f
lsthresh 0x0628
hub poll timer off
roothub.a 02001205 POTPGT=2 NOCP NPS NDP=5(5)
roothub.b 00000000 PPCM=0000 DR=0000
roothub.status 00008000 DRWE
roothub.portstatus [0] 0x00000100 PPS
roothub.portstatus [1] 0x00000100 PPS
roothub.portstatus [2] 0x00000100 PPS
roothub.portstatus [3] 0x00000103 PPS PES CCS
roothub.portstatus [4] 0x00000100 PPS
bus pci, device 0000:00:14.5
OHCI Host Controller
ohci_hcd
OHCI 1.0, NO legacy support registers, rh state running
control 0x083 HCFS=operational CBSR=3
cmdstatus 0x00000 SOC=0
intrstatus 0x00000024 FNO SF
intrenable 0x8000005a MIE RHSC UE RD WDH
hcca frame 0x76f0
fmintvl 0xa7782edf FIT FSMPS=0xa778 FI=0x2edf
fmremaining 0x80000fd0 FRT FR=0x0fd0
periodicstart 0x2a2f
lsthresh 0x0628
hub poll timer off
roothub.a 02001202 POTPGT=2 NOCP NPS NDP=2(2)
roothub.b 00000000 PPCM=0000 DR=0000
roothub.status 00008000 DRWE
roothub.portstatus [0] 0x00000100 PPS
roothub.portstatus [1] 0x00000100 PPS
# cat /sys/kernel/debug/usb/devices

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 5
B: Alloc=757/900 us (84%), #Int= 0, #Iso= 3
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 3.06
S: Manufacturer=Linux 3.6.6 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:13.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=02 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0471 ProdID=0311 Rev= 0.03
S: SerialNumber=01690000A5000000
C:* #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
I: If#= 0 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 196 Ivl=1ms
I: If#= 0 Alt= 2 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 292 Ivl=1ms
I: If#= 0 Alt= 3 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 448 Ivl=1ms
I: If#= 0 Alt= 4 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 592 Ivl=1ms
I: If#= 0 Alt= 5 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 704 Ivl=1ms
I: If#= 0 Alt= 6 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 776 Ivl=1ms
I: If#= 0 Alt= 7 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 840 Ivl=1ms
I: If#= 0 Alt= 8 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 896 Ivl=1ms
I:* If#= 0 Alt= 9 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 960 Ivl=1ms
I: If#= 0 Alt=10 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=Philips webcam
E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=32ms
E: Ad=85(I) Atr=01(Isoc) MxPS= 960 Ivl=1ms
I:* If#= 1 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
I:* If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
I: If#= 2 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=84(I) Atr=01(Isoc) MxPS= 90 Ivl=1ms
I: If#= 2 Alt= 2 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=84(I) Atr=01(Isoc) MxPS= 46 Ivl=1ms
I: If#= 2 Alt= 3 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=84(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
I: If#= 2 Alt= 4 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=84(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms

T: Bus=11 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:02:00.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=10 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:02:00.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=09 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:10.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=08 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:10.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=07 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:10.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=06 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.06
S: Manufacturer=Linux 3.6.6 xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:10.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 5
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.06
S: Manufacturer=Linux 3.6.6 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:13.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 5
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.06
S: Manufacturer=Linux 3.6.6 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:12.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 3.06
S: Manufacturer=Linux 3.6.6 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:14.5
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 5
B: Alloc= 11/900 us ( 1%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 3.06
S: Manufacturer=Linux 3.6.6 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:12.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c00c Rev= 6.20
S: Manufacturer=Logitech
S: Product=USB Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=10ms


2012-11-19 16:41:35

by Alan Stern

[permalink] [raw]
Subject: Re: 3.4.4: disabling irq

On Sat, 17 Nov 2012, Udo van den Heuvel wrote:

> The problem still happens. irq 18 is dsiabled every now and then.
> This time on different, new hardware.
> The motherboard is now a Gigabyte F2A85X-UP4.
> Camera is the same pwc cam.
>
> Recently I removed the USB printer that was attached to the same USB
> controller.
> So probably it is not a hardware issue related to board or printer.
>
> How to proceed next?

Firstly, what does /proc/interrupts say?

Secondly, try building a kernel with the patch below and
CONFIG_USB_DEBUG enabled. Let's see what the dmesg log says when the
problem occurs.

Alan Stern



Index: usb-3.7/drivers/usb/host/ohci-hcd.c
===================================================================
--- usb-3.7.orig/drivers/usb/host/ohci-hcd.c
+++ usb-3.7/drivers/usb/host/ohci-hcd.c
@@ -777,6 +777,7 @@ static irqreturn_t ohci_irq (struct usb_
struct ohci_hcd *ohci = hcd_to_ohci (hcd);
struct ohci_regs __iomem *regs = ohci->regs;
int ints;
+ int i, j;

/* Read interrupt status (and flush pending writes). We ignore the
* optimization of checking the LSB of hcca->done_head; it doesn't
@@ -795,11 +796,15 @@ static irqreturn_t ohci_irq (struct usb_
}

/* We only care about interrupts that are enabled */
- ints &= ohci_readl(ohci, &regs->intrenable);
+ i = ints;
+ j = ohci_readl(ohci, &regs->intrenable);
+ ints &= j;

/* interrupt for some other device? */
- if (ints == 0 || unlikely(ohci->rh_state == OHCI_RH_HALTED))
+ if (ints == 0 || unlikely(ohci->rh_state == OHCI_RH_HALTED)) {
+ ohci_dbg(ohci, "IRQ: %x %x\n", i, j);
return IRQ_NOTMINE;
+ }

if (ints & OHCI_INTR_UE) {
// e.g. due to PCI Master/Target Abort

2012-11-19 16:47:31

by Udo van den Heuvel

[permalink] [raw]
Subject: Re: 3.4.4: disabling irq

On 2012-11-19 17:41, Alan Stern wrote:
>> How to proceed next?
>
> Firstly, what does /proc/interrupts say?

# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 39 0 0 0 IO-APIC-edge timer
1: 716 721 730 687 IO-APIC-edge i8042
4: 1631 1603 1713 1914 IO-APIC-edge serial
9: 0 0 0 0 IO-APIC-fasteoi acpi
16: 427 437 443 447 IO-APIC-fasteoi
snd_hda_intel
17: 0 0 3 1 IO-APIC-fasteoi
ehci_hcd:usb4, ehci_hcd:usb5
18: 100443 100710 103881 116011 IO-APIC-fasteoi
ohci_hcd:usb1, ohci_hcd:usb2, ohci_hcd:usb3
20: 8049 8235 8456 9657 IO-APIC-fasteoi serial
40: 0 0 0 0 PCI-MSI-edge AMD-Vi
43: 47534 47847 49501 52187 PCI-MSI-edge ahci
44: 118811 119571 123111 134412 PCI-MSI-edge eth0
45: 0 0 0 0 PCI-MSI-edge
xhci_hcd
46: 0 0 0 0 PCI-MSI-edge
xhci_hcd
47: 0 0 0 0 PCI-MSI-edge
xhci_hcd
48: 0 0 0 0 PCI-MSI-edge
xhci_hcd
49: 0 0 0 0 PCI-MSI-edge
xhci_hcd
50: 0 0 0 0 PCI-MSI-edge
xhci_hcd
51: 0 0 0 0 PCI-MSI-edge
xhci_hcd
52: 0 0 0 0 PCI-MSI-edge
xhci_hcd
53: 0 0 0 0 PCI-MSI-edge
xhci_hcd
54: 0 0 0 0 PCI-MSI-edge
xhci_hcd
55: 0 0 0 0 PCI-MSI-edge
xhci_hcd
56: 33 28 36 28 PCI-MSI-edge
snd_hda_intel
57: 52846 53825 56666 64450 PCI-MSI-edge radeon
NMI: 0 0 0 0 Non-maskable interrupts
LOC: 381988 405614 348070 323872 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 0 0 0 0 Performance
monitoring interrupts
IWI: 0 0 0 0 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 1166893 1184781 1089048 1016935 Rescheduling interrupts
CAL: 34472 32009 62610 50241 Function call interrupts
TLB: 0 0 0 0 TLB shootdowns
THR: 0 0 0 0 Threshold APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 8 8 8 8 Machine check polls
ERR: 4
MIS: 0

> Secondly, try building a kernel with the patch below and
> CONFIG_USB_DEBUG enabled. Let's see what the dmesg log says when the
> problem occurs.

Will do!

Udo

2012-11-20 14:41:51

by Udo van den Heuvel

[permalink] [raw]
Subject: Re: 3.4.4: disabling irq

On 2012-11-19 17:41, Alan Stern wrote:
> Firstly, what does /proc/interrupts say?

# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 40 0 0 0 IO-APIC-edge timer
1: 631 640 677 734 IO-APIC-edge i8042
4: 1026 976 961 1098 IO-APIC-edge serial
9: 0 0 0 0 IO-APIC-fasteoi acpi
16: 409 403 406 414 IO-APIC-fasteoi
snd_hda_intel
17: 1 1 0 2 IO-APIC-fasteoi
ehci_hcd:usb4, ehci_hcd:usb5
18: 62356 62649 64102 67369 IO-APIC-fasteoi
ohci_hcd:usb1, ohci_hcd:usb2, ohci_hcd:usb3
20: 5774 5762 5902 6405 IO-APIC-fasteoi serial
40: 0 0 0 0 PCI-MSI-edge AMD-Vi
43: 19483 19239 19938 20909 PCI-MSI-edge ahci
44: 51837 52223 53122 55971 PCI-MSI-edge eth0
45: 0 0 0 0 PCI-MSI-edge
xhci_hcd
46: 0 0 0 0 PCI-MSI-edge
xhci_hcd
47: 0 0 0 0 PCI-MSI-edge
xhci_hcd
48: 0 0 0 0 PCI-MSI-edge
xhci_hcd
49: 0 0 0 0 PCI-MSI-edge
xhci_hcd
50: 0 0 0 0 PCI-MSI-edge
xhci_hcd
51: 0 0 0 0 PCI-MSI-edge
xhci_hcd
52: 0 0 0 0 PCI-MSI-edge
xhci_hcd
53: 0 0 0 0 PCI-MSI-edge
xhci_hcd
54: 0 0 0 0 PCI-MSI-edge
xhci_hcd
55: 0 0 0 0 PCI-MSI-edge
xhci_hcd
56: 26 24 42 31 PCI-MSI-edge
snd_hda_intel
57: 28748 28431 29792 32594 PCI-MSI-edge radeon
NMI: 0 0 0 0 Non-maskable interrupts
LOC: 271724 235396 273222 256476 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 0 0 0 0 Performance
monitoring interrupts
IWI: 0 0 0 0 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 534762 574540 368898 508436 Rescheduling interrupts
CAL: 30439 42897 30212 31668 Function call interrupts
TLB: 0 0 0 0 TLB shootdowns
THR: 0 0 0 0 Threshold APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 4 4 4 4 Machine check polls
ERR: 8
MIS: 0

> Secondly, try building a kernel with the patch below and
> CONFIG_USB_DEBUG enabled. Let's see what the dmesg log says when the
> problem occurs.

I just booted into 3.6.7 with the patch:

# dmesg|sort|uniq
ohci_hcd 0000:00:12.0: IRQ: 24 8000005a
ohci_hcd 0000:00:14.5: IRQ: 24 8000005a
#

So what does this mean?
I did not get the `disabling irq` yet.


Udo

2012-11-20 16:14:31

by Alan Stern

[permalink] [raw]
Subject: Re: 3.4.4: disabling irq

On Tue, 20 Nov 2012, Udo van den Heuvel wrote:

> > Secondly, try building a kernel with the patch below and
> > CONFIG_USB_DEBUG enabled. Let's see what the dmesg log says when the
> > problem occurs.
>
> I just booted into 3.6.7 with the patch:
>
> # dmesg|sort|uniq
> ohci_hcd 0000:00:12.0: IRQ: 24 8000005a
> ohci_hcd 0000:00:14.5: IRQ: 24 8000005a
> #
>
> So what does this mean?
> I did not get the `disabling irq` yet.

It means your system was working normally. Which you already knew,
because the IRQ didn't get disabled.

Alan Stern