Re: bhyve nvidia gtx-1650 mobile passthru on win11

From: Corvin Köhne <corvink_at_FreeBSD.org>
Date: Mon, 18 Dec 2023 10:02:40 UTC
On Sat, 2023-12-16 at 16:07 +0000, Nuno Teixeira wrote:
> Hello all,
> 
> Specs:
> - laptop with integrated intel + dedicated nvidia
> - 15-CURRENT 3b1904d9eb04 amd64
> - win11 with nvme and tpm
> 
> I'm sharing my results with nvidia passthru:
> ###
> /boot/loader.conf.local:
> vmm_load="YES"
> pptdevs="1/0/0 1/0/1"
> 
> ppt0@pci0:1:0:0:        class=0x030000 rev=0xa1 hdr=0x00
> vendor=0x10de device=0x1f99 subvendor=0x17aa subdevice=0x3fa5
>     vendor     = 'NVIDIA Corporation'
>     device     = 'TU117M [GeForce GTX 1650 Mobile / Max-Q]'
>     class      = display
>     subclass   = VGA
> ppt1@pci0:1:0:1:        class=0x040300 rev=0xa1 hdr=0x00
> vendor=0x10de device=0x10fa subvendor=0x17aa subdevice=0x3ffb
>     vendor     = 'NVIDIA Corporation'
>     class      = multimedia
>     subclass   = HDA
> 
> bhyve:
> -s 6:0,passthru,1/0/0 -s 6:1,passthru,1/0/1
> ###
> 
> - Installed nvidia drivers without problems
> - graphic card is detected but is deactivated with a triangle and a
> "!":
>   "Windows stopped this device... code 43"
> - hda is detected and shows no problem
> 
> I've read that some nvidia cards are working...
> Any tips are welcome.
> 
> Not sure if it is possible to use intel integrated as it is already
> in use by OS.
> 
> Thanks,
> 
> -- 
> Nuno Teixeira
> FreeBSD Committer (ports)

Hi,

nvidia:
At the moment, nvidia gpu passthrough is not supported by upstream. I
have a small patch stack for nvidia [1] but it's not well tested and I
don't know for which guests and cards it works.

amd:
Should work properly on 13.2, 14.0 and onward. Note that there's a
hardware bug on many cards [2].

intel:
Requires a patched EDKII firmware [3]. Unfortunately, it's not merged
yet. Btw. even if you only have an Intel card available you can use it
for GPU passthrough.

[1]
https://github.com/Beckhoff/freebsd-src/commits/phab/corvink/14.0/nvidia-wip/
[2] https://www.nicksherlock.com/2020/11/working-around-the-amd-gpu-
reset-bug-on-proxmox/
[3] https://reviews.freebsd.org/D41710


-- 
Kind regards,
Corvin