Hallo,

Alan Stern wrote:
On Tue, 5 Sep 2006, Oleg Verych wrote:
...

But i think kernel could handle this kinds of error more gracefully. After such (100% hardware) error all USB hubs on my laptop are off, no reset is done, only permanent disabling of IRQ#...


Perhaps we could improve the kernel's behavior if you provided more
details.  For instance, what version of the kernel are you using?  If you
turn on CONFIG_USB_DEBUG, what messages show up in the kernel log?  What
device(s)  cause the problem to occur?

I'm using very standard scheme (didn't make my kernel for 2+ years):
+--
|[EMAIL PROTECTED]:~$ uname -r -v
|2.6.16-2-amd64-k8 #1 Fri Aug 18 20:55:43 CEST 2006
|[EMAIL PROTECTED]:~$ gnu
|x86_64-pc-linux-gnu-debian
|[EMAIL PROTECTED]:~$
+--

Device is much same as said in topic, even same vendor.
First log (attached) was when i've plugged out mouse, while coping data from hdd. After this USB wasn't working -> reboot, but i was happy, that kernel didn't died.

After reboot i've made another try (attached). No mouse plugging, just I/O.

USB device set:
+--
|[EMAIL PROTECTED]:~$ egrep S: /proc/bus/usb/devices
|S:  Manufacturer=Linux 2.6.16-2-amd64-k8 ohci_hcd
|S:  Product=OHCI Host Controller
|S:  SerialNumber=0000:00:02.1
|S:  Manufacturer=Linux 2.6.16-2-amd64-k8 ohci_hcd
|S:  Product=OHCI Host Controller
|S:  SerialNumber=0000:00:02.0
|S:  Manufacturer=Linux 2.6.16-2-amd64-k8 ehci_hcd
|S:  Product=EHCI Host Controller
|S:  SerialNumber=0000:00:02.2
+--

IMHO it's cable problem (they used to be with bigger metal shield even for ordinary mouses), non 100% reproducible.

When i finally will break through all bugs i (with debian+laptop) have and install development environment, i'll try to build new and rc kernels. I need to do some kernel hacking, because it seems very few good-old people actually do something...

Alan Stern

Thanks !

--
-o--=O`C
 #oo'L O
<___=E M
kernel: XFS mounting filesystem hda6
kernel: Ending clean XFS mount for filesystem: hda6
kernel: XFS mounting filesystem hda7
kernel: Ending clean XFS mount for filesystem: hda7
kernel: usb 1-6: new high speed USB device using ehci_hcd and address 4
kernel: usb 1-6: configuration #1 chosen from 1 choice
kernel: hub 1-6:1.0: USB hub found
kernel: hub 1-6:1.0: 4 ports detected
kernel: usb 1-6.2: new high speed USB device using ehci_hcd and address 5
kernel: usb 1-6.2: configuration #1 chosen from 1 choice

------[ external hdd ]

kernel: scsi1 : SCSI emulation for USB Mass Storage devices
kernel: usb-storage: device found at 5
kernel: usb-storage: waiting for device to settle before scanning
kernel: hiddev96: USB HID v1.10 Device [Western Digital External HDD] on usb-0000:00:02.2-6.2
kernel:   Vendor: WD        Model: 2500JB External   Rev: 0112
kernel:   Type:   Direct-Access                      ANSI SCSI revision: 00
kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
kernel: sdb: Write Protect is off
kernel: sdb: Mode Sense: 33 00 00 00
kernel: sdb: assuming drive cache: write through
kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
kernel: sdb: Write Protect is off
kernel: sdb: Mode Sense: 33 00 00 00
kernel: sdb: assuming drive cache: write through
kernel:  sdb: sdb1 sdb2 sdb3
kernel: sd 1:0:0:0: Attached scsi disk sdb
kernel: usb-storage: device scan complete

------[ ends here ]

kernel: ohci_hcd 0000:00:02.0: wakeup
kernel: usb 2-2: new low speed USB device using ohci_hcd and address 2
kernel: usb 2-2: configuration #1 chosen from 1 choice
kernel: input: Logitech Optical USB Mouse as /class/input/input2
kernel: input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0000:00:02.0-2
kernel: [drm] Initialized drm 1.0.1 20051102
kernel: ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 17
kernel: GSI 19 sharing vector 0xC9 and IRQ 19
kernel: ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKE] -> GSI 17 (level, low) -> IRQ 201
kernel: [drm] Initialized radeon 1.22.0 20051229 on minor 0
kernel: agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.
kernel: agpgart: Xorg tried to set rate=x12. Setting to AGP3 x8 mode.
kernel: agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
kernel: agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode
kernel: [drm] Loading R300 Microcode


------[ problem ]


kernel: usb 2-2: USB disconnect, address 2
kernel: hub 1-0:1.0: port 3 disabled by hub (EMI?), re-enabling...
kernel: usb 1-3: USB disconnect, address 2
kernel: usb 1-3: new high speed USB device using ehci_hcd and address 8
kernel: usb 1-3: device descriptor read/64, error -110
kernel: usb 1-3: device descriptor read/64, error -110
kernel: usb 1-3: new high speed USB device using ehci_hcd and address 9
kernel: usb 1-3: device descriptor read/64, error -110
kernel: sd 1:0:0:0: scsi: Device offlined - not ready after error recovery
kernel: sd 1:0:0:0: SCSI error: return code = 0x50000
kernel: end_request: I/O error, dev sdb, sector 239296
kernel: Buffer I/O error on device sdb, logical block 29912
kernel: sd 1:0:0:0: rejecting I/O to offline device
kernel: Buffer I/O error on device sdb, logical block 29913
kernel: Buffer I/O error on device sdb, logical block 29914
kernel: Buffer I/O error on device sdb, logical block 29915
kernel: Buffer I/O error on device sdb, logical block 29916
kernel: Buffer I/O error on device sdb, logical block 29917
kernel: Buffer I/O error on device sdb, logical block 29918
kernel: Buffer I/O error on device sdb, logical block 29919
kernel: Buffer I/O error on device sdb, logical block 29920
kernel: Buffer I/O error on device sdb, logical block 29921
kernel: sd 1:0:0:0: rejecting I/O to offline device
last message repeated 3 times
kernel: sd 1:0:0:0: SCSI error: return code = 0x10000
kernel: end_request: I/O error, dev sdb, sector 239536
kernel: sd 1:0:0:0: rejecting I/O to offline device
kernel: usb 1-3: configuration #1 chosen from 1 choice
kernel: scsi2 : SCSI emulation for USB Mass Storage devices
kernel: usb 1-5: USB disconnect, address 3
kernel: usb-storage: device found at 9
kernel: usb-storage: waiting for device to settle before scanning
kernel: usb 1-5: new high speed USB device using ehci_hcd and address 10
kernel: usb 1-5: configuration #1 chosen from 1 choice
kernel: usb 1-6: USB disconnect, address 4
kernel: usb 1-6.2: USB disconnect, address 5
kernel: hub 1-0:1.0: hub_port_status failed (err = -108)
kernel: hub 1-0:1.0: connect-debounce failed, port 6 disabled
kernel: hub 1-0:1.0: cannot disable port 6 (err = -108)
kernel: ohci_hcd 0000:00:02.0: wakeup
kernel: usb 2-2: new low speed USB device using ohci_hcd and address 3
kernel: usb 2-2: configuration #1 chosen from 1 choice
kernel: input: Logitech Optical USB Mouse as /class/input/input3
kernel: input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0000:00:02.0-2
kernel: hub 1-0:1.0: cannot reset port 3 (err = -108)
last message repeated 4 times
kernel: hub 1-0:1.0: Cannot enable port 3.  Maybe the USB cable is bad?
kernel: hub 1-0:1.0: cannot disable port 3 (err = -108)
kernel: hub 1-0:1.0: cannot reset port 3 (err = -108)
last message repeated 4 times
kernel: hub 1-0:1.0: Cannot enable port 3.  Maybe the USB cable is bad?
kernel: hub 1-0:1.0: cannot disable port 3 (err = -108)
kernel: hub 1-0:1.0: cannot reset port 3 (err = -108)
last message repeated 4 times
kernel: hub 1-0:1.0: Cannot enable port 3.  Maybe the USB cable is bad?
kernel: hub 1-0:1.0: cannot disable port 3 (err = -108)
kernel: hub 1-0:1.0: cannot reset port 3 (err = -108)
last message repeated 4 times
kernel: hub 1-0:1.0: Cannot enable port 3.  Maybe the USB cable is bad?
kernel: hub 1-0:1.0: cannot disable port 3 (err = -108)
kernel: hub 1-0:1.0: cannot disable port 3 (err = -108)
kernel: hub 1-0:1.0: hub_port_status failed (err = -108)
kernel: usb-storage: device scan complete
kernel:  0:0:0:0: rejecting I/O to dead device
kernel: irq 185: nobody cared (try booting with the "irqpoll" option)
kernel: 
kernel: Call Trace: <IRQ> <ffffffff80143a3c>{__report_bad_irq+48}
kernel:        <ffffffff80143c32>{note_interrupt+425} <ffffffff8022f0a0>{usb_hcd_irq+41}
kernel:        <ffffffff8014367e>{__do_IRQ+139} <ffffffff8010cad4>{do_IRQ+60}
kernel:        <ffffffff801090c7>{default_idle+0} <ffffffff8010a9fc>{ret_from_intr+0} <EOI>
kernel:        <ffffffff802a6239>{thread_return+62} <ffffffff801090f3>{default_idle+44}
kernel:        <ffffffff80109161>{cpu_idle+68} <ffffffff803ce779>{start_kernel+462}
kernel:        <ffffffff803ce260>{_sinittext+608}
kernel: handlers:
kernel: [<ffffffff8022f077>] (usb_hcd_irq+0x0/0x56)
last message repeated 2 times
kernel: Disabling IRQ #185
kernel: skge eth0: Link is up at 100 Mbps, full duplex, flow control tx and rx
kernel: skge eth0: Link is down.

------[ problem ]

kernel: sd 1:0:0:0: scsi: Device offlined - not ready after error recovery
kernel: sd 1:0:0:0: SCSI error: return code = 0x50000
kernel: end_request: I/O error, dev sdb, sector 390658481
kernel: sd 1:0:0:0: rejecting I/O to offline device
last message repeated 3 times
kernel: sd 1:0:0:0: SCSI error: return code = 0x10000
kernel: end_request: I/O error, dev sdb, sector 390658497
kernel: sd 1:0:0:0: rejecting I/O to offline device
kernel: sd 1:0:0:0: rejecting I/O to offline device
kernel: I/O error in filesystem ("sdb3") meta-data dev sdb3 block 0x3bcd08       ("xfs_trans_read_buf") error 5 buf count 4096
kernel: sd 1:0:0:0: rejecting I/O to offline device
kernel: I/O error in filesystem ("sdb3") meta-data dev sdb3 block 0x3bcd08       ("xfs_trans_read_buf") error 5 buf count 4096
kernel: sd 1:0:0:0: rejecting I/O to offline device
kernel: I/O error in filesystem ("sdb3") meta-data dev sdb3 block 0x3bcd08       ("xfs_trans_read_buf") error 5 buf count 4096
kernel: sd 1:0:0:0: rejecting I/O to offline device
kernel: I/O error in filesystem ("sdb3") meta-data dev sdb3 block 0x3bcd08       ("xfs_trans_read_buf") error 5 buf count 4096
kernel: sd 1:0:0:0: rejecting I/O to offline device
kernel: I/O error in filesystem ("sdb3") meta-data dev sdb3 block 0x3bcd08       ("xfs_trans_read_buf") error 5 buf count 4096
kernel: sd 1:0:0:0: rejecting I/O to offline device
kernel: I/O error in filesystem ("sdb3") meta-data dev sdb3 block 0x3bcd08       ("xfs_trans_read_buf") error 5 buf count 4096
kernel: sd 1:0:0:0: rejecting I/O to offline device
kernel: I/O error in filesystem ("sdb3") meta-data dev sdb3 block 0x3bcd08       ("xfs_trans_read_buf") error 5 buf count 4096
kernel: usb 1-5: USB disconnect, address 4
kernel: usb 1-5: new high speed USB device using ehci_hcd and address 13
kernel: usb 1-5: configuration #1 chosen from 1 choice
kernel: usb 1-6: USB disconnect, address 5
kernel: usb 1-6.2: USB disconnect, address 6
kernel: sd 1:0:0:0: rejecting I/O to device being removed
kernel: xfs_force_shutdown(sdb3,0x1) called from line 338 of file fs/xfs/xfs_rw.c.  Return address = 0xffffffff8815dc89
kernel: Filesystem "sdb3": I/O Error Detected.  Shutting down filesystem: sdb3
kernel: Please umount the filesystem, and rectify the problem(s)
kernel: xfs_force_shutdown(sdb3,0x1) called from line 338 of file fs/xfs/xfs_rw.c.  Return address = 0xffffffff8815dc89
kernel: hub 1-0:1.0: hub_port_status failed (err = -108)
kernel: hub 1-0:1.0: connect-debounce failed, port 6 disabled
kernel: hub 1-0:1.0: cannot disable port 6 (err = -108)
kernel: xfs_force_shutdown(sdb3,0x1) called from line 338 of file fs/xfs/xfs_rw.c.  Return address = 0xffffffff8815dc89
last message repeated 2 times
kernel: irq 185: nobody cared (try booting with the "irqpoll" option)
kernel: 
kernel: Call Trace: <IRQ> <ffffffff80143a3c>{__report_bad_irq+48}
kernel:        <ffffffff80143c32>{note_interrupt+425} <ffffffff8022f0a0>{usb_hcd_irq+41}
kernel:        <ffffffff8014367e>{__do_IRQ+139} <ffffffff8010cad4>{do_IRQ+60}
kernel:        <ffffffff801090c7>{default_idle+0} <ffffffff8010a9fc>{ret_from_intr+0} <EOI>
kernel:        <ffffffff80133a33>{worker_thread+0} <ffffffff801090f3>{default_idle+44}
kernel:        <ffffffff80109161>{cpu_idle+68} <ffffffff803ce779>{start_kernel+462}
kernel:        <ffffffff803ce260>{_sinittext+608}
kernel: handlers:
kernel: [<ffffffff8022f077>] (usb_hcd_irq+0x0/0x56)
last message repeated 2 times
kernel: Disabling IRQ #185


------[ unplugging USB cable, plugging firewire (no power cyclies) ]


kernel: ieee1394: Error parsing configrom for node 0-00:1023
kernel: ieee1394: Node changed: 0-00:1023 -> 0-01:1023
kernel: ieee1394: Node added: ID:BUS[0-00:1023]  GUID[0090a950000a0955]
kernel: scsi2 : SBP-2 IEEE-1394
kernel: ieee1394: sbp2: Node 0-00:1023: Using 36byte inquiry workaround
kernel: ieee1394: sbp2: Logged into SBP-2 device
kernel: ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
kernel:   Vendor: WD        Model: 2500JB External   Rev: 2.23
kernel:   Type:   Direct-Access-RBC                  ANSI SCSI revision: 04
kernel: SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
kernel: sda: Write Protect is off
kernel: sda: Mode Sense: 0c 00 00 00
kernel: sda: assuming drive cache: write through
kernel: SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
kernel: sda: Write Protect is off
kernel: sda: Mode Sense: 0c 00 00 00
kernel: sda: assuming drive cache: write through
kernel:  sda: sda1 sda2 sda3
kernel: sd 2:0:0:0: Attached scsi disk sda
kernel: XFS mounting filesystem sda3
kernel: Starting XFS recovery on filesystem: sda3 (logdev: internal)
kernel: Ending XFS recovery on filesystem: sda3 (logdev: internal)
kernel: XFS mounting filesystem sda3
kernel: Starting XFS recovery on filesystem: sda3 (logdev: internal)
kernel: Ending XFS recovery on filesystem: sda3 (logdev: internal)


------[ XFS now OK, noy working USB  ]


kernel: XFS mounting filesystem sda3
kernel: Ending clean XFS mount for filesystem: sda3
kernel: XFS mounting filesystem sda3
kernel: Ending clean XFS mount for filesystem: sda3
kernel: ieee1394: Error parsing configrom for node 0-00:1023
kernel: ieee1394: Node suspended: ID:BUS[0-00:1023]  GUID[0090a950000a0955]
kernel: ieee1394: Node changed: 0-01:1023 -> 0-00:1023
kernel: skge eth0: Link is down.

------[ reboot  ]

kernel: Kernel logging (proc) stopped.
kernel: Kernel log daemon terminating.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to