Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 2021 13:43:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 258007] bhyve Assertion failed: (!err), function hda_init, file /usr/src/usr.sbin/bhyve/pci_hda.c, line 400
Message-ID:  <bug-258007-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258007

            Bug ID: 258007
           Summary: bhyve Assertion failed: (!err), function hda_init,
                    file /usr/src/usr.sbin/bhyve/pci_hda.c, line 400
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: marietto2008@gmail.com

Hello,I have 3 graphic cards in my PC. The default is the Intel integrated =
mobo
gpu. I use this as primary. The other are the RTX 2080 ti and the GTX 1060.=
 I'm
trying to make the passthru of my Nvidia RTX 2080 ti from FreeBSD to Ubuntu
21.04 emulated with bhyve. Unfortunately an error that seems a bug prevents=
 me
from completing the task. First of all I want to show you what is the FULL =
pci
configuration on my PC :

root@marietto:/home/marietto # pciconf -v -l

hostb0@pci0:0:0:0:    class=3D0x060000 rev=3D0x0d hdr=3D0x00 vendor=3D0x8086
device=3D0x3e30 subvendor=3D0x1458 subdevice=3D0x5000
    vendor     =3D 'Intel Corporation'
    device     =3D '8th/9th Gen Core 8-core Desktop Processor Host Bridge/D=
RAM
Registers [Coffee Lake S]'
    class      =3D bridge
    subclass   =3D HOST-PCI

pcib1@pci0:0:1:0:    class=3D0x060400 rev=3D0x0d hdr=3D0x01 vendor=3D0x8086
device=3D0x1901 subvendor=3D0x1458 subdevice=3D0x5000
    vendor     =3D 'Intel Corporation'
    device     =3D '6th-10th Gen Core Processor PCIe Controller (x16)'
    class      =3D bridge
    subclass   =3D PCI-PCI

pcib2@pci0:0:1:1:    class=3D0x060400 rev=3D0x0d hdr=3D0x01 vendor=3D0x8086
device=3D0x1905 subvendor=3D0x1458 subdevice=3D0x5000
    vendor     =3D 'Intel Corporation'
    device     =3D 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe
Controller (x8)'
    class      =3D bridge
    subclass   =3D PCI-PCI

vgapci2@pci0:0:2:0:    class=3D0x030000 rev=3D0x02 hdr=3D0x00 vendor=3D0x80=
86
device=3D0x3e98 subvendor=3D0x1458 subdevice=3D0xd000
    vendor     =3D 'Intel Corporation'
    device     =3D 'CoffeeLake-S GT2 [UHD Graphics 630]'
    class      =3D display
    subclass   =3D VGA

none0@pci0:0:18:0:    class=3D0x118000 rev=3D0x10 hdr=3D0x00 vendor=3D0x8086
device=3D0xa379 subvendor=3D0x1458 subdevice=3D0x8888
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH Thermal Controller'
    class      =3D dasp

xhci1@pci0:0:20:0:    class=3D0x0c0330 rev=3D0x10 hdr=3D0x00 vendor=3D0x8086
device=3D0xa36d subvendor=3D0x1458 subdevice=3D0x5007
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH USB 3.1 xHCI Host Controller'
    class      =3D serial bus
    subclass   =3D USB

none1@pci0:0:20:2:    class=3D0x050000 rev=3D0x10 hdr=3D0x00 vendor=3D0x8086
device=3D0xa36f subvendor=3D0x8086 subdevice=3D0x7270
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH Shared SRAM'
    class      =3D memory
    subclass   =3D RAM

none2@pci0:0:22:0:    class=3D0x078000 rev=3D0x10 hdr=3D0x00 vendor=3D0x8086
device=3D0xa360 subvendor=3D0x1458 subdevice=3D0x1c3a
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH HECI Controller'
    class      =3D simple comms

ahci0@pci0:0:23:0:    class=3D0x010601 rev=3D0x10 hdr=3D0x00 vendor=3D0x8086
device=3D0xa352 subvendor=3D0x1458 subdevice=3D0xb005
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH SATA AHCI Controller'
    class      =3D mass storage
    subclass   =3D SATA

pcib3@pci0:0:27:0:    class=3D0x060400 rev=3D0xf0 hdr=3D0x01 vendor=3D0x8086
device=3D0xa340 subvendor=3D0x1458 subdevice=3D0x5001
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH PCI Express Root Port'
    class      =3D bridge
    subclass   =3D PCI-PCI

pcib4@pci0:0:28:0:    class=3D0x060400 rev=3D0xf0 hdr=3D0x01 vendor=3D0x8086
device=3D0xa338 subvendor=3D0x1458 subdevice=3D0x5001
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH PCI Express Root Port'
    class      =3D bridge
    subclass   =3D PCI-PCI

pcib5@pci0:0:28:5:    class=3D0x060400 rev=3D0xf0 hdr=3D0x01 vendor=3D0x8086
device=3D0xa33d subvendor=3D0x1458 subdevice=3D0x5001
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH PCI Express Root Port'
    class      =3D bridge
    subclass   =3D PCI-PCI

pcib6@pci0:0:29:0:    class=3D0x060400 rev=3D0xf0 hdr=3D0x01 vendor=3D0x8086
device=3D0xa330 subvendor=3D0x1458 subdevice=3D0x5001
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH PCI Express Root Port'
    class      =3D bridge
    subclass   =3D PCI-PCI

isab0@pci0:0:31:0:    class=3D0x060100 rev=3D0x10 hdr=3D0x00 vendor=3D0x8086
device=3D0xa305 subvendor=3D0x1458 subdevice=3D0x5001
    vendor     =3D 'Intel Corporation'
    device     =3D 'Z390 Chipset LPC/eSPI Controller'
    class      =3D bridge
    subclass   =3D PCI-ISA

hdac2@pci0:0:31:3:    class=3D0x040300 rev=3D0x10 hdr=3D0x00 vendor=3D0x8086
device=3D0xa348 subvendor=3D0x1458 subdevice=3D0xa0c3
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH cAVS'
    class      =3D multimedia
    subclass   =3D HDA

ichsmb0@pci0:0:31:4:    class=3D0x0c0500 rev=3D0x10 hdr=3D0x00 vendor=3D0x8=
086
device=3D0xa323 subvendor=3D0x1458 subdevice=3D0x5001
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH SMBus Controller'
    class      =3D serial bus
    subclass   =3D SMBus

none3@pci0:0:31:5:    class=3D0x0c8000 rev=3D0x10 hdr=3D0x00 vendor=3D0x8086
device=3D0xa324 subvendor=3D0x8086 subdevice=3D0x7270
    vendor     =3D 'Intel Corporation'
    device     =3D 'Cannon Lake PCH SPI Controller'
    class      =3D serial bus

em0@pci0:0:31:6:    class=3D0x020000 rev=3D0x10 hdr=3D0x00 vendor=3D0x8086
device=3D0x15bc subvendor=3D0x1458 subdevice=3D0xe000
    vendor     =3D 'Intel Corporation'
    device     =3D 'Ethernet Connection (7) I219-V'
    class      =3D network
    subclass   =3D ethernet

vgapci0@pci0:1:0:0:    class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10=
de
device=3D0x1e04 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 [GeForce RTX 2080 Ti]'
    class      =3D display
    subclass   =3D VGA

hdac0@pci0:1:0:1:    class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x10f7 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 High Definition Audio Controller'
    class      =3D multimedia
    subclass   =3D HDA

xhci0@pci0:1:0:2:    class=3D0x0c0330 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x1ad6 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 USB 3.1 Host Controller'
    class      =3D serial bus
    subclass   =3D USB

none4@pci0:1:0:3:    class=3D0x0c8000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x1ad7 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 USB Type-C UCSI Controller'
    class      =3D serial bus

vgapci1@pci0:2:0:0:    class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10=
de
device=3D0x1c02 subvendor=3D0x19da subdevice=3D0x2438
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'GP106 [GeForce GTX 1060 3GB]'
    class      =3D display
    subclass   =3D VGA

hdac1@pci0:2:0:1:    class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x10f1 subvendor=3D0x19da subdevice=3D0x2438
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'GP106 High Definition Audio Controller'
    class      =3D multimedia
    subclass   =3D HDA

nvme0@pci0:3:0:0:    class=3D0x010802 rev=3D0x03 hdr=3D0x00 vendor=3D0xc0a9
device=3D0x5403 subvendor=3D0xc0a9 subdevice=3D0x2100
    vendor     =3D 'Micron/Crucial Technology'
    class      =3D mass storage
    subclass   =3D NVM

xhci2@pci0:5:0:0:    class=3D0x0c0330 rev=3D0x03 hdr=3D0x00 vendor=3D0x1912
device=3D0x0014 subvendor=3D0x1912 subdevice=3D0x0015
    vendor     =3D 'Renesas Technology Corp.'
    device     =3D 'uPD720201 USB 3.0 Host Controller'
    class      =3D serial bus
    subclass   =3D USB

Then,according with the wiki : https://wiki.freebsd.org/bhyve/pci_passthru =
; I
have masked the pci devices of the graphic card inside the file
/boot/loader.conf like this :

/boot/loader.conf

pptdevs=3D"1/0/0 1/0/1 1/0/2 1/0/3"

but I tried also different combinations,like these :

pptdevs=3D"1/0/0 1/0/2 1/0/3"

or

pptdevs=3D"2/0/0"

or

pptdevs=3D"2/0/0 2/0/1"

and I have rebooted the PC and I've seen that all relevant pci devices have
been masked correctly.

ppt0@pci0:1:0:0:    class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x1e04 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 [GeForce RTX 2080 Ti]'
    class      =3D display
    subclass   =3D VGA

ppt1@pci0:1:0:1:    class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x10f7 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 High Definition Audio Controller'
    class      =3D multimedia
    subclass   =3D HDA

ppt2@pci0:1:0:2:    class=3D0x0c0330 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x1ad6 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 USB 3.1 Host Controller'
    class      =3D serial bus
    subclass   =3D USB

ppt3@pci0:1:0:3:    class=3D0x0c8000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x1ad7 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 USB Type-C UCSI Controller'
    class      =3D serial bus


So,I tried to run the Ubuntu virtual machine with this command :


bhyve -S -c 4 -m 8G -w -H \
        -s 0,hostbridge \
        -s 1,virtio-blk,/mnt/da1p1/vms/os/ubuntu-budgie-gpu/ubuntu-2104-gpu=
.img
\
        -s 2,passthru,1/0/0 \
        -s 2:1,passthru,1/0/1 \
        -s 2:2,passthru,1/0/2 \
        -s 2:3,passthru,1/0/3 \
        -s 6,virtio-net,tap0 \
        -s 20,hda,play=3D/dev/dsp8,rec=3D/dev/dsp8 \
        -s 29,fbuf,tcp=3D0.0.0.0:5900,w=3D1440,h=3D900 \
        -s 30,xhci,tablet \
        -s 31,lpc -l com1,stdio \
        -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
        vm0


sometime the VM freezes,sometimes it gives the error "bhyve Assertion faile=
d:
(!err), function hda_init, file /usr/src/usr.sbin/bhyve/pci_hda.c, line 400"

It seems like a bug or what ? Suggestions to give me ? thanks.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258007-7788>