Date: Wed, 20 Dec 2023 10:02:12 +0000 From: Nuno Teixeira <eduardo@freebsd.org> To: =?UTF-8?Q?Corvin_K=C3=B6hne?= <corvink@freebsd.org> Cc: FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: Re: bhyve nvidia gtx-1650 mobile passthru on win11 Message-ID: <CAFDf7UJPwDVBGgiC9O_F-ogfGiA5hVJTBd2Om7fpAqTgzxsRcA@mail.gmail.com> In-Reply-To: <101df7552fd1673ddc73e14daf518630402129c4.camel@FreeBSD.org> References: <CAFDf7UJqsaqeM=XFknWx9Q0q4SKSB1fukWfMn5LOiD9tYq6e5A@mail.gmail.com> <101df7552fd1673ddc73e14daf518630402129c4.camel@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi Corvin,
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.
I'm runing a laptop with intel graphics dynamics + dedicated nvidia (Lenovo
Legion 5i) and I'm thinking giving a try intel passtrhu:
###
vgapci1@pci0:*0:2:0*: class=0x030000 rev=0x05 hdr=0x00 vendor=0x8086
device=0x9bc4 subvendor=0x17aa subdevice=0x3fa5
vendor = 'Intel Corporation'
device = 'CometLake-H GT2 [UHD Graphics]'
class = display
subclass = VGA
vgapci0@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
###
/boot/loader.conf:
vmm_load="YES"
pptdevs="*0/2/0*"
etc/X11/xorg.conf.d/20-drivers.conf:
Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:*1:0:0*"
EndSection
bhyve:
-s 6:0,passthru,*0/2/0*
(vm-bhyve vm config:
passthru0="*0/2/0*")
I've already did this:
- ppt gets configured for intel
- xorg doesn't start with xorg "nvidia" config
- xorg starts with scfb (with empty xorg config)
- start vm and crashes my laptop
I'm just looking for the correct setup to try it again when EDKII firmware
gets updated/patched.
Thanks,
--
Nuno Teixeira
FreeBSD Committer (ports)
[-- Attachment #2 --]
<div dir="ltr"><div>Hi Corvin,<br></div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
intel:<br>
Requires a patched EDKII firmware [3]. Unfortunately, it's not merged<br>
yet. Btw. even if you only have an Intel card available you can use it<br>
for GPU passthrough.</blockquote><div><br></div><div>I'm runing a laptop with intel graphics dynamics + dedicated nvidia (Lenovo Legion 5i) and I'm thinking giving a try intel passtrhu:<br></div><div><br></div><div>###<br></div><div> vgapci1@pci0:<b>0:2:0</b>: class=0x030000 rev=0x05 hdr=0x00 vendor=0x8086 device=0x9bc4 subvendor=0x17aa subdevice=0x3fa5<br> vendor = 'Intel Corporation'<br> device = 'CometLake-H GT2 [UHD Graphics]'<br> class = display<br> subclass = VGA</div><div><br></div><div>vgapci0@pci0:<b>1:0:0</b>: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1f99 subvendor=0x17aa subdevice=0x3fa5<br> vendor = 'NVIDIA Corporation'<br> device = 'TU117M [GeForce GTX 1650 Mobile / Max-Q]'<br> class = display<br> subclass = VGA</div><div>###</div><div><br></div><div>/boot/loader.conf:</div><div>vmm_load="YES"<br>pptdevs="<b>0/2/0</b>"</div><div><br></div><div>etc/X11/xorg.conf.d/20-drivers.conf:</div><div>Section "Device"<br> Identifier "Card0"<br> Driver "nvidia"<br> BusID "PCI:<b>1:0:0</b>"<br>EndSection</div><div><br></div><div>bhyve:</div><div>-s 6:0,passthru,<b>0/2/0</b></div><div>(vm-bhyve vm config:</div><div> passthru0="<b>0/2/0</b>")</div><div><br></div><div>I've already did this: </div><div>- ppt gets configured for intel</div><div>- xorg doesn't start with xorg "nvidia" config</div><div>- xorg starts with scfb (with empty xorg config)</div><div>- start vm and crashes my laptop<br><br></div><div>I'm just looking for the correct setup to try it again when EDKII firmware gets updated/patched.<br></div><div><br></div><div>Thanks,<br></div></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UJPwDVBGgiC9O_F-ogfGiA5hVJTBd2Om7fpAqTgzxsRcA>
