On Mon, 2013-05-06 at 12:35 +0000, Ming Lei wrote:
> Robert,
> 
> Thanks for your so quick response.
> 
> The usbmon your provided is very helpful, and we can see the problem
> happens on the below ATA commands which should be cypress private
> protocol:
> 
> f6f70d80 1448330528 S Bo:1:010:2 -115 31 = 55534243 80000000 00020000
> 80001024 2480fe01 00000000 000000ec 000000
> f6f70d80 1448330596 C Bo:1:010:2 0 31 >
> eff14c00 1448330657 S Bi:1:010:1 -115 512 <
> eff14c00 1448333472 C Bi:1:010:1 -121 13 = 55534253 80000000 00000000 00
> f6f70d80 1448333517 S Bi:1:010:1 -115 13 <
> f6f70d80 1456046737 C Bi:1:010:1 -104 0
> f3d04900 1456046808 S Co:1:001:0 s 23 03 0004 0001 0000 0
> f3d04900 1456046815 C Co:1:001:0 0 0
> 
> Looks the srb->sdb.length isn't matched with ATA's sector count any more
> now, and I try to figure out one workaround which is built on raring(see the
> images on below link), and could you install the images and feedback the
> result? BTW, the patch is still under the link.
> 
>          http://kernel.ubuntu.com/~ming/bugs/1176355/v1/
> 
> Also could you get the usdmon on 12.04 so that I can compare that what is
> the correct ATA command sequences?
> 
> Thanks,
> 

I installed your patched kernel. dmesg:

[  104.712099] usb 1-1: new high-speed USB device number 6 using
ehci-pci
[  104.845857] usb 1-1: New USB device found, idVendor=14cd,
idProduct=6116
[  104.845868] usb 1-1: New USB device strings: Mfr=1, Product=3,
SerialNumber=2
[  104.845875] usb 1-1: Product: USB 2.0  SATA BRIDGE   
[  104.845881] usb 1-1: Manufacturer: Super Top   
[  104.845886] usb 1-1: SerialNumber: M6116018VF16
[  104.908449] Initializing USB Mass Storage driver...
[  104.908573] usbcore: registered new interface driver usb-storage
[  104.908576] USB Mass Storage support registered.
[  104.935146] scsi2 : usb-storage 1-1:1.0
[  104.935268] usbcore: registered new interface driver ums-cypress
[  105.932998] scsi 2:0:0:0: Direct-Access     WDC WD50 00BEVT-22A0RT0
PQ: 0 ANSI: 0
[  105.936973] sd 2:0:0:0: Attached scsi generic sg2 type 0
[  105.939144] sd 2:0:0:0: [sdb] 976773168 512-byte logical blocks: (500
GB/465 GiB)
[  105.939892] sd 2:0:0:0: [sdb] Write Protect is off
[  105.939900] sd 2:0:0:0: [sdb] Mode Sense: 03 00 00 00
[  105.940650] sd 2:0:0:0: [sdb] No Caching mode page present
[  105.940658] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[  105.944139] sd 2:0:0:0: [sdb] No Caching mode page present
[  105.944148] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[  105.962181]  sdb: sdb1
[  105.964643] sd 2:0:0:0: [sdb] No Caching mode page present
[  105.964654] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[  105.964661] sd 2:0:0:0: [sdb] Attached SCSI disk
[  107.961517] sd 2:0:0:0: [sdb] Unhandled sense code
[  107.961527] sd 2:0:0:0: [sdb]  
[  107.961532] Result: hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
[  107.961538] sd 2:0:0:0: [sdb]  
[  107.961542] Sense Key : Hardware Error [current] 
[  107.961551] sd 2:0:0:0: [sdb]  
[  107.961557] Add. Sense: No additional sense information
[  107.961563] sd 2:0:0:0: [sdb] CDB: 
[  107.961567] ATA command pass through(16): 85 08 2e 00 00 00 00 00 00
00 00 00 00 00 ec 00
[  141.469388] sd 2:0:0:0: [sdb] Invalid command failure
[  141.469399] sd 2:0:0:0: [sdb]  
[  141.469404] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  141.469410] sd 2:0:0:0: [sdb]  
[  141.469414] Sense Key : Illegal Request [current] 
[  141.469423] sd 2:0:0:0: [sdb]  
[  141.469430] Add. Sense: Invalid command operation code
[  141.469436] sd 2:0:0:0: [sdb] CDB: 
[  141.469440] Read(10): 28 00 3a 38 4b bf 00 00 08 00
[  141.469463] end_request: critical target error, dev sdb, sector
976767935
[  141.469471] quiet_error: 42 callbacks suppressed
[  141.469478] Buffer I/O error on device sdb1, logical block 488383936
[  141.469485] Buffer I/O error on device sdb1, logical block 488383937
[  141.469491] Buffer I/O error on device sdb1, logical block 488383938
[  141.469496] Buffer I/O error on device sdb1, logical block 488383939
[  152.635436] sd 2:0:0:0: [sdb] Invalid command failure
[  152.635443] sd 2:0:0:0: [sdb]  
[  152.635448] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  152.635452] sd 2:0:0:0: [sdb]  
[  152.635455] Sense Key : Illegal Request [current] 
[  152.635462] sd 2:0:0:0: [sdb]  
[  152.635468] Add. Sense: Invalid command operation code
[  152.635472] sd 2:0:0:0: [sdb] CDB: 
[  152.635475] Read(10): 28 00 3a 38 4b bf 00 00 02 00
[  152.635493] end_request: critical target error, dev sdb, sector
976767935
[  152.635500] Buffer I/O error on device sdb1, logical block 488383936
[  163.801482] sd 2:0:0:0: [sdb] Invalid command failure
[  163.801491] sd 2:0:0:0: [sdb]  
[  163.801495] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  163.801499] sd 2:0:0:0: [sdb]  
[  163.801502] Sense Key : Illegal Request [current] 
[  163.801509] sd 2:0:0:0: [sdb]  
[  163.801515] Add. Sense: Invalid command operation code
[  163.801519] sd 2:0:0:0: [sdb] CDB: 
[  163.801522] Read(10): 28 00 3a 38 4b c1 00 00 06 00
[  163.801540] end_request: critical target error, dev sdb, sector
976767937
[  163.801548] Buffer I/O error on device sdb1, logical block 488383937
[  163.801553] Buffer I/O error on device sdb1, logical block 488383938
[  163.801558] Buffer I/O error on device sdb1, logical block 488383939
[  174.967523] sd 2:0:0:0: [sdb] Invalid command failure
[  174.967531] sd 2:0:0:0: [sdb]  
[  174.967536] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  174.967540] sd 2:0:0:0: [sdb]  
[  174.967543] Sense Key : Illegal Request [current] 
[  174.967551] sd 2:0:0:0: [sdb]  
[  174.967556] Add. Sense: Invalid command operation code
[  174.967561] sd 2:0:0:0: [sdb] CDB: 
[  174.967564] Read(10): 28 00 3a 38 4c 2f 00 00 08 00
[  174.967581] end_request: critical target error, dev sdb, sector
976768047
[  174.967590] Buffer I/O error on device sdb1, logical block 488383992
[  174.967596] Buffer I/O error on device sdb1, logical block 488383993
[  174.967600] Buffer I/O error on device sdb1, logical block 488383994
[  174.967604] Buffer I/O error on device sdb1, logical block 488383995
[  174.973108] sd 2:0:0:0: [sdb] Invalid command failure
[  174.973116] sd 2:0:0:0: [sdb]  
[  174.973120] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  174.973125] sd 2:0:0:0: [sdb]  
[  174.973128] Sense Key : Illegal Request [current] 
[  174.973135] sd 2:0:0:0: [sdb]  
[  174.973141] Add. Sense: Invalid command operation code
[  174.973146] sd 2:0:0:0: [sdb] CDB: 
[  174.973148] Read(6): 08 00 00 00 08 00
[  174.973161] end_request: critical target error, dev sdb, sector 0
[  174.973168] Buffer I/O error on device sdb, logical block 0
[  174.974227] sd 2:0:0:0: [sdb] Invalid command failure
[  174.974232] sd 2:0:0:0: [sdb]  
[  174.974235] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  174.974239] sd 2:0:0:0: [sdb]  
[  174.974241] Sense Key : Illegal Request [current] 
[  174.974247] sd 2:0:0:0: [sdb]  
[  174.974252] Add. Sense: Invalid command operation code
[  174.974256] sd 2:0:0:0: [sdb] CDB: 
[  174.974259] Read(6): 08 00 00 00 08 00
[  174.974270] end_request: critical target error, dev sdb, sector 0
[  174.974275] Buffer I/O error on device sdb, logical block 0
[  174.975351] sd 2:0:0:0: [sdb] Invalid command failure
[  174.975357] sd 2:0:0:0: [sdb]  
[  174.975360] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  174.975364] sd 2:0:0:0: [sdb]  
[  174.975366] Sense Key : Illegal Request [current] 
[  174.975372] sd 2:0:0:0: [sdb]  
[  174.975376] Add. Sense: Invalid command operation code
[  174.975381] sd 2:0:0:0: [sdb] CDB: 
[  174.975383] Read(6): 08 00 00 00 08 00
[  174.975394] end_request: critical target error, dev sdb, sector 0
[  174.975399] Buffer I/O error on device sdb, logical block 0

I'll try to run a monitor on the older machine later.
-- 
Robert

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1176355

Title:
  Can't access USB external disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1176355/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to