Bug 4329 - USB-HDD were not recognized
Summary: USB-HDD were not recognized
Status: REJECTED DUPLICATE of bug 4149
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: David Brownell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-11 12:56 UTC by Felix Hammer
Modified: 2005-04-05 02:59 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.10
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Felix Hammer 2005-03-11 12:56:50 UTC
Distribution:    
  Gentoo Linux   
   
Hardware Environment:    
  Processor: P4(HT) 3.2 Ghz   
  USB-Port: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller   
    Manufacturer: Linux 2.6.10 ehci_hcd   
    Serial Number: 0000:00:1d.7   
    Speed: 480Mb/s (high)   
    Number of Ports: 8   
    Bandwidth allocated: 0 / 800 (0%)   
    Total number of interrupt requests: 0   
    Total number of isochronous requests: 0   
    USB Version:  2.00   
    Device Class: 09(hub  )   
    Device Subclass: 00   
    Device Protocol: 01   
    Maximum Default Endpoint Size: 8   
  USB-HDD:  
    There are a lot of Chips on the Board of the USB-HDD-Case:  
          ATMEL AT49BV512  
          PL-3507 04484c 
    HDD: Maxtor 120GB ATA133 
  
Software Environment:   
Hotplug   
   
Problem Description:   
I tried to connect the HDD to my PC. When i plug in i get this message: 
usb 5-7: new high speed USB device using ehci_hcd and address 6 
usb 5-7: device descriptor read/64, error -71 
usb 5-7: device descriptor read/64, error -71 
usb 5-7: new high speed USB device using ehci_hcd and address 7 
usb 5-7: device descriptor read/64, error -71 
usb 5-7: device descriptor read/64, error -71 
  
Steps to reproduce:   
plug in the device and type dmesg
Comment 1 Andrew Morton 2005-03-21 16:35:01 UTC
Felix, are you able to test a later kernel?  2.6.12-rc1 or, better, 2.6.12-rc1-mm1?

Thanks.
Comment 2 Felix Hammer 2005-03-21 22:38:02 UTC
i tried 2.6.12-rc1-mm1 
 
when i plug in i get: 
 
usb 5-7: new high speed USB device using ehci_hcd and address 4 
ACPI: No ACPI bus support for 5-7 
ACPI: No ACPI bus support for 5-7:1.0 
Initializing USB Mass Storage driver... 
usb-storage: USB Mass Storage device detected 
usb-storage: -- associate_dev 
usb-storage: Vendor: 0x067b, Product: 0x3507, Revision: 0x0001 
usb-storage: Interface Subclass: 0x06, Protocol: 0x50 
usb-storage: Transport: Bulk 
usb-storage: Protocol: Transparent SCSI 
usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1 
usb-storage: GetMaxLUN command result is 1, data is 0 
usb-storage: *** thread sleeping. 
scsi2 : SCSI emulation for USB Mass Storage devices 
usbcore: registered new driver usb-storage 
USB Mass Storage support registered. 
usb-storage: device found at 4 
usb-storage: waiting for device to settle before scanning 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Command INQUIRY (6 bytes) 
usb-storage:  12 00 00 00 24 00 
usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6 
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes 
usb-storage: Status code 0; transferred 31/31 
usb-storage: -- transfer complete 
usb-storage: Bulk command transfer result=0 
usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes 
usb-storage: Status code 0; transferred 36/36 
usb-storage: -- transfer complete 
usb-storage: Bulk data transfer result 0x0 
usb-storage: Attempting to get CSW... 
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes 
usb-storage: Status code 0; transferred 13/13 
usb-storage: -- transfer complete 
usb-storage: Bulk status result = 0 
usb-storage: Bulk Status S 0x53425355 T 0x1 R 0 Stat 0x0 
usb-storage: scsi cmd done, result=0x0 
usb-storage: *** thread sleeping. 
  Vendor: Maxtor 6  Model: Y120L0            Rev: YAR4 
  Type:   Direct-Access                      ANSI SCSI revision: 00 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Command TEST_UNIT_READY (6 bytes) 
usb-storage:  00 00 00 00 00 00 
usb-storage: Bulk Command S 0x43425355 T 0x2 L 0 F 0 Trg 0 LUN 0 CL 6 
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes 
usb-storage: Status code 0; transferred 31/31 
usb-storage: -- transfer complete 
usb-storage: Bulk command transfer result=0 
usb-storage: Attempting to get CSW... 
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes 
usb-storage: Status code 0; transferred 13/13 
usb-storage: -- transfer complete 
usb-storage: Bulk status result = 0 
usb-storage: Bulk Status S 0x53425355 T 0x2 R 0 Stat 0x0 
usb-storage: scsi cmd done, result=0x0 
usb-storage: *** thread sleeping. 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Command READ_CAPACITY (10 bytes) 
usb-storage:  25 00 00 00 00 00 00 00 00 00 
usb-storage: Bulk Command S 0x43425355 T 0x3 L 8 F 128 Trg 0 LUN 0 CL 10 
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes 
usb-storage: Status code 0; transferred 31/31 
usb-storage: -- transfer complete 
usb-storage: Bulk command transfer result=0 
usb-storage: usb_stor_bulk_transfer_buf: xfer 8 bytes 
usb-storage: Status code 0; transferred 8/8 
usb-storage: -- transfer complete 
usb-storage: Bulk data transfer result 0x0 
usb-storage: Attempting to get CSW... 
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes 
usb-storage: Status code 0; transferred 13/13 
usb-storage: -- transfer complete 
usb-storage: Bulk status result = 0 
usb-storage: Bulk Status S 0x53425355 T 0x3 R 0 Stat 0x0 
usb-storage: scsi cmd done, result=0x0 
usb-storage: *** thread sleeping. 
SCSI device sdc: 240121727 512-byte hdwr sectors (122942 MB) 
sdc: assuming drive cache: write through 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Command TEST_UNIT_READY (6 bytes) 
usb-storage:  00 00 00 00 00 00 
usb-storage: Bulk Command S 0x43425355 T 0x4 L 0 F 0 Trg 0 LUN 0 CL 6 
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes 
usb-storage: Status code 0; transferred 31/31 
usb-storage: -- transfer complete 
usb-storage: Bulk command transfer result=0 
usb-storage: Attempting to get CSW... 
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes 
usb-storage: Status code 0; transferred 13/13 
usb-storage: -- transfer complete 
usb-storage: Bulk status result = 0 
usb-storage: Bulk Status S 0x53425355 T 0x4 R 0 Stat 0x0 
usb-storage: scsi cmd done, result=0x0 
usb-storage: *** thread sleeping. 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Command READ_CAPACITY (10 bytes) 
usb-storage:  25 00 00 00 00 00 00 00 00 00 
usb-storage: Bulk Command S 0x43425355 T 0x5 L 8 F 128 Trg 0 LUN 0 CL 10 
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes 
usb-storage: Status code 0; transferred 31/31 
usb-storage: -- transfer complete 
usb-storage: Bulk command transfer result=0 
usb-storage: usb_stor_bulk_transfer_buf: xfer 8 bytes 
usb-storage: Status code 0; transferred 8/8 
usb-storage: -- transfer complete 
usb-storage: Bulk data transfer result 0x0 
usb-storage: Attempting to get CSW... 
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes 
usb-storage: Status code 0; transferred 13/13 
usb-storage: -- transfer complete 
usb-storage: Bulk status result = 0 
usb-storage: Bulk Status S 0x53425355 T 0x5 R 0 Stat 0x0 
usb-storage: scsi cmd done, result=0x0 
usb-storage: *** thread sleeping. 
SCSI device sdc: 240121727 512-byte hdwr sectors (122942 MB) 
sdc: assuming drive cache: write through 
 sdc:<7>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 
usb-storage: Bulk Command S 0x43425355 T 0x6 L 4096 F 128 Trg 0 LUN 0 CL 10 
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes 
usb-storage: Status code 0; transferred 31/31 
usb-storage: -- transfer complete 
usb-storage: Bulk command transfer result=0 
usb-storage: usb_stor_bulk_transfer_sglist: xfer 4096 bytes, 1 entries 
usb-storage: Status code 0; transferred 4096/4096 
usb-storage: -- transfer complete 
usb-storage: Bulk data transfer result 0x0 
usb-storage: Attempting to get CSW... 
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes 
usb-storage: Status code 0; transferred 13/13 
usb-storage: -- transfer complete 
usb-storage: Bulk status result = 0 
usb-storage: Bulk Status S 0x53425355 T 0x6 R 0 Stat 0x0 
usb-storage: scsi cmd done, result=0x0 
usb-storage: *** thread sleeping. 
 sdc1 
Attached scsi disk sdc at scsi2, channel 0, id 0, lun 0 
ACPI: No ACPI bus support for 2:0:0:0 
Attached scsi generic sg2 at scsi2, channel 0, id 0, lun 0,  type 0 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Bad target number (1:0) 
usb-storage: scsi cmd done, result=0x40000 
usb-storage: *** thread sleeping. 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Bad target number (2:0) 
usb-storage: scsi cmd done, result=0x40000 
usb-storage: *** thread sleeping. 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Bad target number (3:0) 
usb-storage: scsi cmd done, result=0x40000 
usb-storage: *** thread sleeping. 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Bad target number (4:0) 
usb-storage: scsi cmd done, result=0x40000 
usb-storage: *** thread sleeping. 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Bad target number (5:0) 
usb-storage: scsi cmd done, result=0x40000 
usb-storage: *** thread sleeping. 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Bad target number (6:0) 
usb-storage: scsi cmd done, result=0x40000 
usb-storage: *** thread sleeping. 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Bad target number (7:0) 
usb-storage: scsi cmd done, result=0x40000 
usb-storage: *** thread sleeping. 
usb-storage: device scan complete 
 
 
 
but i cannot mount. i get allways: 
 
SCSI error : <2 0 0 0> return code = 0x70000 
end_request: I/O error, dev sdc, sector 27 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Command READ_10 (10 bytes) 
usb-storage:  28 00 00 00 00 1c 00 00 04 00 
usb-storage: Bulk Command S 0x43425355 T 0x13ec L 2048 F 128 Trg 0 LUN 0 CL 10 
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes 
usb-storage: Status code -71; transferred 0/31 
usb-storage: -- unknown error 
usb-storage: Bulk command transfer result=4 
usb-storage: -- transport indicates error, resetting 
usb-storage: usb_stor_Bulk_reset called 
usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0 
usb-storage: Soft reset failed: -71 
usb-storage: scsi cmd done, result=0x70000 
usb-storage: *** thread sleeping. 
SCSI error : <2 0 0 0> return code = 0x70000 
end_request: I/O error, dev sdc, sector 28 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Command READ_10 (10 bytes) 
usb-storage:  28 00 00 00 00 1d 00 00 03 00 
usb-storage: Bulk Command S 0x43425355 T 0x13ed L 1536 F 128 Trg 0 LUN 0 CL 10 
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes 
usb-storage: Status code -71; transferred 0/31 
usb-storage: -- unknown error 
usb-storage: Bulk command transfer result=4 
usb-storage: -- transport indicates error, resetting 
usb-storage: usb_stor_Bulk_reset called 
usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0 
usb-storage: Soft reset failed: -71 
usb-storage: scsi cmd done, result=0x70000 
usb-storage: *** thread sleeping. 
SCSI error : <2 0 0 0> return code = 0x70000 
end_request: I/O error, dev sdc, sector 29 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Command READ_10 (10 bytes) 
usb-storage:  28 00 00 00 00 1e 00 00 02 00 
usb-storage: Bulk Command S 0x43425355 T 0x13ee L 1024 F 128 Trg 0 LUN 0 CL 10 
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes 
usb-storage: Status code -71; transferred 0/31 
usb-storage: -- unknown error 
usb-storage: Bulk command transfer result=4 
usb-storage: -- transport indicates error, resetting 
usb-storage: usb_stor_Bulk_reset called 
usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0 
usb-storage: Soft reset failed: -71 
usb-storage: scsi cmd done, result=0x70000 
usb-storage: *** thread sleeping. 
SCSI error : <2 0 0 0> return code = 0x70000 
end_request: I/O error, dev sdc, sector 30 
usb-storage: queuecommand called 
usb-storage: *** thread awakened. 
usb-storage: Command READ_10 (10 bytes) 
usb-storage:  28 00 00 00 00 1f 00 00 01 00 
usb-storage: Bulk Command S 0x43425355 T 0x13ef L 512 F 128 Trg 0 LUN 0 CL 10 
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes 
usb-storage: Status code -71; transferred 0/31 
usb-storage: -- unknown error 
usb-storage: Bulk command transfer result=4 
usb-storage: -- transport indicates error, resetting 
usb-storage: usb_stor_Bulk_reset called 
usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0 
usb-storage: Soft reset failed: -71 
usb-storage: scsi cmd done, result=0x70000 
usb-storage: *** thread sleeping. 
SCSI error : <2 0 0 0> return code = 0x70000 
end_request: I/O error, dev sdc, sector 31 
Comment 3 Felix Hammer 2005-03-22 11:56:24 UTC
i dont know why, but today i tried 2.6.12-rc1 with latest mm1 patch again. i 
get following when pluggin in: 
 
usb 5-7: new high speed USB device using ehci_hcd and address 4 
usb 5-7: device descriptor read/all, error -71 
usb 5-7: new high speed USB device using ehci_hcd and address 5 
usb 5-7: unable to read config index 0 descriptor/start 
usb 5-7: can't read configurations, error -71 
usb 5-7: new high speed USB device using ehci_hcd and address 6 
usb 5-7: device descriptor read/64, error -71 
usb 5-7: device descriptor read/64, error -71 
usb 5-7: new high speed USB device using ehci_hcd and address 7 
usb 5-7: unable to read config index 0 descriptor/start 
usb 5-7: can't read configurations, error -71 
usb 5-7: new high speed USB device using ehci_hcd and address 8 
usb 5-7: device descriptor read/all, error -71 
usb 5-7: new high speed USB device using ehci_hcd and address 9 
usb 5-7: device descriptor read/all, error -71 
usb 5-7: new high speed USB device using ehci_hcd and address 10 
usb 5-7: device descriptor read/64, error -71 
usb 5-7: device descriptor read/64, error -71 
usb 5-7: new high speed USB device using ehci_hcd and address 11 
usb 5-7: device descriptor read/64, error -71 
usb 5-7: device descriptor read/64, error -71 
 
Comment 4 Matthew Dharm 2005-03-22 12:00:43 UTC
This looks like you're still having HCD problems.  The EHCI maintainer probably
needs to look at this.
Comment 5 David Brownell 2005-03-23 22:59:39 UTC
The last time we got lots of "-71" errors (-EPROTO) it was due 
to missing delays in the hub driver.  See if 2.6.11 or 2.6.12-rc1 
has those issues.  We might need to lengthen the TRSTRCY timeout 
past the minimum; hard to say. 
 
The "can't mount" issue looks to be another case where usb-storage 
is only using the weak/ineffectual reset mechanism rather than the 
more robust port reset that for example Windows uses.  So it gets 
an error and can't recover.  Why it gets the error is another issue; 
this might need an unusual_devices entry. 
 
 
Comment 6 Felix Hammer 2005-03-23 23:15:09 UTC
i tried 2.6.11, 2.6.12-rc1 and 2.6.12-rc1-mm1.  
all of them has those issue. 
can i help you debugging? can i send you more information, output, ...? 
please tell me how i can help. 
Comment 7 David Brownell 2005-04-04 13:27:21 UTC
No bright ideas here other than changing drivers/usb/core/hub.c 
near the TRSTRCY comment ... make the msleep(10) read msleep(20) 
or more, see if that makes a difference. 
 
Comment 8 David Brownell 2005-04-04 13:48:25 UTC
I think this report actually covers two bugs.  One's the 
one seen elsewhere with enumeration being unhappy; that's 
what I suggested the TRSTRCY tweak to address.  The other 
is a usb-storage/SCSI error handling issue (one of several). 
 

*** This bug has been marked as a duplicate of 4149 ***
Comment 9 Alan Stern 2005-04-04 14:51:27 UTC
That SCSI error is the old "drive reports one more sector than it really has"
bug.  It's a known problem with the PL-3507 controller.  The problem has already
been fixed in the latest USB developement kernels; the fix is probably in
2.6.12-rc2.  Alternatively, you could work around the problem by turning off
support for EFI GUID Partitions in the kernel configuration, under File
systems/Partition Types.
Comment 10 Felix Hammer 2005-04-05 02:59:14 UTC
for me this works:  
 
i disabled following usbcore-options: 
#options usbcore use_both_schemes=y 
#options usbcore old_scheme_first=y 
(some people told me to use this for getting more speed with usb-stick) 
 
now it all works fine with the original kernel-2.6.11  

Note You need to log in before you can comment on or make changes to this bug.