From nobody Sat Dec 11 23:33:25 2021 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 346F818DEC55 for ; Sat, 11 Dec 2021 23:34:11 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JBPHQ0Xd2z3hG1 for ; Sat, 11 Dec 2021 23:34:10 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: by mail-lj1-x235.google.com with SMTP id i63so18752750lji.3 for ; Sat, 11 Dec 2021 15:34:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=0Ukskc75yGdKodA4SMZb/m+uZlaaY99VCp9Ns4uC/jc=; b=RJ0+OTnXemsa7mVxvgebR1AGc/3vbI61f9dy+SFjvJGsmwv59DfDB0MyRWp6ArE/RE g2BA1D8RKoxBJA90TlzcsU1/2YOdLoptaY8jacegjOdYKJR7zZhD0X3lo6COKc7WcS71 FZgS4nzk8PM9I6pe4Er91SpTCA1QlvyeEzILl6y9tEhQbQXR+tkfV5Iy7CK6EH+GF3Ls Hv2x9Nlasi6L3JbyVPKpx8dftnKnVtMrdyIUt5T4J/5F8rTpQ4WmyB76OMOl11v4OWvE 68y977tW8P1lhiacwXoXhjqch/VWKJLKdW2waTvWYHfhBl31rmWaa285u9y/WPrHumHA wAvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0Ukskc75yGdKodA4SMZb/m+uZlaaY99VCp9Ns4uC/jc=; b=LLyxKjvpJKVCs9z09NB22AoyxdBmOpBLA/rKza+rqdPzATVx3PZDnCkCc/gXHSYk8W E/01mEBid1E/ygFuwEOXOrXD3VkgEmMAPnTC31DGPfLjzMnct7odULBewPpYOapJ335V vVJxlcl45TxkIM/7LAuNRwopkUbgWx9pnOpDIX9zqjkufPuzWnNqXjagCh79d7LOEtut j0LVriZlTr/arcYrWZG5E3xfUqaOrzQCZhOZ4FnjhLy4jR1xBtOnAyGmeNMqYT3+Q09O gfgIbX1aAfrSFKVSFzvlhuuVIOiVZfJKPULeOay41Tn5yBvLwvYGCAfRepH7qRDREGsV OxkA== X-Gm-Message-State: AOAM5316iRchPt6dd5vaa4y6maCYrLCH8Wk0kiMLzMnCwnAmfkJBkYx8 FrZzsSoEi9HqgtYgVT8MGH4cMGAGR9o+rp2jtDBuXl6M3QoHqg== X-Google-Smtp-Source: ABdhPJyb+iKl9aleKu9K0UhwXOjX5nftZaQ6pcEU0nqBJ0GM/GMSprHQD3n0UWZ2388HNIJqLW+RJmrrWCnSVvK6nd0= X-Received: by 2002:a2e:8513:: with SMTP id j19mr20347591lji.361.1639265641686; Sat, 11 Dec 2021 15:34:01 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 From: Mario Marietto Date: Sun, 12 Dec 2021 00:33:25 +0100 Message-ID: Subject: ASMedia USB controller 3.1 cannot be masked by bhyve ? To: FreeBSD virtualization Content-Type: multipart/alternative; boundary="00000000000043ebbd05d2e746d9" X-Rspamd-Queue-Id: 4JBPHQ0Xd2z3hG1 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=RJ0+OTnX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::235 as permitted sender) smtp.mailfrom=marietto2008@gmail.com X-Spamd-Result: default: False [-0.77 / 15.00]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-0.77)[-0.766]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::235:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; NEURAL_SPAM_LONG(1.00)[0.999]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --00000000000043ebbd05d2e746d9 Content-Type: text/plain; charset="UTF-8" Hello to everyone. I've bought a new USB 3.1 controller from the company "ASMedia Technology Inc." ,this model : https://www.xt-xinte.com/h-product-detail.html?goods_id=682689 and I tried to mask it with bhyve because I want to pass thru it inside a virtual machine. This is how I have assigned the addresses to bhyve inside the file /boot/loader.conf : /boot/loader.conf pptdevs="1/0/0 2/0/0 2/2/0 2/6/0 2/14/0 3/0/0 4/0/0 5/0/0 6/0/0 7/0/0 7/0/1 7/0/2 7/0/3" unfortunately hasn't been assigned any ppt device to this controller. All I seem to see is PCI-PCI bridges. No interfaces under pciconf. Is there a workaround for this ? thanks. # pciconf -lv hostb0@pci0:0:0:0: class=0x060000 rev=0x0d hdr=0x00 vendor=0x8086 device=0x3e30 subvendor=0x1458 subdevice=0x5000 vendor = 'Intel Corporation' device = '8th/9th Gen Core 8-core Desktop Processor Host Bridge/DRAM Registers [Coffee Lake S]' class = bridge subclass = HOST-PCI pcib1@pci0:0:1:0: class=0x060400 rev=0x0d hdr=0x01 vendor=0x8086 device=0x1901 subvendor=0x1458 subdevice=0x5000 vendor = 'Intel Corporation' device = '6th-10th Gen Core Processor PCIe Controller (x16)' class = bridge subclass = PCI-PCI pcib7@pci0:0:1:1: class=0x060400 rev=0x0d hdr=0x01 vendor=0x8086 device=0x1905 subvendor=0x1458 subdevice=0x5000 vendor = 'Intel Corporation' device = 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x8)' class = bridge subclass = PCI-PCI vgapci0@pci0:0:2:0: class=0x030000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x3e98 subvendor=0x1458 subdevice=0xd000 vendor = 'Intel Corporation' device = 'CoffeeLake-S GT2 [UHD Graphics 630]' class = display subclass = VGA none0@pci0:0:18:0: class=0x118000 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa379 subvendor=0x1458 subdevice=0x8888 vendor = 'Intel Corporation' device = 'Cannon Lake PCH Thermal Controller' class = dasp xhci0@pci0:0:20:0: class=0x0c0330 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa36d subvendor=0x1458 subdevice=0x5007 vendor = 'Intel Corporation' device = 'Cannon Lake PCH USB 3.1 xHCI Host Controller' class = serial bus subclass = USB none1@pci0:0:20:2: class=0x050000 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa36f subvendor=0x8086 subdevice=0x7270 vendor = 'Intel Corporation' device = 'Cannon Lake PCH Shared SRAM' class = memory subclass = RAM none2@pci0:0:22:0: class=0x078000 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa360 subvendor=0x1458 subdevice=0x1c3a vendor = 'Intel Corporation' device = 'Cannon Lake PCH HECI Controller' class = simple comms ahci0@pci0:0:23:0: class=0x010601 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa352 subvendor=0x1458 subdevice=0xb005 vendor = 'Intel Corporation' device = 'Cannon Lake PCH SATA AHCI Controller' class = mass storage subclass = SATA pcib8@pci0:0:27:0: class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa340 subvendor=0x1458 subdevice=0x5001 vendor = 'Intel Corporation' device = 'Cannon Lake PCH PCI Express Root Port' class = bridge subclass = PCI-PCI pcib9@pci0:0:28:0: class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa338 subvendor=0x1458 subdevice=0x5001 vendor = 'Intel Corporation' device = 'Cannon Lake PCH PCI Express Root Port' class = bridge subclass = PCI-PCI pcib10@pci0:0:28:5: class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa33d subvendor=0x1458 subdevice=0x5001 vendor = 'Intel Corporation' device = 'Cannon Lake PCH PCI Express Root Port' class = bridge subclass = PCI-PCI pcib11@pci0:0:29:0: class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa330 subvendor=0x1458 subdevice=0x5001 vendor = 'Intel Corporation' device = 'Cannon Lake PCH PCI Express Root Port' class = bridge subclass = PCI-PCI isab0@pci0:0:31:0: class=0x060100 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa305 subvendor=0x1458 subdevice=0x5001 vendor = 'Intel Corporation' device = 'Z390 Chipset LPC/eSPI Controller' class = bridge subclass = PCI-ISA hdac0@pci0:0:31:3: class=0x040300 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa348 subvendor=0x1458 subdevice=0xa0c3 vendor = 'Intel Corporation' device = 'Cannon Lake PCH cAVS' class = multimedia subclass = HDA ichsmb0@pci0:0:31:4: class=0x0c0500 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa323 subvendor=0x1458 subdevice=0x5001 vendor = 'Intel Corporation' device = 'Cannon Lake PCH SMBus Controller' class = serial bus subclass = SMBus none3@pci0:0:31:5: class=0x0c8000 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa324 subvendor=0x8086 subdevice=0x7270 vendor = 'Intel Corporation' device = 'Cannon Lake PCH SPI Controller' class = serial bus em0@pci0:0:31:6: class=0x020000 rev=0x10 hdr=0x00 vendor=0x8086 device=0x15bc subvendor=0x1458 subdevice=0xe000 vendor = 'Intel Corporation' device = 'Ethernet Connection (7) I219-V' class = network subclass = ethernet pcib2@pci0:1:0:0: class=0x060400 rev=0x01 hdr=0x01 vendor=0x1b21 device=0x1806 subvendor=0x0000 subdevice=0x0000 vendor = 'ASMedia Technology Inc.' class = bridge subclass = PCI-PCI pcib3@pci0:2:0:0: class=0x060400 rev=0x01 hdr=0x01 vendor=0x1b21 device=0x1806 subvendor=0x0000 subdevice=0x0000 vendor = 'ASMedia Technology Inc.' class = bridge subclass = PCI-PCI pcib4@pci0:2:2:0: class=0x060400 rev=0x01 hdr=0x01 vendor=0x1b21 device=0x1806 subvendor=0x0000 subdevice=0x0000 vendor = 'ASMedia Technology Inc.' class = bridge subclass = PCI-PCI pcib5@pci0:2:6:0: class=0x060400 rev=0x01 hdr=0x01 vendor=0x1b21 device=0x1806 subvendor=0x0000 subdevice=0x0000 vendor = 'ASMedia Technology Inc.' class = bridge subclass = PCI-PCI pcib6@pci0:2:14:0: class=0x060400 rev=0x01 hdr=0x01 vendor=0x1b21 device=0x1806 subvendor=0x0000 subdevice=0x0000 vendor = 'ASMedia Technology Inc.' class = bridge subclass = PCI-PCI ppt0@pci0:3:0:0: class=0x0c0330 rev=0x02 hdr=0x00 vendor=0x1912 device=0x0015 subvendor=0xffff subdevice=0xffff vendor = 'Renesas Technology Corp.' device = 'uPD720202 USB 3.0 Host Controller' class = serial bus subclass = USB ppt1@pci0:4:0:0: class=0x0c0330 rev=0x02 hdr=0x00 vendor=0x1912 device=0x0015 subvendor=0xffff subdevice=0xffff vendor = 'Renesas Technology Corp.' device = 'uPD720202 USB 3.0 Host Controller' class = serial bus subclass = USB ppt2@pci0:5:0:0: class=0x0c0330 rev=0x02 hdr=0x00 vendor=0x1912 device=0x0015 subvendor=0xffff subdevice=0xffff vendor = 'Renesas Technology Corp.' device = 'uPD720202 USB 3.0 Host Controller' class = serial bus subclass = USB ppt3@pci0:6:0:0: class=0x0c0330 rev=0x02 hdr=0x00 vendor=0x1912 device=0x0015 subvendor=0xffff subdevice=0xffff vendor = 'Renesas Technology Corp.' device = 'uPD720202 USB 3.0 Host Controller' class = serial bus subclass = USB ppt4@pci0:7:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1e04 subvendor=0x19da subdevice=0x2503 vendor = 'NVIDIA Corporation' device = 'TU102 [GeForce RTX 2080 Ti]' class = display subclass = VGA ppt5@pci0:7:0:1: class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de device=0x10f7 subvendor=0x19da subdevice=0x2503 vendor = 'NVIDIA Corporation' device = 'TU102 High Definition Audio Controller' class = multimedia subclass = HDA ppt6@pci0:7:0:2: class=0x0c0330 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1ad6 subvendor=0x19da subdevice=0x2503 vendor = 'NVIDIA Corporation' device = 'TU102 USB 3.1 Host Controller' class = serial bus subclass = USB ppt7@pci0:7:0:3: class=0x0c8000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1ad7 subvendor=0x19da subdevice=0x2503 vendor = 'NVIDIA Corporation' device = 'TU102 USB Type-C UCSI Controller' class = serial bus nvme0@pci0:8:0:0: class=0x010802 rev=0x03 hdr=0x00 vendor=0xc0a9 device=0x5403 subvendor=0xc0a9 subdevice=0x2100 vendor = 'Micron/Crucial Technology' class = mass storage subclass = NVMxhci1@pci0:10:0:0: class=0x0c0330 rev=0x03 hdr=0x00 vendor=0x1912 device=0x0014 subvendor=0x1912 subdevice=0x0015 vendor = 'Renesas Technology Corp.' device = 'uPD720201 USB 3.0 Host Controller' class = serial bus subclass = USB # grep usbus /var/run/dmesg.boot usbus0 on xhci0 usbus0: 5.0Gbps Super Speed USB v3.0 usbus1 on xhci1 usbus1: 5.0Gbps Super Speed USB v3.0 ugen0.1: <0x8086 XHCI root HUB> at usbus0 ugen1.1: <0x1912 XHCI root HUB> at usbus1 uhub0 on usbus0 uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 uhub1 on usbus1 uhub1: <0x1912 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1 Root mount waiting for: usbus0 CAM usbus1 Root mount waiting for: usbus0 usbus1 ugen0.2: at usbus0 uhub2: on usbus0 ugen1.2: at usbus1 umass0: on usbus1 ugen1.3: at usbus1 uhub3: on usbus1 ugen0.3: at usbus0 uhub4: on usbus0 Root mount waiting for: usbus0 usbus1 ugen1.4: at usbus1 ukbd0: on usbus1 Root mount waiting for: usbus0 usbus1 ugen0.4: at usbus0 ugen1.5: at usbus1 ugen0.5: at usbus0 uhub5: on usbus0 Root mount waiting for: usbus0 ugen0.6: at usbus0 ukbd1: on usbus0 Root mount waiting for: usbus0 ugen0.7: at usbus0 uhub6: on usbus0 Root mount waiting for: usbus0 ugen0.8: at usbus0 Root mount waiting for: usbus0 ugen0.9: at usbus0 ukbd2: on usbus0 Root mount waiting for: usbus0 ugen0.10: at usbus0 uhub7: on usbus0 Root mount waiting for: usbus0 ugen0.11: at usbus0 uhub8: on usbus0 Root mount waiting for: usbus0 Root mount waiting for: usbus0 Root mount waiting for: usbus0 ugen0.12: at usbus0 umass1: on usbus0 Root mount waiting for: usbus0 Root mount waiting for: usbus0 ugen0.13: at usbus0 umass2: on usbus0 Root mount waiting for: usbus0 ugen0.14: at usbus0 umass3: on usbus0 Root mount waiting for: usbus0 Root mount waiting for: usbus0 ugen0.15: at usbus0 umass4: on usbus0 Root mount waiting for: usbus0 ugen0.16: at usbus0 umass5: on usbus0 uhid1: on usbus0 uhid0: on usbus1 uhid2: on usbus0 ums0: on usbus0 ums1: on usbus1 uaudio0: on usbus0 # usbconfig gen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen1.1: <0x1912 XHCI root HUB> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.3: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (300mA) ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.4: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (20mA) ugen0.4: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) ugen1.5: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (50mA) ugen0.5: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA) ugen0.6: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) ugen0.7: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA) ugen0.8: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) ugen0.9: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (98mA) ugen0.10: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.11: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.12: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (224mA) ugen0.13: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (0mA) ugen0.14: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (224mA) ugen0.15: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA) ugen0.16: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (0mA) ugen1.2: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA) -- Mario. --00000000000043ebbd05d2e746d9--