From owner-freebsd-bugs@freebsd.org Wed Mar 27 12:22:38 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D0EE154EE37 for ; Wed, 27 Mar 2019 12:22:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AAF1172F8A for ; Wed, 27 Mar 2019 12:22:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 69A28154EE36; Wed, 27 Mar 2019 12:22:37 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4747D154EE34 for ; Wed, 27 Mar 2019 12:22:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D3CC972F89 for ; Wed, 27 Mar 2019 12:22:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E5E9F14828 for ; Wed, 27 Mar 2019 12:22:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x2RCMZLU015356 for ; Wed, 27 Mar 2019 12:22:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x2RCMZhl015348 for bugs@FreeBSD.org; Wed, 27 Mar 2019 12:22:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 236827] bhyve pci passthru generates panic: vtd_init: invalid caching mode Date: Wed, 27 Mar 2019 12:22:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: bhyve, crash, panic X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nkursu@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Mar 2019 12:22:38 -0000 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.=