Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2014 14:43:42 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        "freebsd-stable@freebsd.org Stable" <freebsd-stable@freebsd.org>
Subject:   XHCI on Parallels VM
Message-ID:  <E4340793-4A53-4F74-A7F3-7F24A09F7D1B@gsoft.com.au>

next in thread | raw e-mail | index | archive | help

--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: <Unknown> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E4340793-4A53-4F74-A7F3-7F24A09F7D1B>