From owner-freebsd-current@FreeBSD.ORG Sat Feb 14 13:46:31 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B05621065673 for ; Sat, 14 Feb 2009 13:46:31 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 1D0958FC0A for ; Sat, 14 Feb 2009 13:46:30 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=8UcZu9N6atoA:10 a=rZF0ZLlPMY8A:10 a=kw03RjmKpLm8ql5X2xOdcA==:17 a=MvS7KazlM21rRgErbjwA:9 a=esBWxPkAkyJUhpkCop4A:7 a=FvCuCJnKPw-avZxwPaGbMO1rOTYA:4 a=LY0hPdMaydYA:10 a=XMwXwuH7XIxzE5R7:21 a=OahKXi7KbKCV6r3q:21 Received: from [85.19.218.115] (account mc467741@c2i.net HELO laptop) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1195831316; Sat, 14 Feb 2009 14:46:28 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Sat, 14 Feb 2009 14:48:54 +0100 User-Agent: KMail/1.9.7 References: <23295d220902140250o3d1f8e87j254dcec91c5e63e1@mail.gmail.com> In-Reply-To: <23295d220902140250o3d1f8e87j254dcec91c5e63e1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902141448.56043.hselasky@c2i.net> Cc: Rodion Turlac Subject: Re: HEADSUP usb2/usb4bsd to become default in GENERIC X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2009 13:46:32 -0000 On Saturday 14 February 2009, Rodion Turlac wrote: > Hello. > > I have tried to test USB2 stack with usb flash on FreeBSD-CURRENT > under VMWare Server, but I have got dmesg output like this. > > uhci0: port 0x1060-0x107f irq 9 > at device 7.2 on pci0 > uhci0: [ITHREAD] > uhci0: LegSup = 0x003b > usbus0: on uhci0 > usbus0: 12Mbps Full Speed USB v1.0 > ugen0.1: at usbus0 > ushub0: on usbus0 > ushub0: 2 ports with 2 removable, self powered > usb2_alloc_device:1401: set address 2 failed (ignored) > usb2_alloc_device:1437: getting device descriptor at addr 2 failed! > usb2_req_re_enumerate:1409: addr=2, set address failed! (ignored) > usb2_req_re_enumerate:1422: getting device descriptor at addr 2 failed! > usb2_req_re_enumerate:1409: addr=2, set address failed! (ignored) > usb2_req_re_enumerate:1422: getting device descriptor at addr 2 failed! > ugen0.2: <> at usbus0 (disconnected) > uhub_reattach_port:414: could not allocate new device! > usb2_alloc_device:1401: set address 2 failed (ignored) > usb2_alloc_device:1437: getting device descriptor at addr 2 failed! > usb2_req_re_enumerate:1409: addr=2, set address failed! (ignored) > usb2_req_re_enumerate:1422: getting device descriptor at addr 2 failed! > usb2_req_re_enumerate:1409: addr=2, set address failed! (ignored) > usb2_req_re_enumerate:1422: getting device descriptor at addr 2 failed! > ugen0.2: <> at usbus0 (disconnected) > uhub_reattach_port:414: could not allocate new device! > > With old USB stack all works fine. There is dmesg output. > > uhci0: port 0x1060-0x107f irq 9 > at device 7.2 on pci0 > uhci0: [GIANT-LOCKED] > uhci0: [ITHREAD] > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: on usb0 > uhub0: 2 ports with 2 removable, self powered > umass0: on > uhub0 > umass0: Get Max Lun not supported (STALLED) > (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): UNIT ATTENTION asc:28,0 > (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have > changed > (probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 1.000MB/s transfers > da0: 977MB (2002942 512 byte sectors: 64H 32S/T 977C) > GEOM: da0: partition 1 does not start on a track boundary. > GEOM: da0: partition 1 does not end on a track boundary. > > > uname -a > FreeBSD rad-home-60.rad.home 8.0-CURRENT FreeBSD 8.0-CURRENT #4: > Sat Feb 14 13:36:12 EET 2009 > root@rad-home-60.rad.home:/usr/obj/usr/src/sys/KERNEL i386 > > How could I track down this problem of USB2 stack? There are debugging sysctls you can turn on: See: sysctl hw.usb2 Else I would contact the VMWare people about this. Seems like there is a dependancy inside the VMWare emulator to a certain way of operation. --HPS