Date: Wed, 27 Feb 2019 21:34:22 -0800 (PST) From: "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net> To: Kevin Day <toasty@dragondata.com> Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve PCIe passthrough on AMD Epyc Message-ID: <201902280534.x1S5YMQS054621@pdx.rh.CN85.dnsmgr.net> In-Reply-To: <8A44404F-C6E5-47BF-82E8-3CF94D5487E9@dragondata.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > On Feb 27, 2019, at 12:32 AM, Rodney W. Grimes <freebsd-rwg@pdx.rh.CN85.dnsmgr.net> wrote: > > > >> I'm trying to get PCIe device (video card) passthrough working to a Windows bhyve VM, should this work now? > > > > No, this should not work now. > > Ok, easy enough. Should *any* PCIe passthrough work on Epyc right now? I do not know what would be special about Epyc so can not say for certain. > Just trying the same thing with a simple PCIe USB card gives me: > > CPU0: local APIC error 0x40 > CPU0: local APIC error 0x40 > ivhd0: Error: completion failed tail:0xda0, head:0x0. > ivhd0: Dump all the commands: > [CMD0, off:0xff0] opcode= 0x0 0x0 0x0 0x0 > [CMD1, off:0x0] opcode= 0x3 0x0 0x0 0x7ffffffffffff003 > [CMD2, off:0x10] opcode= 0x0 0x0 0x0 0x0 > [CMD3, off:0x20] opcode= 0x2 0x0 0x0 0x0 > [CMD4, off:0x30] opcode= 0x2 0x2 0x0 0x0 > [...snip... lots of similar stuff] > > Then I get a bunch more APIC errors, and the system freezes for about 60 seconds before recovering. You do not get any host dmesg errors about unaligned BAR ranges or sizes? Can you get the pciconf -l -b info for the device you passed, something like: # pciconf -l -b uhci0 uhci0@pci0:0:26:0: class=0x0c0300 card=0x20f017aa chip=0x29378086 rev=0x03 hdr=0x00 bar [20] = type I/O Port, range 32, base 0x1840, size 32, enabled > -- Kevin -- Rod Grimes rgrimes@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902280534.x1S5YMQS054621>