Re: JMicron 20337 (152d:2338) and 3TB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 2, 2012 at 5:09 PM, Alon Bar-Lev <alon.barlev@xxxxxxxxx> wrote:
> On Sun, Sep 2, 2012 at 4:59 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
>> On Sun, 2 Sep 2012, Alon Bar-Lev wrote:
>>
>>> I modified the patch to the following to make sure my main disk is unaffected:
>>
>>> This is what I get now, I guess detection is good now, but something
>>> in the IO is wrong, when plugged to computer's sata it works
>>> correctly.
>>>
>>> ---
>>> Sep  2 11:42:55 localhost kernel: Initializing USB Mass Storage driver...
>>> Sep  2 11:42:55 localhost kernel: scsi6 : usb-storage 2-1.1:1.0
>>> Sep  2 11:42:55 localhost kernel: usbcore: registered new interface
>>> driver usb-storage
>>> Sep  2 11:42:55 localhost kernel: USB Mass Storage support registered.
>>> Sep  2 11:42:56 localhost kernel: scsi 6:0:0:0: Direct-Access     WDC
>>> WD30 EZRX-00MMMB0          PQ: 0 ANSI: 5
>>> Sep  2 11:42:56 localhost kernel: sd 6:0:0:0: Attached scsi generic sg2 type 0
>>> Sep  2 11:42:56 localhost kernel: @ALON: apply workaround 1
>>> Sep  2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] 5860533168
>>> 512-byte logical blocks: (3.00 TB/2.72 TiB)
>>
>> Is this the same as the number of blocks you get when the drive is
>> plugged into a SATA port?
>>
>>> Sep  2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] Write Protect is off
>>> Sep  2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] Mode Sense: 28 00 00 00
>>> Sep  2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] No Caching mode page present
>>> Sep  2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] Assuming drive
>>> cache: write through
>>> Sep  2 11:42:56 localhost kernel: @ALON: apply workaround 1
>>> Sep  2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] No Caching mode page present
>>> Sep  2 11:42:56 localhost kernel: sd 6:0:0:0: [sdb] Assuming drive
>>> cache: write through
>>> Sep  2 11:42:56 localhost kernel: usb 2-1.1: reset high-speed USB
>>> device number 7 using ehci_hcd
>>> Sep  2 11:42:56 localhost kernel: usb 2-1.1: reset high-speed USB
>>> device number 7 using ehci_hcd
>>> Sep  2 11:42:56 localhost kernel: usb 2-1.1: reset high-speed USB
>>> device number 7 using ehci_hcd
>>> Sep  2 11:42:57 localhost kernel: usb 2-1.1: reset high-speed USB
>>> device number 7 using ehci_hcd
>>> Sep  2 11:42:57 localhost kernel: usb 2-1.1: reset high-speed USB
>>> device number 7 using ehci_hcd
>>> Sep  2 11:42:57 localhost kernel: sd 6:0:0:0: [sdb] Unhandled error code
>>> Sep  2 11:42:57 localhost kernel: sd 6:0:0:0: [sdb]
>>> Sep  2 11:42:57 localhost kernel: Result: hostbyte=0x07 driverbyte=0x00
>>> Sep  2 11:42:57 localhost kernel: sd 6:0:0:0: [sdb] CDB:
>>> Sep  2 11:42:57 localhost kernel: cdb[0]=0x28: 28 00 00 00 00 00 00 00 08 00
>>> Sep  2 11:42:57 localhost kernel: end_request: I/O error, dev sdb, sector 0
>>> Sep  2 11:42:57 localhost kernel: Buffer I/O error on device sdb,
>>> logical block 0
>>
>> Yep, something is wrong.  To find out what, capture a usbmon trace
>> showing what happens when the drive is plugged in (see
>> Documentation/usb/usbmon.txt for instructions).
>>
>> Alan Stern
>>
>
> ---
> Sep  2 11:53:23 alonbl2 kernel: [    0.922566] scsi 1:0:0:0:
> Direct-Access     ATA      WDC WD30EZRX-00M 80.0 PQ: 0 ANSI: 5
> Sep  2 11:53:23 alonbl2 kernel: [    0.922753] sd 1:0:0:0: [sdb]
> 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
> Sep  2 11:53:23 alonbl2 kernel: [    0.922757] sd 1:0:0:0: [sdb]
> 4096-byte physical blocks
> Sep  2 11:53:23 alonbl2 kernel: [    0.922789] sd 1:0:0:0: Attached
> scsi generic sg1 type 0
> Sep  2 11:53:23 alonbl2 kernel: [    0.922984] sd 1:0:0:0: [sdb] Write
> Protect is off
> Sep  2 11:53:23 alonbl2 kernel: [    0.923041] sd 1:0:0:0: [sdb] Write
> cache: enabled, read cache: enabled, doesn't support DPO or FUA
> ---
>
> Will do usbmon now.
>
> Thanks!
> Alon.

Attached usbmon, I hope I've done this OK.

---
Sep  2 17:23:21 localhost kernel: usb 2-1.1: new high-speed USB device
number 9 using ehci_hcd
Sep  2 17:23:21 localhost kernel: scsi7 : usb-storage 2-1.1:1.0
Sep  2 17:23:22 localhost kernel: scsi 7:0:0:0: Direct-Access     WDC
WD30 EZRX-00MMMB0          PQ: 0 ANSI: 5
Sep  2 17:23:22 localhost kernel: sd 7:0:0:0: Attached scsi generic sg2 type 0
Sep  2 17:23:22 localhost kernel: @ALON: apply workaround 1
Sep  2 17:23:22 localhost kernel: sd 7:0:0:0: [sdb] 5860533168
512-byte logical blocks: (3.00 TB/2.72 TiB)
Sep  2 17:23:22 localhost kernel: sd 7:0:0:0: [sdb] Write Protect is off
Sep  2 17:23:22 localhost kernel: sd 7:0:0:0: [sdb] Mode Sense: 28 00 00 00
Sep  2 17:23:22 localhost kernel: sd 7:0:0:0: [sdb] No Caching mode page present
Sep  2 17:23:22 localhost kernel: sd 7:0:0:0: [sdb] Assuming drive
cache: write through
Sep  2 17:23:22 localhost kernel: @ALON: apply workaround 1
Sep  2 17:23:22 localhost kernel: sd 7:0:0:0: [sdb] No Caching mode page present
Sep  2 17:23:22 localhost kernel: sd 7:0:0:0: [sdb] Assuming drive
cache: write through
---

Attachment: disk1
Description: Binary data


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux