Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2019 12:22:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 236827] bhyve pci passthru generates panic: vtd_init: invalid caching mode
Message-ID:  <bug-236827-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 236827
           Summary: bhyve pci passthru generates panic: vtd_init: invalid
                    caching mode
           Product: Base System
           Version: 12.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Keywords: bhyve, crash, panic
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: nkursu@gmail.com

Created attachment 203187
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D203187&action=
=3Dedit
generated core.txt.3 dump

Trying to passthru em0 interfaces to vm but kernel panics and system reboots

bhyve command :=20

bhyve -c 2 -m 4G -w -H -S \
        -s 0:0,hostbridge \
        -s 4:0,virtio-blk,./opnsense_disk.img \
        -s 7:0,passthru,4/0/0 \
        -s 8:0,passthru,4/0/1 \
        -s 29,fbuf,tcp=3D192.168.1.5:5901,w=3D800,h=3D600 \
        -s 30,xhci,tablet \
        -s 31,lpc \
        -l com1,stdio \
        -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
        opnsense &

pciconf -lvc output:

ppt0@pci0:4:0:0:        class=3D0x020000 card=3D0x115e8086 chip=3D0x105e808=
6 rev=3D0x06
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D '82571EB/82571GB Gigabit Ethernet Controller D0/D1 (copp=
er
applications)'
    class      =3D network
    subclass   =3D ethernet
    cap 01[c8] =3D powerspec 2  supports D0 D3  current D0
    cap 05[d0] =3D MSI supports 1 message, 64 bit=20
    cap 10[e0] =3D PCI-Express 1 endpoint max data 128(256) RO NS
                 link x4(x4) speed 2.5(2.5) ASPM disabled(L0s)
    ecap 0001[100] =3D AER 1 0 fatal 1 non-fatal 0 corrected
    ecap 0003[140] =3D Serial 1 6805caffff3251ee
ppt1@pci0:4:0:1:        class=3D0x020000 card=3D0x115e8086 chip=3D0x105e808=
6 rev=3D0x06
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D '82571EB/82571GB Gigabit Ethernet Controller D0/D1 (copp=
er
applications)'
    class      =3D network
    subclass   =3D ethernet
    cap 01[c8] =3D powerspec 2  supports D0 D3  current D0
    cap 05[d0] =3D MSI supports 1 message, 64 bit=20
    cap 10[e0] =3D PCI-Express 1 endpoint max data 128(256) RO NS
                 link x4(x4) speed 2.5(2.5) ASPM disabled(L0s)
    ecap 0001[100] =3D AER 1 0 fatal 1 non-fatal 0 corrected
    ecap 0003[140] =3D Serial 1 6805caffff3251ee

kernel panic:

panic: vtd_init: invalid caching mode
cpuid =3D 10
time =3D 1553651419
KDB: stack backtrace:
#0 0xffffffff80be7977 at kdb_backtrace+0x67
#1 0xffffffff80b9b563 at vpanic+0x1a3
#2 0xffffffff80b9b3b3 at panic+0x43
#3 0xffffffff8265b039 at vtd_init+0x5f9
#4 0xffffffff8264a1db at iommu_create_domain+0x7b
#5 0xffffffff826410d2 at vm_assign_pptdev+0xe2
#6 0xffffffff82645653 at vmmdev_ioctl+0xed3
#7 0xffffffff80a51acd at devfs_ioctl+0xad
#8 0xffffffff811f945e at VOP_IOCTL_APV+0x7e
#9 0xffffffff80c7a144 at vn_ioctl+0x1a4
#10 0xffffffff80a520af at devfs_ioctl_f+0x1f
#11 0xffffffff80c04f3d at kern_ioctl+0x26d
#12 0xffffffff80c04c5e at sys_ioctl+0x15e
#13 0xffffffff81075449 at amd64_syscall+0x369
#14 0xffffffff8104fd1d at fast_syscall_common+0x101


I have a vmcore.3 dump on 1.9gb if needed

--=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-236827-227>