Re: USB3 SATA enclosure

2012-12-10 Thread Hans Petter Selasky
On Tuesday 11 December 2012 01:27:07 Erich Dollansky wrote:
> Hi,
> 
> On Mon, 10 Dec 2012 16:29:29 -0500
> 
> Mike Tancsa  wrote:
> > I picked up a USB3 sata enclosure and was surprised at the low speeds
> > I was getting.  I should probably just stick with eSata instead, but
> > has anyone got any decent throughput on USB3 drives ?
> 
> I have one. It achieves what is expected from USB3. But it was not
> recognised at the beginning.
> 
> > This one seems to be coming up USB2 speeds
> > 
> > 
> > ugen0.5:  at usbus0, cfg=0 md=HOST
> > spd=HIGH (480Mbps) pwr=ON
> 
> It seems that I have the same.
> 
> As I use it only randomly, I have had to notice that it is not
> recognised as USB3 on 10. either anymore.
> 
> Something got changed which stopped it from working.

We've only changed some reset timings. See:

sysctl -a hw.usb

--HPS
___
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"


Re: USB Harddrive g_vfs_done() Errors

2012-12-10 Thread robert_cargil
Hi, Windows operating systems and Linux will hide these errors from the user 
interface. They silently reset the drive when such errors occur and go on. Such 
a reset sequence can be noticed by that the device is not responding for 
several hundred milliseconds. There is no reason that USB traffic should stop 
at the USB host side, except for a known lost interrupt bug. See the 
hw.usb.ehci.lostintrbug sysctl. If this variable is set and you still see 
errors, then there is most likely a USB firmware error in your device and not 
FreeBSD that makes the so-called USB endpoints on the device side stop receving 
data suddenly. You can verify my claims by checking the USB traffic using 
usbdump -i usbusX -f Y . --HPS
 Thank you for your reply.

 I see I mistakenly wrote Western Digital USB 2gig drive. I meant to write 2 
terrabyte drive. Both usb drives that I am having errors writing to are the 
Western Digital 2 terrabyte drives. Both are formatted msdosfs.

 I added hw.usb.ehci.lostintrbug=1 to my /boot/loader.conf.

 Verified it was set:

 sysctl -a | grep hw.usb.ehci.lostintrbug
hw.usb.ehci.lostintrbug: 1

 Any file operation immediately fails with the g_vfs_errors in 
/var/log/messages. Even just simply touching a new file from a shell at the 
root of the USB drive fails. Reading from the drive works perfectly.

 I ran usbdump before trying any IO on the the USB drive. This is the output:

 sudo usbdump -i usbus1 -f 3
 15:41:24.450550 usbus1.3 SUBM-BULK-EP=0002,SPD=HIGH,NFR=1,SLEN=32,IVAL=0
 15:41:24.450678 usbus1.3 
DONE-BULK-EP=0002,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0
 15:41:24.450687 usbus1.3 SUBM-BULK-EP=0081,SPD=HIGH,NFR=1,SLEN=0,IVAL=0
 15:41:24.835080 usbus1.3 
DONE-BULK-EP=0081,SPD=HIGH,NFR=1,SLEN=32768,IVAL=0,ERR=0
 15:41:24.835099 usbus1.3 SUBM-BULK-EP=0081,SPD=HIGH,NFR=1,SLEN=0,IVAL=0
 15:41:24.835180 usbus1.3 
DONE-BULK-EP=0081,SPD=HIGH,NFR=1,SLEN=16,IVAL=0,ERR=0
 15:42:00.986199 usbus1.3 SUBM-BULK-EP=0002,SPD=HIGH,NFR=1,SLEN=32,IVAL=0
 15:42:00.986334 usbus1.3 
DONE-BULK-EP=0002,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0
 I checked smartctl for the drive and it showed that the overall self-assesment 
test result: PASSED

 Thank you for your help in trying to track down what the problem is.
___
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"


Re: USB3 SATA enclosure

2012-12-10 Thread Erich Dollansky
Hi,

On Mon, 10 Dec 2012 16:29:29 -0500
Mike Tancsa  wrote:

> I picked up a USB3 sata enclosure and was surprised at the low speeds
> I was getting.  I should probably just stick with eSata instead, but
> has anyone got any decent throughput on USB3 drives ?

I have one. It achieves what is expected from USB3. But it was not
recognised at the beginning.
> 
> This one seems to be coming up USB2 speeds
> 
> 
> ugen0.5:  at usbus0, cfg=0 md=HOST
> spd=HIGH (480Mbps) pwr=ON
> 
It seems that I have the same.

As I use it only randomly, I have had to notice that it is not
recognised as USB3 on 10. either anymore.

Something got changed which stopped it from working.

Erich
___
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"


USB3 SATA enclosure

2012-12-10 Thread Mike Tancsa
I picked up a USB3 sata enclosure and was surprised at the low speeds I
was getting.  I should probably just stick with eSata instead, but has
anyone got any decent throughput on USB3 drives ?

This one seems to be coming up USB2 speeds


ugen0.5:  at usbus0, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0210
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x2109
  idProduct = 0x0700
  bcdDevice = 0x0005
  iManufacturer = 0x0001  
  iProduct = 0x0002  
  iSerialNumber = 0x0003  <6121>
  bNumConfigurations = 0x0001

ugen0.5:  at usbus0, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON


 Configuration index 0

bLength = 0x0009
bDescriptorType = 0x0002
wTotalLength = 0x0020
bNumInterfaces = 0x0001
bConfigurationValue = 0x0001
iConfiguration = 0x  
bmAttributes = 0x00c0
bMaxPower = 0x0001

Interface 0
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x
  bAlternateSetting = 0x
  bNumEndpoints = 0x0002
  bInterfaceClass = 0x0008
  bInterfaceSubClass = 0x0002
  bInterfaceProtocol = 0x0050
  iInterface = 0x  

 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0081  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200
bInterval = 0x0001
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0002  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200
bInterval = 0x0001
bRefresh = 0x
bSynchAddress = 0x




xhci0@pci0:4:0:0:   class=0x0c0330 card=0x20088086 chip=0x01941033
rev=0x04 hdr=0x00
vendor = 'NEC Corporation'
device = 'uPD720200 USB 3.0 Host Controller'
class  = serial bus
subclass   = USB
bar   [10] = type Memory, range 64, base 0xfb90, size 8192, enabled
cap 01[50] = powerspec 3  supports D0 D3  current D0
cap 05[70] = MSI supports 8 messages, 64 bit
cap 11[90] = MSI-X supports 8 messages in map 0x10
cap 10[a0] = PCI-Express 2 endpoint max data 128(128) link x1(x1)
 speed 5.0(5.0)
ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected
ecap 0003[140] = Serial 1 
ecap 0018[150] = unknown 1
  PCI-e errors = Correctable Error Detected
 Unsupported Request Detected
 Corrected = Advisory Non-Fatal Error

RELENG_9 from yesterday.

When connected, it comes up
ugen0.5:  at usbus0
umass0:  on usbus0
umass0:  8070i (ATAPI) over Bulk-Only; quirks = 0x4000
umass0:13:0:-1: Attached to scbus13
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
da1 at umass-sim0 bus 0 scbus13 target 0 lun 0
da1:  Fixed Direct Access SCSI-2 device
da1: 40.000MB/s transfers
da1: 1907729MB (3907029165 512 byte sectors: 255H 63S/T 243201C)

1(cage)# camcontrol inquiry 13:0:0
pass6:  Fixed Direct Access SCSI-2 device
pass6: Serial Number 6121
pass6: 40.000MB/s transfers
0(cage)#


---Mike


-- 
---
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, m...@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/
___
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"


Current problem reports assigned to freebsd-usb@FreeBSD.org

2012-12-10 Thread FreeBSD bugmaster
Note: to view an individual PR, use:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.


S Tracker  Resp.  Description

o usb/174254   usbMIDI keyboard not recognised
o usb/173722   usbXHCI driver bug after suspend to ram (ACPI S3 mode)
o usb/173666   usb[usb] [libusb] usb_reset() behavior different between 
o usb/173616   usbLG USB DVD-RW USB STALL
o usb/173503   usbAdd IDs for Huawei K3770 and K4507
o usb/173182   usbusbus appears as a network device
o usb/172937   usbFreeBSD 9.1-RC2 usb3 port disconnects
o usb/172633   usbSony Cybershot not recognized as USB mem stick
o usb/172199   usbhigh interrupts load xhci
o usb/171354   usb[umass] Medium not present error on flash drive [regre
o usb/171262   usbplug in sdhc via usb reader reboots machine
o usb/171197   usbADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1
o usb/170699   usbFreeBSD 9.0 Doesn't list HDD or its partitions in part
o usb/170688   usbpatch][usbdevs][wlan] Patch for ASUS Black Diamond USB
o usb/170606   usbr239222 kernel panic at boot - usb locking issue
o usb/170358   usb[ums] Wrong (duplicate) button numbers
o usb/170123   usb[umass] HP v210w USB stick not supported
o usb/169935   usb[keyboard] Unable use USB keyboard while panic
o usb/169789   usb[u3g] [patch] add support for huawei e3131
o usb/169461   usb[ugen] USB2 high-speed device detected as full speed
o usb/169428   usb[ugen] ugen not detecting all endpoints on device [reg
o usb/168551   usb[umass] Issues with embedded card reader (Laptop ASUS 
o usb/168132   usb[umass] MATSHITA memory card size reported wrong, moun
o usb/167847   usb[ural] dlink dwl-122g e crashes(?) when trying wap2 cr
o usb/167001   usb[USB] [PATCH] add support for Smart G2 64MB memory key
o usb/165815   usb[usbdevs] [patch] add k3772z 3g modem support
o usb/165163   usb[keyboard] The USB RF keyboard and mouse become non-re
o usb/164058   usb[umass] Lexar 8GB USB flash drive doesn't work by defa
f usb/163328   usb[usb] Support for Atheros USB abgn devices
o kern/163091  usb[panic] Fatal trap 12: page fault while in kernel mode
f usb/162306   usbusb devices cant get address asignation, no memories, 
o usb/162054   usbusbdump just hangs on 9.0-RC1
f usb/161793   usbpoor EHCI usb2 i/o performance
o usb/160436   usbucom wedges machine on parity error ?
o usb/160299   usbMicroSDHC-to-USB adapters do not work in FreeBSD 8.x
o usb/160192   usb[install] Installation from USB-Stick doesn't find the
o usb/159274   usbUSB 3.0 Etron EJ168A does not work.
f usb/159191   usb[fusefs-ntfs] write on fusefs-ntfs mounted partition r
o usb/157376   usbLaCie USB disk not recognized
o usb/157074   usb[boot] [usb8] vfs_mountroot_ask is called when no usb 
o usb/156898   usb[keyboard] usb keyboard does not work while boot (ps2 
f usb/156735   usbNeed Quirk for Goflex USB Disk Drives
o usb/156726   usb[snd_uaudio]: snd_uaudio(4) fails to detach when mixer
o usb/156725   usbUSB stack stall cause complete system input loss
o usb/156596   usb[ehci] Extremely high interrupt rate on ehci/uhci IRQ1
o usb/156000   usbrum(4) Fatal trap 18: integer divide fault while in ke
f usb/155996   usbNanoBSD not booted as Disk
o usb/155784   usbProblem with Transcend StoreJet 25M3 (2AJ1) on Asus M2
o usb/155663   usb[usbdevs] [patch] Add support for Supertop Nano 1GB US
o usb/154753   usb[usbdevs] [patch] Support for Qualcomm USB modem/stora
o usb/154506   usb[umass] Copying dir with large files makes FreeBSD loa
o usb/154192   usb[umass] In Garmin Oregon GPS, only the first umass dev
o i386/153851  usb[keyboard] keyboard issues on new Intel Mother boards.
o usb/153703   usb[keyboard] My USB keyboard can not be used in 8-STABLE
o usb/153609   usb[zyd] [panic] kernel: Fatal trap 12: page fault while 
o usb/153149   usb[umass] USB stick quirk regression [regression]
o usb/152075   usb[usb8] [ehci] [request] Add quirk for CS5536 USB
o usb/150892   usb[zyd] Whenever network contacted in any shape, way or 
o usb/150189   usb[run] [usb8] [patch] if_run appears to corrupt IP traf
p usb/149764   usb[u3g] [patch] usbdevs update: Huawei K3765 3G modem
o usb/149283   usb[uftdi] avrdude unable to talk to Arduino board (via u
o usb/149162   usb[ural] ASUS WL-167g doesn't work in 8.1 (continue 

Re: Add support for 3G modem WeTelecom WM-D200 patch

2012-12-10 Thread Artyom Mirgorodskiy
Thank you!

On Sunday 09 December 2012 11:01:17 Hans Petter Selasky wrote:
> On Saturday 08 December 2012 23:38:00 Artyom Mirgorodskiy wrote:
> > Artyom Mirgorodskiy
> 
> See:
> 
> http://svn.freebsd.org/changeset/base/244047
> 
> --HPS
-- 
This message is for the person(s) named above only and may contain privileged, 
proprietary, or otherwise private information. If you received this 
transmission in error, please notify the sender immediately and delete the 
original. Any other use of the email by you is prohibited.
___
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"