Date: Mon, 18 Dec 2023 11:14:29 +0100 From: Mario Marietto <marietto2008@gmail.com> To: =?UTF-8?Q?Corvin_K=C3=B6hne?= <corvink@freebsd.org> Cc: Nuno Teixeira <eduardo@freebsd.org>, FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: Re: bhyve nvidia gtx-1650 mobile passthru on win11 Message-ID: <CA%2B1FSijenifNiZNyKEihMVV4QFniPOjHSpDEJ3Q6CD1bjtDWpg@mail.gmail.com> In-Reply-To: <101df7552fd1673ddc73e14daf518630402129c4.camel@FreeBSD.org> References: <CAFDf7UJqsaqeM=XFknWx9Q0q4SKSB1fukWfMn5LOiD9tYq6e5A@mail.gmail.com> <101df7552fd1673ddc73e14daf518630402129c4.camel@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Hello Corvin, about point 1) : Nuno is trying to enable the passthru of his nvidia-gpu on Windows 11. Is your patch intended to work for Windows ? If yes,I would be ready to test it on my system. On Mon, Dec 18, 2023 at 11:02 AM Corvin Köhne <corvink@freebsd.org> wrote: > 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/ > <https://www.nicksherlock.com/2020/11/working-around-the-amd-gpu-reset-bug-on-proxmox/> > [3] https://reviews.freebsd.org/D41710 > > > -- > Kind regards, > Corvin > -- Mario. [-- Attachment #2 --] <div dir="ltr"><div>Hello Corvin,</div><div><br></div><div>about point 1) : Nuno is trying to enable the passthru of his nvidia-gpu on Windows 11. Is your patch intended to work for Windows ? If yes,I would be ready to test it on my system. <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 18, 2023 at 11:02 AM Corvin Köhne <<a href="mailto:corvink@freebsd.org">corvink@freebsd.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 2023-12-16 at 16:07 +0000, Nuno Teixeira wrote:<br> > Hello all,<br> > <br> > Specs:<br> > - laptop with integrated intel + dedicated nvidia<br> > - 15-CURRENT 3b1904d9eb04 amd64<br> > - win11 with nvme and tpm<br> > <br> > I'm sharing my results with nvidia passthru:<br> > ###<br> > /boot/loader.conf.local:<br> > vmm_load="YES"<br> > pptdevs="1/0/0 1/0/1"<br> > <br> > ppt0@pci0:1:0:0: class=0x030000 rev=0xa1 hdr=0x00<br> > 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<br> > ppt1@pci0:1:0:1: class=0x040300 rev=0xa1 hdr=0x00<br> > vendor=0x10de device=0x10fa subvendor=0x17aa subdevice=0x3ffb<br> > vendor = 'NVIDIA Corporation'<br> > class = multimedia<br> > subclass = HDA<br> > <br> > bhyve:<br> > -s 6:0,passthru,1/0/0 -s 6:1,passthru,1/0/1<br> > ###<br> > <br> > - Installed nvidia drivers without problems<br> > - graphic card is detected but is deactivated with a triangle and a<br> > "!":<br> > "Windows stopped this device... code 43"<br> > - hda is detected and shows no problem<br> > <br> > I've read that some nvidia cards are working...<br> > Any tips are welcome.<br> > <br> > Not sure if it is possible to use intel integrated as it is already<br> > in use by OS.<br> > <br> > Thanks,<br> > <br> > -- <br> > Nuno Teixeira<br> > FreeBSD Committer (ports)<br> <br> Hi,<br> <br> nvidia:<br> At the moment, nvidia gpu passthrough is not supported by upstream. I<br> have a small patch stack for nvidia [1] but it's not well tested and I<br> don't know for which guests and cards it works.<br> <br> amd:<br> Should work properly on 13.2, 14.0 and onward. Note that there's a<br> hardware bug on many cards [2].<br> <br> 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.<br> <br> [1]<br> <a href="https://github.com/Beckhoff/freebsd-src/commits/phab/corvink/14.0/nvidia-wip/" rel="noreferrer" target="_blank">https://github.com/Beckhoff/freebsd-src/commits/phab/corvink/14.0/nvidia-wip/</a><br> [2] <a href="https://www.nicksherlock.com/2020/11/working-around-the-amd-gpu-reset-bug-on-proxmox/" rel="noreferrer" target="_blank">https://www.nicksherlock.com/2020/11/working-around-the-amd-gpu-<br> reset-bug-on-proxmox/</a><br> [3] <a href="https://reviews.freebsd.org/D41710" rel="noreferrer" target="_blank">https://reviews.freebsd.org/D41710</a><br> <br> <br> -- <br> Kind regards,<br> Corvin<br> </blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSijenifNiZNyKEihMVV4QFniPOjHSpDEJ3Q6CD1bjtDWpg>
