Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2023 13:43:26 +0000
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        virtualization@freebsd.org
Subject:   Re: bhyve nvidia gtx-1650 mobile passthru on win11
Message-ID:  <CAFDf7ULXt6AWRbkJwVOm4D0CW6DNQqv=XA34w1onZg2QYCHqkg@mail.gmail.com>
In-Reply-To: <4c4dc909-9da6-41e0-99d1-72337a51484b@Duedinghausen.eu>
References:  <CAFDf7UJqsaqeM=XFknWx9Q0q4SKSB1fukWfMn5LOiD9tYq6e5A@mail.gmail.com> <CA%2B1FSihYp90ZBZ2Snh3NmyKN-COWjCaPXkbA9TPnv94wKECYnw@mail.gmail.com> <CAFDf7UJcJL__%2B2AO1Dy92oSJB9JR69%2BuTjkM_TAE020o1KuAhg@mail.gmail.com> <CA%2B1FSigxSmV5CmxmnDSND3aHRTeX0Mqke%2BuWUxTnbZXiqxVxbg@mail.gmail.com> <f3cf5047-e66e-465b-9b70-9a742ff06bc2@Duedinghausen.eu> <CA%2B1FSigH0tQzsjdumV4VAaLVZUweJftzoKr88ui=WgoVd-sG5g@mail.gmail.com> <4c4dc909-9da6-41e0-99d1-72337a51484b@Duedinghausen.eu>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
It's easy to configure and run a graphics passthru,
https://wiki.freebsd.org/bhyve/pci_passthru gives that info.

Stephan Althaus <Stephan.Althaus@duedinghausen.eu> escreveu no dia terça,
19/12/2023 à(s) 07:43:

> On 12/17/23 11:51, Mario Marietto wrote:
>
> AMD gpu works great with bhyve and they are recognized by a Windows vm.
>
> On Sun, Dec 17, 2023 at 11:43 AM Stephan Althaus <
> Stephan.Althaus@duedinghausen.eu> wrote:
>
>> On 12/16/23 18:49, Mario Marietto wrote:
>>
>> for sure you can use nVidia gpu on the host and the intel one on the
>> windows 11 vm.
>>
>> Il sab 16 dic 2023, 18:11 Nuno Teixeira <eduardo@freebsd.org> ha scritto:
>>
>>> It seems that nvidia passtrhu isn't working (yet).
>>>
>>> Related to intel integrated graphics, I don't know if I can use it for
>>> ppt since it is in use by freebsd.
>>> Other thing, if I boot with BIOS on nvidia dedicated then intel doesn't
>>> show up in pciconf...
>>>
>>> Mario Marietto <marietto2008@gmail.com> escreveu no dia sábado,
>>> 16/12/2023 à(s) 16:34:
>>>
>>>> Are you trying to pass the nvidia gpu to windows vm ? or your intel gpu
>>>> ?
>>>>
>>>> Il sab 16 dic 2023, 17:07 Nuno Teixeira <eduardo@freebsd.org> ha
>>>> scritto:
>>>>
>>>>> 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)
>>>>>
>>>>
>>>
>>> --
>>> Nuno Teixeira
>>> FreeBSD Committer (ports)
>>>
>> Hello!
>>
>> i had just the same, here on illumos.
>> i didn't get it to work, but i had a similar problem with an AMD card :-/
>>
>> i think i will try it again in Jan/2024, and then with a fresh install of
>> windows...
>>
>> Do you use UEFI boot on both host and vm?
>>
>> Regards,
>> Stephan
>>
>>
>>
>
> --
> Mario.
>
> Hello!
>
> I have a AMD RX 6400.
>
> Is there a HCL for GPU passthrough ?
> Any HowTo for AMD card passthrough ?
>
> Is the AMD RX 6400 ht by the "RESET" hw bug ?
>
>
> Any hints are welcome :-)
>
>
> Regards,
>
> Stephan Althaus
>
>
>

-- 
Nuno Teixeira
FreeBSD Committer (ports)

[-- Attachment #2 --]
<div dir="ltr"><div>It&#39;s easy to configure and run a graphics passthru, <a href="https://wiki.freebsd.org/bhyve/pci_passthru">https://wiki.freebsd.org/bhyve/pci_passthru</a>; gives that info.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Stephan Althaus &lt;<a href="mailto:Stephan.Althaus@duedinghausen.eu">Stephan.Althaus@duedinghausen.eu</a>&gt; escreveu no dia terça, 19/12/2023 à(s) 07:43:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <div>On 12/17/23 11:51, Mario Marietto
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">AMD gpu works great with bhyve and they are
        recognized by a Windows vm. <br>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Sun, Dec 17, 2023 at
          11:43 AM Stephan Althaus &lt;<a href="mailto:Stephan.Althaus@duedinghausen.eu" target="_blank">Stephan.Althaus@duedinghausen.eu</a>&gt;
          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">
          <div>
            <div>On 12/16/23 18:49, Mario Marietto wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="auto">for sure you can use nVidia gpu on the
                host and the intel one on the windows 11 vm.</div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">Il sab 16 dic 2023,
                  18:11 Nuno Teixeira &lt;<a href="mailto:eduardo@freebsd.org" target="_blank">eduardo@freebsd.org</a>&gt;
                  ha scritto:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                  <div dir="ltr">
                    <div>It seems that nvidia passtrhu isn&#39;t working
                      (yet).</div>
                    <div><br>
                    </div>
                    <div>Related to intel integrated graphics, I don&#39;t
                      know if I can use it for ppt since it is in use by
                      freebsd.</div>
                    <div>Other thing, if I boot with BIOS on nvidia
                      dedicated then intel doesn&#39;t show up in pciconf...</div>
                  </div>
                  <br>
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">Mario Marietto
                      &lt;<a href="mailto:marietto2008@gmail.com" rel="noreferrer" target="_blank">marietto2008@gmail.com</a>&gt;
                      escreveu no dia sábado, 16/12/2023 à(s) 16:34:<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                      <div dir="auto">Are you trying to pass the nvidia
                        gpu to windows vm ? or your intel gpu ?</div>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr" class="gmail_attr">Il sab 16 dic
                          2023, 17:07 Nuno Teixeira &lt;<a href="mailto:eduardo@freebsd.org" rel="noreferrer" target="_blank">eduardo@freebsd.org</a>&gt;
                          ha scritto:<br>
                        </div>
                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                          <div dir="ltr">
                            <div>Hello all,</div>
                            <div><br>
                            </div>
                            <div>Specs:<br>
                            </div>
                            <div>- laptop with integrated intel +
                              dedicated nvidia<br>
                            </div>
                            <div>- 15-CURRENT 3b1904d9eb04 amd64</div>
                            <div>- win11 with nvme and tpm<br>
                            </div>
                            <div><br>
                            </div>
                            <div>I&#39;m sharing my results with nvidia
                              passthru:</div>
                            <div>###<br>
                            </div>
                            <div>
                              <div>/boot/loader.conf.local:</div>
                              <div>vmm_load=&quot;YES&quot;<br>
                                pptdevs=&quot;1/0/0 1/0/1&quot;<br>
                              </div>
                            </div>
                            <div><br>
                            </div>
                            <div>
                              <div>ppt0@pci0:1:0:0:      
                                 class=0x030000 rev=0xa1 hdr=0x00
                                vendor=0x10de device=0x1f99
                                subvendor=0x17aa subdevice=0x3fa5<br>
                                    vendor     = &#39;NVIDIA Corporation&#39;<br>
                                    device     = &#39;TU117M [GeForce GTX
                                1650 Mobile / Max-Q]&#39;<br>
                                    class      = display<br>
                                    subclass   = VGA<br>
                                ppt1@pci0:1:0:1:        class=0x040300
                                rev=0xa1 hdr=0x00 vendor=0x10de
                                device=0x10fa subvendor=0x17aa
                                subdevice=0x3ffb<br>
                                    vendor     = &#39;NVIDIA Corporation&#39;<br>
                                    class      = multimedia<br>
                                    subclass   = HDA</div>
                              <div><br>
                              </div>
                              <div>bhyve:<br>
                              </div>
                              <div>-s 6:0,passthru,1/0/0 -s
                                6:1,passthru,1/0/1</div>
                              <div>###</div>
                              <div><br>
                              </div>
                              <div>- Installed nvidia drivers without
                                problems</div>
                              <div>- graphic card is detected but is
                                deactivated with a triangle and a &quot;!&quot;:</div>
                              <div>  &quot;Windows stopped this device...
                                code 43&quot;<br>
                              </div>
                              <div>- hda is detected and shows no
                                problem<br>
                              </div>
                              <div><br>
                              </div>
                              <div>I&#39;ve read that some nvidia cards are
                                working...</div>
                              <div>Any tips are welcome.<br>
                              </div>
                              <div><br>
                              </div>
                              <div>Not sure if it is possible to use
                                intel integrated as it is already in use
                                by OS.<br>
                              </div>
                              <div><br>
                              </div>
                              <div>Thanks,<br>
                              </div>
                            </div>
                            <div><br>
                              <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>
                          </div>
                        </blockquote>
                      </div>
                    </blockquote>
                  </div>
                  <br clear="all">
                  <br>
                  <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>
                </blockquote>
              </div>
            </blockquote>
            <p>Hello!</p>
            <p>i had just the same, here on illumos. <br>
              i didn&#39;t get it to work, but i had a similar problem with
              an AMD card :-/</p>
            <p>i think i will try it again in Jan/2024, and then with a
              fresh install of windows...</p>
            <p>Do you use UEFI boot on both host and vm?<br>
            </p>
            <p>Regards,<br>
              Stephan</p>
            <p><br>
            </p>
          </div>
        </blockquote>
      </div>
      <br clear="all">
      <br>
      <span class="gmail_signature_prefix">-- </span><br>
      <div dir="ltr" class="gmail_signature">Mario.<br>
      </div>
    </blockquote>
    <p>Hello!</p>
    <p>I have a AMD RX 6400. <br>
    </p>
    <p>Is there a HCL for GPU passthrough ? <br>
      Any HowTo for AMD card passthrough ?</p>
    <p>Is the AMD RX 6400 ht by the &quot;RESET&quot; hw bug ?</p>
    <p><br>
    </p>
    <p>Any hints are welcome :-)</p>
    <p><br>
    </p>
    <p>Regards,</p>
    <p>Stephan Althaus</p>
    <p><br>
    </p>
  </div>

</blockquote></div><br clear="all"><br><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>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7ULXt6AWRbkJwVOm4D0CW6DNQqv=XA34w1onZg2QYCHqkg>