From owner-freebsd-stable@FreeBSD.ORG Mon Apr 7 05:14:14 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 340B148E for ; Mon, 7 Apr 2014 05:14:14 +0000 (UTC) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 669D9A0E for ; Mon, 7 Apr 2014 05:14:11 +0000 (UTC) Received: from ur.gsoft.com.au (Ur.gsoft.com.au [203.31.81.34]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id s375DiHD065772 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 7 Apr 2014 14:43:49 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" Content-Type: multipart/signed; boundary="Apple-Mail=_76633B74-4B77-4B9F-9F16-8A2B04E43D0E"; protocol="application/pgp-signature"; micalg=pgp-sha1 Date: Mon, 7 Apr 2014 14:43:42 +0930 Subject: XHCI on Parallels VM To: "freebsd-stable@freebsd.org Stable" Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-Mailer: Apple Mail (2.1874) X-Spam-Score: -3.551 () ALL_TRUSTED,BAYES_00,RP_MATCHES_RCVD X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2014 05:14:14 -0000 --Apple-Mail=_76633B74-4B77-4B9F-9F16-8A2B04E43D0E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, I am developing a USB3 device based on the Cypress FX3 for use on = FreeBSD (9 or 10) but my main development platform is OSX so I am = running FreeBSD inside Parallels. I find that if I enable USB3 mode then the device fails to enumerate = with.. Apr 7 05:09:47 freebsd10 kernel: xhci_roothub_exec: type=3D0x23 = request=3D0x03 wLen=3D0x0000 wValue=3D0x0017 wIndex=3D0x8001 Apr 7 05:09:47 freebsd10 kernel: xhci_roothub_exec: type=3D0x23 = request=3D0x03 wLen=3D0x0000 wValue=3D0x0018 wIndex=3D0x8001 Apr 7 05:09:47 freebsd10 kernel: xhci_ep_init: = endpoint=3D0xfffff800071430d8, addr=3D0, endpt=3D0, mode=3D0 Apr 7 05:09:47 freebsd10 kernel: xhci_ep_clear_stall: Apr 7 05:09:47 freebsd10 kernel: xhci_cmd_enable_slot: Apr 7 05:09:47 freebsd10 kernel: xhci_do_command: Command timeout! Apr 7 05:09:47 freebsd10 kernel: xhci_do_command: Command abort = timeout! Apr 7 05:09:47 freebsd10 kernel: usb_alloc_device: device init 2 failed = (USB_ERR_TIMEOUT, ignored) Apr 7 05:09:47 freebsd10 kernel: xhci_device_state_change: Apr 7 05:09:47 freebsd10 kernel: ugen1.2: at usbus1 = (disconnected) Apr 7 05:09:47 freebsd10 kernel: uhub_reattach_port: could not allocate = new device Apr 7 05:09:47 freebsd10 kernel: xhci_roothub_exec: type=3D0x23 = request=3D0x01 wLen=3D0x0000 wValue=3D0x0001 wIndex=3D0x0001 Apr 7 05:09:47 freebsd10 kernel: xhci_roothub_exec: type=3D0xa3 = request=3D0x00 wLen=3D0x0004 wValue=3D0x0000 wIndex=3D0x0002 (I set hw.usb.xhci.debug=3D3) This is with the USB UART sample code from Cypress (so I don't believe = it's a problem with the code in the FX3 micro) If I connect it with the boot loader running it works, however that = enumerates as USB2, not 3. I tried setting hw.usb.ehci.iaadbug=3D1, hw.usb.ehci.lostintrbug=3D1, = hw.usb.xhci.use_polling=3D1 with no change. I also tried setting hw.usb.xhci.xhci_port_route=3D-1 in = /boot/loader.conf with no change (not that I expected it to since it = emulates an NEC XHCI controller..) Here is the output of pciconf -lv if it helps.. hostb0@pci0:0:0:0: class=3D0x060000 card=3D0x04001ab8 = chip=3D0x29a08086 rev=3D0x02 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82P965/G965 Memory Controller Hub' class =3D bridge subclass =3D HOST-PCI pcib1@pci0:0:1:0: class=3D0x060401 card=3D0x00008086 = chip=3D0x29818086 rev=3D0x02 hdr=3D0x01 vendor =3D 'Intel Corporation' device =3D '82G35 Express PCI Express Root Port' class =3D bridge subclass =3D PCI-PCI none0@pci0:0:3:0: class=3D0xff0000 card=3D0x04001ab8 = chip=3D0x40001ab8 rev=3D0x00 hdr=3D0x00 vendor =3D 'Parallels, Inc.' device =3D 'Virtual Machine Communication Interface' em0@pci0:0:5:0: class=3D0x020000 card=3D0x04001ab8 chip=3D0x100f8086 = rev=3D0x00 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82545EM Gigabit Ethernet Controller (Copper)' class =3D network subclass =3D ethernet pcib2@pci0:0:10:0: class=3D0x060400 card=3D0x00000000 = chip=3D0x00221011 rev=3D0x00 hdr=3D0x01 vendor =3D 'Digital Equipment Corporation' device =3D 'DECchip 21150' class =3D bridge subclass =3D PCI-PCI uhci0@pci0:0:29:0: class=3D0x0c0300 card=3D0x04001ab8 = chip=3D0x26588086 rev=3D0x02 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI' class =3D serial bus subclass =3D USB xhci0@pci0:0:29:6: class=3D0x0c0330 card=3D0x04001ab8 = chip=3D0x01941033 rev=3D0x03 hdr=3D0x00 vendor =3D 'NEC Corporation' device =3D 'uPD720200 USB 3.0 Host Controller' class =3D serial bus subclass =3D USB ehci0@pci0:0:29:7: class=3D0x0c0320 card=3D0x04001ab8 = chip=3D0x265c8086 rev=3D0x02 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI = Controller' class =3D serial bus subclass =3D USB pcib3@pci0:0:30:0: class=3D0x060400 card=3D0x04001ab8 = chip=3D0x244e8086 rev=3D0xf2 hdr=3D0x01 vendor =3D 'Intel Corporation' device =3D '82801 PCI Bridge' class =3D bridge subclass =3D PCI-PCI isab0@pci0:0:31:0: class=3D0x060100 card=3D0x04001ab8 = chip=3D0x28108086 rev=3D0x02 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801HB/HR (ICH8/R) LPC Interface Controller' class =3D bridge subclass =3D PCI-ISA atapci0@pci0:0:31:1: class=3D0x010180 card=3D0x04001ab8 = chip=3D0x244b8086 rev=3D0x05 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801BA IDE U100 Controller' class =3D mass storage subclass =3D ATA ahci0@pci0:0:31:2: class=3D0x010601 card=3D0x04001ab8 = chip=3D0x28218086 rev=3D0x02 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801HR/HO/HH (ICH8R/DO/DH) 6 port SATA Controller = [AHCI mode]' class =3D mass storage subclass =3D SATA pcm0@pci0:0:31:4: class=3D0x040100 card=3D0x04001ab8 = chip=3D0x24458086 rev=3D0x02 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801BA/BAM AC'97 Audio Controller' class =3D multimedia subclass =3D audio vgapci0@pci0:1:0:0: class=3D0x030000 card=3D0x04001ab8 = chip=3D0x40051ab8 rev=3D0x00 hdr=3D0x00 vendor =3D 'Parallels, Inc.' device =3D 'Accelerated Virtual Video Adapter' class =3D display subclass =3D VGA -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Apple-Mail=_76633B74-4B77-4B9F-9F16-8A2B04E43D0E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iD8DBQFTQjQH5ZPcIHs/zowRAtZfAJ9lgqfc/UIPCHNh8pNENOp+l69qwgCfVYCE mssDba6Lf5OwdoCs4fNOgh4= =qBWd -----END PGP SIGNATURE----- --Apple-Mail=_76633B74-4B77-4B9F-9F16-8A2B04E43D0E--