From owner-freebsd-usb@FreeBSD.ORG Thu Oct 4 07:42:07 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2035D1065678 for ; Thu, 4 Oct 2012 07:42:07 +0000 (UTC) (envelope-from guido@gvr.org) Received: from gvr.gvr.org (gvr-gw.gvr.org [82.161.93.240]) by mx1.freebsd.org (Postfix) with ESMTP id 011548FC32 for ; Thu, 4 Oct 2012 07:02:10 +0000 (UTC) Received: by gvr.gvr.org (Postfix, from userid 657) id 23D8E6E4BC; Thu, 4 Oct 2012 09:02:08 +0200 (CEST) Date: Thu, 4 Oct 2012 09:02:07 +0200 From: Guido van Rooij To: Hans Petter Selasky Message-ID: <20121004070207.GA32528@gvr.gvr.org> References: <20121003200529.GA26591@gvr.gvr.org> <20121003213459.GA27522@gvr.gvr.org> <201210040812.35998.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201210040812.35998.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: usb3 umass device on usb2 port not recognised X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Oct 2012 07:42:07 -0000 On Thu, Oct 04, 2012 at 08:12:35AM +0200, Hans Petter Selasky wrote: > On Wednesday 03 October 2012 23:35:00 Guido van Rooij wrote: > > On Wed, Oct 03, 2012 at 10:05:29PM +0200, Guido van Rooij wrote: > > > I have a 2.5" external USB3 disk that works fine on a USB2 port on a > > > Windows7 system, but under FreeBSD 8.3-RELEASE-p3 it is not recognised at > > > all. When I plug it in, all I get is: > > > ugen5.2: at usbus5 (disconnected) > > > I get similar results on other USB ports. > > > usbconfig list does not show the device: > > > beck# usbconfig list > > > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > > > pwr=SAVE ugen1.1: at usbus1, cfg=0 md=HOST > > > spd=FULL (12Mbps) pwr=SAVE ugen2.1: at usbus2, > > > cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen3.1: > > > at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.1: > > HUB Intel> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen5.1: > > > at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) > > > pwr=SAVE ugen6.1: at usbus6, cfg=0 md=HOST > > > spd=FULL (12Mbps) pwr=SAVE ugen7.1: at usbus7, > > > cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.2: > > > at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen2.2: <5880 > > > Broadcom Corp> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > > > ugen0.3: at usbus0, cfg=0 md=HOST > > > spd=FULL (12Mbps) pwr=ON ugen0.4: at > > > usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > > > > > > > > > beck# usbconfig -u 5 -a 2 dump_info > > > No device match or lack of permissions. > > > > When I attach a usb-hub (no external power) and then attach the device, > > I get a little further: > > ugen7.2: at usbus7 > > uhub9: on > > usbus7 uhub9: 4 ports with 4 removable, self powered > > ugen7.3: at usbus7 > > umass0: on usbus7 > > umass0: SCSI over Bulk-Only; quirks = 0x4100 > > umass0:2:0:-1: Attached to scbus2 > > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > > (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error > > (probe0:umass-sim0:0:0:0): SCSI status: Check Condition > > (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not > > present) da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 > > da0: Removable Direct Access SCSI-5 device > > da0: 40.000MB/s transfers > > da0: Attempt to query device size failed: NOT READY, Medium not present > > > > Needless to say the device is a fixed disk, and has no changeable media. > > > > -Guido > > Hi, > > You can try to run "usbdump -i usbusX" on the different USB busses you've got > and see if you get anything while connecting. > > Else there are some sysctl quirks and tuneables under hw.usb. > > Also: > > hw.usb.ehci.no_hs=1 This has no effect. neither has setting hw.usb.ehci.lostintrbug or hw.usb.ehci.iaadbug. A usbdump when directly plugged into the USB-port: beck# usbdump -s0 -vvv -i usbus5 08:43:17.667600 usbus5.2 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0 frame[0] WRITE 8 bytes 0000 00 05 02 00 00 00 00 00 -- -- -- -- -- -- -- -- |........ | flags 0x50 status 0xee3a3 08:43:17.671523 usbus5.2 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR= STALLED frame[0] WRITE 8 bytes flags 0x50 status 0xce1a1 When I have a hub in between, the usbdump starts with: 08:45:48.210226 usbus5.2 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 frame[0] WRITE 8 bytes 0000 A3 00 00 00 01 00 04 00 -- -- -- -- -- -- -- -- |........ | frame[1] READ 4 bytes flags 0x10 status 0xce1a3 08:45:48.211429 usbus5.2 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 frame[0] WRITE 8 bytes frame[1] READ 4 bytes 0000 00 01 00 00 -- -- -- -- -- -- -- -- -- -- -- -- |.... | flags 0x10 status 0xee1a1 08:45:48.211437 usbus5.2 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 frame[0] WRITE 8 bytes 0000 A3 00 00 00 02 00 04 00 -- -- -- -- -- -- -- -- |........ | frame[1] READ 4 bytes flags 0x10 status 0xee1a3 So at least I get something back... The problem is also that a quirk will not help as there is no way to address the device (not directly via the port, nor via the hub as in the hub case, the device also is removed by the usb stack and does not show up in usbconfig list) -Guido