[Bug 268794] Simultaneous vcpu_lock_all() and vm_handle_rendezvous() can deadlock vmm

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 30 Jan 2023 08:23:25 UTC

--- Comment #9 from Corvin Köhne <corvink@FreeBSD.org> ---
(In reply to Robert Crowston from comment #7)

> > 1. Which GPU are you using?
> A gigabyte Radeon RX 6650 XT (I also had success with a much older AMD card).

AMD should work. Not sure if it works with 13.1 but -CURRENT should support it.

> > 2. Are you using using upstream bhyve and edk2?
> Not sure what you mean by 'upstream bhyve' -- I use the bhyve in 13.1-stable (and have tested -CURRENT too). For edk2, I use the bootroom binary that you created (https://reviews.freebsd.org/F31899352), but it makes no observable difference to me to the one from packages -- the GOP driver does not start (with either GPU).

I mean the official version from FreeBSD. So, 13.1-stable, -CURRENT or
something similar. In order to use a GOP driver you have to pass it to the
guest by bhyve's rom option: `-s x,passthru,x/x/x,rom=/my/gop`. This option is
not supported by 13.1! See the man page for more information:

To use this option you have to extract the gop from your gpu. FreeBSD has no
tool to do that. You have to do it with linux or windows.
For linux
1. echo 1 > /sys/devices/pci0000:00/0000:00:02.0/rom
2. cat /sys/devices/pci0000:00/0000:00:02.0/rom > vbios.dump
3. echo 0 > /sys/devices/pci0000:00/0000:00:02.0/rom
For windows use GPU-Z

It's hard to get useful information from a windows guest. You can try to boot a
linux guest and check for any drm errors. Note: linux amdgpu driver requires a

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