On Thu, Mar 20, 2003 at 05:01:46PM -0500, Alan Stern wrote: > On Thu, 20 Mar 2003, Dave Turner wrote: > > > On Thu, 20 Mar 2003 at 10:47am, Alan Stern wrote: > > > > > Can you post an extract from the kernel log under 2.4.21-rc5 with > > > usb-storage debugging turned on? > > > > Sure thing. > > > > Linux version 2.4.21-pre5 ([EMAIL PROTECTED]) (gcc version 2.95.3 20010315 > > (release)) #1 Wed Mar 19 16:17:04 GMT 2003 > > Believe it or not, this is failing in a very different and much more > interesting way than it did under the earlier version of Linux you posted > before. > > [Matt: Do you have any idea why (in the part of the log I snipped) the > SCSI layer issues READ-CAPACITY three times in a row when each time the > sense code indicates medium not present? Once ought to be enough. Has > this been changed in 2.5?]
No idea why this was implemented that way, but it is. AFAIK, it has not been changed. > After inserting a 1Gb Microdrive into the card reader and attempting to > mount it (following a successful MODE-SENSE): > > > usb-storage: queuecommand() called > > usb-storage: *** thread awakened. > > usb-storage: Command READ_10 (10 bytes) > > usb-storage: 28 00 00 00 00 00 00 00 08 00 9b cf > > usb-storage: Bulk command S 0x43425355 T 0x14 Trg 0 LUN 0 L 4096 F 128 CL 10 > > usb-storage: Bulk command transfer result=0 > > usb-storage: usb_stor_transfer_partial(): xfer 4096 bytes > > usb-storage: command_abort() called > > usb-storage: usb_stor_bulk_msg() returned -104 xferred 0/4096 > > So at this point the urb's completion routine has been called. -104 is > -ECONNRESET, indicating the urb was unlinked by the abort routine. That timeout should be about 20 seconds or so. > > usb-storage: usb_stor_transfer_partial(): transfer aborted > > usb-storage: Bulk data transfer result 0x3 > > usb-storage: -- transport indicates command was aborted > > usb-storage: scsi command aborted > > usb-storage: *** thread sleeping. > > usb-storage: queuecommand() called > > usb-storage: *** thread awakened. > > usb-storage: Command TEST_UNIT_READY (6 bytes) > > usb-storage: 00 00 00 00 00 00 00 00 08 00 9b cf > > usb-storage: Bulk command S 0x43425355 T 0x14 Trg 0 LUN 0 L 0 F 0 CL 6 > > uhci.c: uhci_submit_urb: urb not available to submit (status = -104) > > What's that?! Any ideas from anybody? I've never seen it before. I'm wondering if the URB didn't get aborted properly. Matt -- Matthew Dharm Home: [EMAIL PROTECTED] Maintainer, Linux USB Mass Storage Driver I think the problem is there's a nut loose on your keyboard. -- Greg to Customer User Friendly, 1/5/1999
pgp00000.pgp
Description: PGP signature