[Bug 200517] WD Elements USB fails after few GB write

2015-06-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200517

--- Comment #6 from braddeic...@hotmail.com ---
Hi, sorry for the delay, the longer test catches it failing.  After this test
and the other errors the activity light is left blinking on the USB drive with
no data being passed.

[0.2.4] - Mass Storage Test Parameters:

1) Toggle I/O mode: Read and Write
2) Toggle I/O size: Random
3) Toggle I/O delay: None
4) Toggle I/O offset: Start Of Disk
5) Toggle I/O area: Complete Disk
6) Toggle I/O pattern: Fixed
7) Toggle try invalid SCSI command: YES
8) Toggle try invalid wrapper block: YES
9) Toggle try invalid MaxPacketSize: NO
   10) Toggle try last Logical Block Address: YES
   11) Toggle I/O lun: 0
   12) Set maximum number of errors: -1
   13) Set test duration: 3600 seconds
   14) Toggle try aborted write transfer: NO
   15) Toggle request sense on error: NO
   16) Toggle try all LUN: NO
   17) Toggle try too short wrapper block: NO
   20) Reset parameters
   30) Start test (VID=0x1058, PID=0x107c)
   40) Select another device
x) Return to previous menu 

30
Attaching to: ugen0.3: Elements 107C Western Digital at usbus0 @ iface 0
Resetting device ...
Testing SCSI commands ...
Disk reports a capacity of LBA=732558335 and BS=4096
INFO: Blocksize is not 512 bytes
Trying invalid SCSI command: ERROR: Data transfer: 6
Result as expected
Trying invalid SCSI command: ERROR: Data transfer: 6
Result as expected
Trying invalid SCSI command: ERROR: Data transfer: 6
Result as expected
Trying invalid SCSI command: ERROR: Data transfer: 6
Result as expected
Trying invalid USB wrapper block signature: ERROR: Data transfer: 6
Result as expected
Trying invalid USB wrapper block signature: ERROR: Data transfer: 6
Result as expected
Trying invalid USB wrapper block signature: ERROR: Data transfer: 6
Result as expected
Trying invalid USB wrapper block signature: ERROR: Data transfer: 6
Result as expected
ERROR: CSW status: 1
INFO: Prevent medium removal failed
ERROR: Data transfer: 6
INFO: Read Table Of Content failed
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
Highest readable LBA: 732558335 (OK), Capacity is 3000558 MBytes
Highest testable LBA: 65535
Setting up initial data pattern, LBA limit = 65535 ... ERROR: CSW status: 1
ERROR: do_write_10
FAILED
Setting up initial data pattern, LBA limit = 32767 ... ERROR: CSW status: 1
ERROR: do_write_10
FAILED
Setting up initial data pattern, LBA limit = 16383 ... ERROR: CSW status: 1
ERROR: do_write_10
FAILED
Setting up initial data pattern, LBA limit = 8191 ... SUCCESS
Starting test ...

STATUS: ID=66, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=67, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=68, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=70, RX=33550336 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20,
DERR=0
STATUS: ID=71, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=72, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=73, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=74, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=76, RX=19619840 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20,
DERR=0
STATUS: ID=77, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=78, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=80, RX=0 bytes/sec, TX=54566912 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=81, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=82, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=83, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=84, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=85, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=86, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=87, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=88, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=90, RX=45006848 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=91, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=92, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=93, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=94, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, 

[Bug 200517] WD Elements USB fails after few GB write

2015-05-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200517

--- Comment #4 from braddeic...@hotmail.com ---
[0.2.4] - Mass Storage Test Parameters:

1) Toggle I/O mode: Read and Write
2) Toggle I/O size: Random
3) Toggle I/O delay: None
4) Toggle I/O offset: Start Of Disk
5) Toggle I/O area: Complete Disk
6) Toggle I/O pattern: Fixed
7) Toggle try invalid SCSI command: YES
8) Toggle try invalid wrapper block: YES
9) Toggle try invalid MaxPacketSize: NO
   10) Toggle try last Logical Block Address: YES
   11) Toggle I/O lun: 0
   12) Set maximum number of errors: -1
   13) Set test duration: 60 seconds
   14) Toggle try aborted write transfer: NO
   15) Toggle request sense on error: NO
   16) Toggle try all LUN: NO
   17) Toggle try too short wrapper block: NO
   20) Reset parameters
   30) Start test (VID=0x1058, PID=0x107c)
   40) Select another device
x) Return to previous menu

30
Attaching to: ugen0.3: Elements 107C Western Digital at usbus0 @ iface 0
Resetting device ...
Testing SCSI commands ...
Disk reports a capacity of LBA=732558335 and BS=4096
INFO: Blocksize is not 512 bytes
Trying invalid SCSI command: ERROR: Data transfer: 6
Result as expected
Trying invalid SCSI command: ERROR: Data transfer: 6
Result as expected
Trying invalid SCSI command: ERROR: Data transfer: 6
Result as expected
Trying invalid SCSI command: ERROR: Data transfer: 6
Result as expected
Trying invalid USB wrapper block signature: ERROR: Data transfer: 6
Result as expected
Trying invalid USB wrapper block signature: ERROR: Data transfer: 6
Result as expected
Trying invalid USB wrapper block signature: ERROR: Data transfer: 6
Result as expected
Trying invalid USB wrapper block signature: ERROR: Data transfer: 6
Result as expected
ERROR: CSW status: 1
INFO: Prevent medium removal failed
ERROR: Data transfer: 6
INFO: Read Table Of Content failed
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
ERROR: Data transfer: 6
ERROR: do_read_10
Highest readable LBA: 732558335 (OK), Capacity is 3000558 MBytes
Highest testable LBA: 65535
Setting up initial data pattern, LBA limit = 65535 ... ERROR: CSW status: 1
ERROR: do_write_10
FAILED
Setting up initial data pattern, LBA limit = 32767 ... ERROR: CSW status: 1
ERROR: do_write_10
FAILED
Setting up initial data pattern, LBA limit = 16383 ... ERROR: CSW status: 1
ERROR: do_write_10
FAILED
Setting up initial data pattern, LBA limit = 8191 ... SUCCESS
Starting test ...

STATUS: ID=66, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=67, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=68, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=69, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=70, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=72, RX=0 bytes/sec, TX=67100672 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=73, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=74, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=75, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=77, RX=53170176 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=78, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=79, RX=0 bytes/sec, TX=21016576 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=81, RX=33550336 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20,
DERR=0
STATUS: ID=82, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=83, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=84, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=85, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=86, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=87, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=88, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=90, RX=45006848 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=91, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=93, RX=67100672 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=94, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=95, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=96, RX=0 bytes/sec, TX=33550336 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=97, RX=33550336 bytes/sec, TX=0 bytes/sec, ERR=13, RST=20, DERR=0
STATUS: ID=98, RX=33550336 

[Bug 200517] WD Elements USB fails after few GB write

2015-05-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200517

--- Comment #5 from Hans Petter Selasky hsela...@freebsd.org ---
Cool!

Can you set:

 13) Set test duration: 60 seconds

to 3600

seconds. And see if the number of errors increase during the test-run.

--HPS

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


[Bug 200517] WD Elements USB fails after few GB write

2015-05-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200517

Bug ID: 200517
   Summary: WD Elements USB fails after few GB write
   Product: Base System
   Version: 10.1-RELEASE
  Hardware: amd64
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: usb
  Assignee: freebsd-usb@FreeBSD.org
  Reporter: braddeic...@hotmail.com

I've hammered this drive in windows and written all 3TB to it without error.

In Freebsd I'm trying to copy a zfs snapshot to it, between 5-37GB the MB/s
goes to 0 and I get the following in dmesg

ugen0.3: Western Digital at usbus0
umass0: Western Digital Elements 107C, class 0/0, rev 2.10/10.65, addr 3 on
usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x4101
umass0:5:0:-1: Attached to scbus5
da6 at umass-sim0 bus 0 scbus5 target 0 lun 0
da6: WD Elements 107C 1065 Fixed Direct Access SCSI-6 device
da6: Serial Number removed
da6: 40.000MB/s transfers
da6: 2861556MB (732558336 4096 byte sectors: 255H 63S/T 45599C)
da6: quirks=0x2NO_6_BYTE
GEOM_ELI: Device da6.eli created.
GEOM_ELI: Encryption: AES-XTS 128
GEOM_ELI: Crypto: software
(da6:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 95 ef 21 00 00 10 00
(da6:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da6:umass-sim0:0:0:0): Retrying command
(da6:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 95 ef 21 00 00 10 00
(da6:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da6:umass-sim0:0:0:0): Retrying command
(da6:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 95 ef 21 00 00 10 00
(da6:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da6:umass-sim0:0:0:0): Retrying command
(da6:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 95 ef 21 00 00 10 00
(da6:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da6:umass-sim0:0:0:0): Retrying command
(da6:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 95 ef 21 00 00 10 00
(da6:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da6:umass-sim0:0:0:0): Error 5, Retries exhausted
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40247693312, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40247824384, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40247955456, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40248086528, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40248217600, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40248348672, length=8192)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40248356864, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40248487936, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40248619008, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40247562240, length=131072)]
(da6:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 00 42 00 00 02 00
(da6:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da6:umass-sim0:0:0:0): Retrying command
(da6:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 00 42 00 00 02 00
(da6:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da6:umass-sim0:0:0:0): Retrying command
(da6:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 00 42 00 00 02 00
(da6:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da6:umass-sim0:0:0:0): Retrying command
(da6:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 00 42 00 00 02 00
(da6:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da6:umass-sim0:0:0:0): Retrying command
(da6:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 00 42 00 00 02 00
(da6:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da6:umass-sim0:0:0:0): Error 5, Retries exhausted
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40248750080, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40248881152, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40249012224, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40249143296, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40249274368, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40249405440, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40249536512, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40249667584, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).
da6.eli[WRITE(offset=40249798656, length=131072)]
GEOM_ELI: Crypto WRITE request failed (error=5).

[Bug 200517] WD Elements USB fails after few GB write

2015-05-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200517

Hans Petter Selasky hsela...@freebsd.org changed:

   What|Removed |Added

 CC||hsela...@freebsd.org

--- Comment #1 from Hans Petter Selasky hsela...@freebsd.org ---
Hi,

Can you decode the SCSI command and verify that the LBA accessed is within the
limits of your disk?

--HPS

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


[Bug 200517] WD Elements USB fails after few GB write

2015-05-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200517

--- Comment #2 from braddeic...@hotmail.com ---
I don't know how to do that, If that offset is decimal LBA then the cylinders
appears too high, but I don't know what i'm doing here :)
(http://homepage2.nifty.com/cars/misc/chs2lba.html) 

da6: 2861556MB (732558336 4096 byte sectors: 255H 63S/T 45599C)

diskinfo -c da6
da6
4096# sectorsize
3000558944256   # mediasize in bytes (2.7T)
732558336   # mediasize in sectors
0   # stripesize
0   # stripeoffset
45599   # Cylinders according to firmware.
255 # Heads according to firmware.
63  # Sectors according to firmware.



I tried to dump to UFS instead to rule out ZFS and managed to panic the kernel
with a page fault.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


[Bug 200517] WD Elements USB fails after few GB write

2015-05-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200517

--- Comment #3 from Hans Petter Selasky hsela...@freebsd.org ---
Hi,

In 11-current, there is a tool in:

/usr/src/tools/tools/usbtest

Which can test the disk at USB-level?

Could you run that tool, and set it to R/W mode.

Beware: The disk will be erased.

Also try to read the broken sector:

dd if=/dev/daX iseek=78608776 bs=8192 count=1 of=/dev/null


Windows is typically not very good hammering the disk :-( You need special
software for this, like usbtest.

--HPS

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org