Bug 9199
Summary: | usb 1-2: clear tt 2 (90b1) error -32 | ||
---|---|---|---|
Product: | Drivers | Reporter: | Cijoml Cijomlovic Cijomlov (cijoml) |
Component: | USB | Assignee: | Greg Kroah-Hartman (greg) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | akpm, dbrownell |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.23.11 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: | potential fix: don't clear TT faults in some cases |
Description
Cijoml Cijomlovic Cijomlov
2007-10-20 09:28:24 UTC
Reply-To: akpm@linux-foundation.org On Sat, 20 Oct 2007 09:28:24 -0700 (PDT) bugme-daemon@bugzilla.kernel.org wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=9199 > > Summary: usb 1-2: clear tt 2 (90b1) error -32 > Product: Drivers > Version: 2.5 > KernelVersion: 2.6.23-vanilla > Platform: All > OS/Version: Linux > Tree: Mainline > Status: NEW > Severity: normal > Priority: P1 > Component: USB > AssignedTo: greg@kroah.com > ReportedBy: cijoml@volny.cz > > > Most recent kernel where this bug did not occur:2.6.22.X > Distribution: Debian testing > Hardware Environment: Acer TravelMate 242 > Software Environment: Debian testing, sane > Problem Description: > > usb 1-2.2: new full speed USB device using ehci_hcd and address 11 > usb 1-2.2: configuration #1 chosen from 1 choice > usblp0: USB Bidirectional printer dev 11 if 0 alt 1 proto 2 vid 0x03F0 pid > 0x0417 > usbcore: registered new interface driver usblp > usblp0: removed > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2.2: USB disconnect, address 11 > usb 1-2: clear tt 2 (90b1) error -32 > usb 1-2.2: new full speed USB device using ehci_hcd and address 12 > usb 1-2.2: configuration #1 chosen from 1 choice > usblp0: USB Bidirectional printer dev 12 if 0 alt 1 proto 2 vid 0x03F0 pid > 0x0417 > usblp0: removed > > After switching off my HP LaserJet 1220 (scan document was fine) I got ton of > those errors into dmesg. Problem vanished after switch on printer again. > After > switch off it was OK again. > Can we see "lspci -v" output for the external hub you're using? Obviously the logic clearing TT faults needs tweaking to handle disconnected devices. But there are two types of high speed hub, and I think they need different logic there. Seeing that "lspci -v" info will help sort this out. Hi David, notas:/home/cijoml# lspci -v 00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) Flags: bus master, fast devsel, latency 0 Memory at <unassigned> (32-bit, prefetchable) Capabilities: [40] Vendor Specific Information 00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, fast devsel, latency 0 00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, fast devsel, latency 0 00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02) (prog-if 00 [VGA]) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, fast devsel, latency 0, IRQ 11 Memory at e8000000 (32-bit, prefetchable) [size=128M] Memory at e0000000 (32-bit, non-prefetchable) [size=512K] I/O ports at 1800 [size=8] Capabilities: [d0] Power Management version 1 00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: fast devsel Memory at f0000000 (32-bit, prefetchable) [disabled] [size=128M] Memory at e0080000 (32-bit, non-prefetchable) [disabled] [size=512K] Capabilities: [d0] Power Management version 1 00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03) (prog-if 00 [UHCI]) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, medium devsel, latency 0, IRQ 11 I/O ports at 1820 [size=32] 00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03) (prog-if 00 [UHCI]) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, medium devsel, latency 0, IRQ 11 I/O ports at 1840 [size=32] 00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03) (prog-if 00 [UHCI]) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, medium devsel, latency 0, IRQ 10 I/O ports at 1860 [size=32] 00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03) (prog-if 20 [EHCI]) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, medium devsel, latency 0, IRQ 11 Memory at e0100000 (32-bit, non-prefetchable) [size=1K] Capabilities: [50] Power Management version 2 Capabilities: [58] Debug port 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=01, subordinate=09, sec-latency=64 I/O behind bridge: 00003000-00003fff Memory behind bridge: e0200000-e02fffff Prefetchable memory behind bridge: 50000000-59ffffff 00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03) Flags: bus master, medium devsel, latency 0 00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03) (prog-if 8a [Master SecP PriP]) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, medium devsel, latency 0, IRQ 10 I/O ports at 01f0 [size=8] I/O ports at 03f4 [size=1] I/O ports at 0170 [size=8] I/O ports at 0374 [size=1] I/O ports at 1810 [size=16] Memory at 5a000000 (32-bit, non-prefetchable) [size=1K] 00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: medium devsel, IRQ 10 I/O ports at 1880 [size=32] 00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, medium devsel, latency 0, IRQ 10 I/O ports at 1c00 [size=256] I/O ports at 18c0 [size=64] Memory at e0100c00 (32-bit, non-prefetchable) [size=512] Memory at e0100800 (32-bit, non-prefetchable) [size=256] Capabilities: [50] Power Management version 2 00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03) (prog-if 00 [Generic]) Subsystem: Acer Incorporated [ALI] Unknown device 0038 Flags: bus master, medium devsel, latency 0, IRQ 10 I/O ports at 2400 [size=256] I/O ports at 2000 [size=128] Capabilities: [50] Power Management version 2 01:04.0 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, medium devsel, latency 168, IRQ 10 Memory at e0201000 (32-bit, non-prefetchable) [size=4K] Bus: primary=01, secondary=02, subordinate=05, sec-latency=176 Memory window 0: 50000000-53fff000 (prefetchable) Memory window 1: 5c000000-5ffff000 I/O window 0: 00003400-000034ff I/O window 1: 00003800-000038ff 16-bit legacy interface ports at 0001 01:04.1 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, medium devsel, latency 168, IRQ 10 Memory at e0202000 (32-bit, non-prefetchable) [size=4K] Bus: primary=01, secondary=06, subordinate=09, sec-latency=176 Memory window 0: 54000000-57fff000 (prefetchable) Memory window 1: 60000000-63fff000 I/O window 0: 00003c00-00003cff I/O window 1: 00001400-000014ff 16-bit legacy interface ports at 0001 01:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) Subsystem: Acer Incorporated [ALI] Unknown device 0039 Flags: bus master, medium devsel, latency 64, IRQ 11 I/O ports at 3000 [size=256] Memory at e0200000 (32-bit, non-prefetchable) [size=256] [virtual] Expansion ROM at 58000000 [disabled] [size=64K] Capabilities: [50] Power Management version 2 02:00.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) (prog-if 10 [OHCI]) Subsystem: ALi Corporation USB 1.1 Controller Flags: bus master, 66MHz, medium devsel, latency 16, IRQ 10 Memory at 5c000000 (32-bit, non-prefetchable) [size=4K] Capabilities: [60] Power Management version 2 02:00.1 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) (prog-if 10 [OHCI]) Subsystem: ALi Corporation USB 1.1 Controller Flags: bus master, 66MHz, medium devsel, latency 16, IRQ 10 Memory at 5c001000 (32-bit, non-prefetchable) [size=4K] Capabilities: [60] Power Management version 2 02:00.2 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) (prog-if 10 [OHCI]) Subsystem: ALi Corporation USB 1.1 Controller Flags: bus master, 66MHz, medium devsel, latency 16, IRQ 10 Memory at 5c002000 (32-bit, non-prefetchable) [size=4K] Capabilities: [60] Power Management version 2 02:00.3 USB Controller: ALi Corporation USB 2.0 Controller (rev 01) (prog-if 20 [EHCI]) Subsystem: ALi Corporation Unknown device 5272 Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 10 Memory at 5c003800 (32-bit, non-prefetchable) [size=256] Capabilities: [50] Power Management version 2 Capabilities: [58] Debug port 02:00.4 FireWire (IEEE 1394): ALi Corporation M5253 P1394 OHCI 1.1 Controller (prog-if 10 [OHCI]) Subsystem: ALi Corporation M5253 P1394 OHCI 1.1 Controller Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 10 Memory at 5c003000 (32-bit, non-prefetchable) [size=2K] [virtual] Expansion ROM at 50000000 [disabled] [size=64K] Capabilities: [80] Power Management version 2 06:00.0 Ethernet controller: Atheros Communications, Inc. AR5006X 802.11abg NIC (rev 01) Subsystem: 3Com Corporation Wireless 11a/b/g PC Card with XJACK(r) Antenna Flags: bus master, medium devsel, latency 96, IRQ 10 Memory at 60000000 (32-bit, non-prefetchable) [size=64K] Capabilities: [44] Power Management version 2 ------------ I have only one USB2.0 port so it is extended by in-external-lcd-integraded 4 port USB2.0 hub: Bus 001 Device 008: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub" Grr, I meant "lsusb -v" not "lspci -v". But the info I wanted was the "TetraHub" thing, thanks ... I was sure you prefer lsusb ;) Here it is. Bus 001 Device 008: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub" Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 2 TT per port bMaxPacketSize0 64 idVendor 0x04b4 Cypress Semiconductor Corp. idProduct 0x6560 CY7C65640 USB-2.0 "TetraHub" bcdDevice 0.0b iManufacturer 0 iProduct 0 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 41 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 1 Single TT iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 12 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 1 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 2 TT per port iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 12 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 4 wHubCharacteristic 0x0089 Per-port power switching Per-port overcurrent protection TT think time 8 FS bits Port indicators bPwrOn2PwrGood 50 * 2 milli seconds bHubContrCurrent 100 milli Ampere DeviceRemovable 0x00 PortPwrCtrlMask 0xff Hub Port Status: Port 1: 0000.0100 power Port 2: 0000.0100 power Port 3: 0000.0100 power Port 4: 0000.0100 power Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 Full speed (or root) hub bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0001 Self Powered Created attachment 13217 [details]
potential fix: don't clear TT faults in some cases
Try this patch. It just checks for the "disconnected from TT-per-port hub" case and doesn't bother trying to clear that fault ... on the theory that such hubs will clear fault state along with other per-port state on disconnect.
Hi David, with this patch scanning doesn't even start :( BTW this device is laser printer combined with scanner (multifunction). To start scanning lp0 is always removed and than during scan phase I see those errors. BTW they are still the same. To support scanning hplip package needs to be installed. Same errors with patch: ------------- usb 4-2.2: new full speed USB device using ehci_hcd and address 5 usb 4-2.2: configuration #1 chosen from 1 choice usblp0: USB Bidirectional printer dev 5 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0417 usbcore: registered new interface driver usblp usblp0: removed usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2.2: USB disconnect, address 5 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2: clear tt 2 (9051) error -32 usb 4-2.2: new full speed USB device using ehci_hcd and address 6 usb 4-2.2: configuration #1 chosen from 1 choice usblp0: USB Bidirectional printer dev 6 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0417 usblp0: removed I got this error also with classical USB scanner Canon CanoScan N670U usb 4-2.1: new full speed USB device using ehci_hcd and address 8 usb 4-2.1: configuration #1 chosen from 1 choice usb 4-2: clear tt 1 (1083) error -32 usb 4-2: clear tt 1 (1083) error -32 usb 4-2: clear tt 1 (1083) error -32 usb 4-2: clear tt 1 (1083) error -32 usb 4-2: clear tt 1 (1083) error -32 usb 4-2: clear tt 1 (0080) error -32 usb 4-2.1: USB disconnect, address 8 usb 4-2.1: new full speed USB device using ehci_hcd and address 9 usb 4-2.1: configuration #1 chosen from 1 choice usb 4-2: clear tt 1 (1093) error -32 usb 4-2: clear tt 1 (1093) error -32 usb 4-2: clear tt 1 (1093) error -32 usb 4-2: clear tt 1 (1093) error -32 usb 4-2: clear tt 1 (1093) error -32 usb 4-2: clear tt 1 (1093) error -32 usb 4-2: clear tt 1 (0090) error -32 usb 4-2: clear tt 1 (0090) error -32 usb 4-2.1: USB disconnect, address 9 usb 4-2.1: new full speed USB device using ehci_hcd and address 10 usb 4-2.1: configuration #1 chosen from 1 choice xsane[12238]: segfault at b5737004 eip b758d8ac esp bfd69b68 error 4 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usb 4-2.1: USB disconnect, address 10 segfault is interrested! 2.6.23.11 still have this problem Should be fixed in 2.6.30. If not, please let the developers at linux-usb@vger.kernel.org know about it. |