Date: Thu, 21 Dec 2023 07:50:28 +0000 From: Nuno Teixeira <eduardo@freebsd.org> To: virtualization@freebsd.org Subject: Re: bhyve nvidia gtx-1650 mobile passthru on win11 Message-ID: <CAFDf7U%2BD-MohxFxaDYBwscN9m2kRG-iWSB1A1-n30FE9ciT=oA@mail.gmail.com> In-Reply-To: <6837a1f2-9b28-4a49-8db6-f410853518e2@Duedinghausen.eu> References: <CAFDf7UJqsaqeM=XFknWx9Q0q4SKSB1fukWfMn5LOiD9tYq6e5A@mail.gmail.com> <101df7552fd1673ddc73e14daf518630402129c4.camel@FreeBSD.org> <CAFDf7UJPwDVBGgiC9O_F-ogfGiA5hVJTBd2Om7fpAqTgzxsRcA@mail.gmail.com> <6837a1f2-9b28-4a49-8db6-f410853518e2@Duedinghausen.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000010a810060d005b76 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Stephan, Yes, I can't run nvidia when "dynamic graphics" are enabled on bios, but I will continue to search if there is some config tweak for it. I've just found and I'm reading about a setup identical to mine (hybrid mode): https://forums.freebsd.org/threads/how-to-nvidia-in-hybrid-mode.90473/ I will post my results soon. Cheers, Stephan Althaus <Stephan.Althaus@duedinghausen.eu> escreveu no dia quarta, 20/12/2023 =C3=A0(s) 19:58: > On 12/20/23 11:02, Nuno Teixeira wrote: > > 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=3D0x030000 rev=3D0x05 hdr=3D0x00 vendor= =3D0x8086 > device=3D0x9bc4 subvendor=3D0x17aa subdevice=3D0x3fa5 > vendor =3D 'Intel Corporation' > device =3D 'CometLake-H GT2 [UHD Graphics]' > class =3D display > subclass =3D VGA > > vgapci0@pci0:*1:0:0*: class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor= =3D0x10de > device=3D0x1f99 subvendor=3D0x17aa subdevice=3D0x3fa5 > vendor =3D 'NVIDIA Corporation' > device =3D 'TU117M [GeForce GTX 1650 Mobile / Max-Q]' > class =3D display > subclass =3D VGA > ### > > /boot/loader.conf: > vmm_load=3D"YES" > pptdevs=3D"*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=3D"*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 firmwar= e > gets updated/patched. > > Thanks, > -- > Nuno Teixeira > FreeBSD Committer (ports) > > Hi Nuno! > If the laptops GPU setup is like "optimus" you will encounter problems > runing Xorg on your nvidia GPU. > I have a DELL 7720 with dedicated physical ports from the nvidia card to > the display output(s), running Xorg on nvidia here but having the intel > part _disabled_ in BIOS. > These mobile dual GPU setups aren't that easy like multiple PCIe cards in > a desktop "PC"... > > But maybe there is a solution for your laptop somewhere.. > > Regards, > Stephan > > --=20 Nuno Teixeira FreeBSD Committer (ports) --00000000000010a810060d005b76 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello Stephan,</div><div><br></div><div>Yes, I can= 9;t run nvidia when "dynamic graphics" are enabled on bios, but I= will continue to search if there is some config tweak for it.<br></div><di= v><br></div><div>I've just found and I'm reading about a setup iden= tical to mine (hybrid mode):</div><div><a href=3D"https://forums.freebsd.or= g/threads/how-to-nvidia-in-hybrid-mode.90473/">https://forums.freebsd.org/t= hreads/how-to-nvidia-in-hybrid-mode.90473/</a></div><div><br></div><div>I w= ill post my results soon.</div><div><br></div><div>Cheers,<br></div></div><= br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Stephan= Althaus <<a href=3D"mailto:Stephan.Althaus@duedinghausen.eu">Stephan.Al= thaus@duedinghausen.eu</a>> escreveu no dia quarta, 20/12/2023 =C3=A0(s)= 19:58:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px = 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u> =20 =20 =20 <div> <div>On 12/20/23 11:02, Nuno Teixeira wrote:<br> </div> <blockquote type=3D"cite"> =20 <div dir=3D"ltr"> <div>Hi Corvin,<br> </div> <br> <div class=3D"gmail_quote"> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8= ex;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=C2=A0+ 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>: =C2=A0 =C2=A0 class=3D0x030000 r= ev=3D0x05 hdr=3D0x00 vendor=3D0x8086 device=3D0x9bc4 subvendor=3D0x17aa subdevice=3D0x3fa5<br> =C2=A0 =C2=A0 vendor =C2=A0 =C2=A0 =3D 'Intel Corporation&#= 39;<br> =C2=A0 =C2=A0 device =C2=A0 =C2=A0 =3D 'CometLake-H GT2 [UH= D Graphics]'<br> =C2=A0 =C2=A0 class =C2=A0 =C2=A0 =C2=A0=3D display<br> =C2=A0 =C2=A0 subclass =C2=A0 =3D VGA</div> <div><br> </div> <div>vgapci0@pci0:<b>1:0:0</b>: =C2=A0 =C2=A0 class=3D0x030000 re= v=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1f99 subvendor=3D0x17aa subdevice=3D0x3fa5<br> =C2=A0 =C2=A0 vendor =C2=A0 =C2=A0 =3D 'NVIDIA Corporation&= #39;<br> =C2=A0 =C2=A0 device =C2=A0 =C2=A0 =3D 'TU117M [GeForce GTX= 1650 Mobile / Max-Q]'<br> =C2=A0 =C2=A0 class =C2=A0 =C2=A0 =C2=A0=3D display<br> =C2=A0 =C2=A0 subclass =C2=A0 =3D VGA</div> <div>###</div> <div><br> </div> <div>/boot/loader.conf:</div> <div>vmm_load=3D"YES"<br> pptdevs=3D"<b>0/2/0</b>"</div> <div><br> </div> <div>etc/X11/xorg.conf.d/20-drivers.conf:</div> <div>Section "Device"<br> =C2=A0=C2=A0=C2=A0 Identifier "Card0"<br> =C2=A0=C2=A0=C2=A0 Driver "nvidia"<br> =C2=A0=C2=A0=C2=A0 BusID =C2=A0"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>=C2=A0passthru0=3D"<b>0/2/0</b>")</div> <div><br> </div> <div>I've already did this:=C2=A0</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=3D"gmail_signature_prefix">-- </span><br> <div dir=3D"ltr" class=3D"gmail_signature"> <div dir=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br> FreeBSD Committer (ports)</span></div> </div> </div> </blockquote> <p>Hi Nuno!<br> If the laptops GPU setup is like "optimus" you will encount= er problems runing Xorg on your nvidia GPU.<br> I have a DELL 7720 with dedicated physical ports from the nvidia card to the display output(s), running Xorg on nvidia here but having the intel part _disabled_ in BIOS.<br> These mobile dual GPU setups aren't that easy like multiple PCIe cards in a desktop "PC"...<br> <br> But maybe there is a solution for your laptop somewhere.. <br> <br> Regards,<br> Stephan<br> <br> </p> </div> </blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l= tr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committ= er (ports)</span></div></div> --00000000000010a810060d005b76--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7U%2BD-MohxFxaDYBwscN9m2kRG-iWSB1A1-n30FE9ciT=oA>