From nobody Tue Dec 19 13:43:26 2023 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SvdFS4mRGz54Gjt for ; Tue, 19 Dec 2023 13:43:40 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SvdFS26Jfz3XHf for ; Tue, 19 Dec 2023 13:43:40 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702993420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rMJRNDtyqzRFYrq8o31ss1nlFOdnr8YGcMAU+Y1otIc=; b=sdwOL69vkZafXWP+qxsnZQ+zSkXIA0stC6EAAaCTyPz4iMf4G/drF5C10MolOGTl3CNsD0 3Vnb5jlCrDuCReLQnZm364ubtHMmW7fqgFQfp9EgUKNpvxL6Y7Ek1ImfIg7lpvzRD7IP0p azDxr/FiHOMyvpi37WlrpoTEf+j6e8j3eVkXLVhb2uUX0tvpDP79rSnoM9RtjrPyNYwP/L j4encC9l2bfhydmgsIhq/HYU1SgKIOSUWRnlPQiiX8+rQ4QdXQ+HKF/mkTxZmcjWVGVLI3 piHO9kaw+IVCj1o66yaObkKZzQdjxKlhef5KpiMp5in/cwmipSVk4DKd0lPzkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702993420; a=rsa-sha256; cv=none; b=YKS9LNY+m48zg/KZqselLTF2wr9A/1E3yC656M64whFmalYhrxrK65eOkABXi5TfU8MwbD Hf3QVS4+6rkEIG+XhtkjaeFrRY0M8Oquh1MxwkdpkxzgEAVCLbeghYv3+VzpBKnhYDugP7 PTY9nHir0Z9Pq7TDYjr3Q4GV/NX/mLUBT0255fYSyrsOajfQhe/FXB6DmvK9VrDVNOivNn ob8ZFS7IbiA0FqO1DEHFfC8dY6+e30smk4C0vHm1YvuubGlcOfqcczypg/S1vnDr/+EzZW xa3YeiuhtnEq3ztuCdKUd8mgRf6FZ9FBU5Oz1xkOSPQhd/gCfMA22TfGGarlLA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702993420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rMJRNDtyqzRFYrq8o31ss1nlFOdnr8YGcMAU+Y1otIc=; b=elkhXn98Gqi0bStWAocQmDMg3V4TRMgfc9Bdis9ryin1KhgdqxBq40bsruSKoslqEvRbt3 9DAkLUtGYOohwjQNmvWqzvHN8c/p9IZYQoCDonYgrhux/VPmmUypRvbXoamlNdo6BlsfG2 ssAvcjfgEiBIfUYvnly0be1Pk1B8mSX7AQbLAtcbGAwEaE/b0my4bUAf0p6uXPytZpM5l7 wrCoQFme5FsB0Fe0R52ZXoDpRNJN5xI/9B2YZdGMRkKwLx8c10kavxURrwQHMIj/+BuxX7 KdB1eQYuEgmGyoa39+W6wqLiGzeG7MrcQjM7HKzFmWhbh6WfMGlQPfBxZ4TR9g== Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SvdFS10CMz18Dc for ; Tue, 19 Dec 2023 13:43:40 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f48.google.com with SMTP id ada2fe7eead31-466a4d46138so298930137.1 for ; Tue, 19 Dec 2023 05:43:40 -0800 (PST) X-Gm-Message-State: AOJu0Yyvuh+Bp8Oz5nIy/9HZY90s/7ssysAMOXQEH1/tDMoblpuzQsHu +SgpKGskc+ZvoGVP9QMmGac5H0L7ioCnEwhN8Pk= X-Google-Smtp-Source: AGHT+IEethDlrsJRkDz3M58ZKcFqXuLxhjJjFJvubNk1ChmvP0mSOXuqz4AqU22ZBcxAAubZVBqZaBsolfXLacIfPUI= X-Received: by 2002:a05:6102:3ca2:b0:466:a06f:5d3d with SMTP id c34-20020a0561023ca200b00466a06f5d3dmr1627059vsv.4.1702993419204; Tue, 19 Dec 2023 05:43:39 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: <4c4dc909-9da6-41e0-99d1-72337a51484b@Duedinghausen.eu> In-Reply-To: <4c4dc909-9da6-41e0-99d1-72337a51484b@Duedinghausen.eu> From: Nuno Teixeira Date: Tue, 19 Dec 2023 13:43:26 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bhyve nvidia gtx-1650 mobile passthru on win11 To: virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000ce9382060cdd0db2" --000000000000ce9382060cdd0db2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It's easy to configure and run a graphics passthru, https://wiki.freebsd.org/bhyve/pci_passthru gives that info. Stephan Althaus escreveu no dia ter=C3= =A7a, 19/12/2023 =C3=A0(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=E2=80=AFAM 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 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 escreveu no dia s=C3=A1bado, >>> 16/12/2023 =C3=A0(s) 16:34: >>> >>>> Are you trying to pass the nvidia gpu to windows vm ? or your intel gp= u >>>> ? >>>> >>>> Il sab 16 dic 2023, 17:07 Nuno Teixeira 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=3D"YES" >>>>> pptdevs=3D"1/0/0 1/0/1" >>>>> >>>>> ppt0@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 >>>>> ppt1@pci0:1:0:1: class=3D0x040300 rev=3D0xa1 hdr=3D0x00 >>>>> vendor=3D0x10de device=3D0x10fa subvendor=3D0x17aa subdevice=3D0x3ffb >>>>> vendor =3D 'NVIDIA Corporation' >>>>> class =3D multimedia >>>>> subclass =3D 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 i= n >>>>> 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 o= f >> 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 > > > --=20 Nuno Teixeira FreeBSD Committer (ports) --000000000000ce9382060cdd0db2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It's easy to configure and run a graphics passthr= u, https://wiki.fre= ebsd.org/bhyve/pci_passthru gives that info.

Stephan Althaus <= Stephan.Althaus@dueding= hausen.eu> escreveu no dia ter=C3=A7a, 19/12/2023 =C3=A0(s) 07:43:
=20 =20 =20
On 12/17/23 11:51, Mario Marietto wrote:
=20
AMD gpu works great with bhyve and they are recognized by a Windows vm.

On Sun, Dec 17, 2023 at 11:43=E2=80=AFAM Stephan Althaus <Stephan.Althaus@duedinghausen.eu<= /a>> 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.

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=C3=A1bado, 16/12/2023 =C3=A0(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.or= g> 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=3D"YES"
pptdevs=3D"1/0/0 1/0/1"

ppt0@pci0:1:0:0: =C2=A0 =C2=A0 =C2=A0 =C2=A0class=3D0x030000 rev=3D0xa1 hdr=3D0x0= 0 vendor=3D0x10de device=3D0x1f99 subvendor=3D0x17aa subdevice=3D0x3fa5
=C2=A0 =C2=A0 vendor =C2=A0 =C2=A0 =3D '= ;NVIDIA Corporation'
=C2=A0 =C2=A0 device =C2=A0 =C2=A0 =3D '= ;TU117M [GeForce GTX 1650 Mobile / Max-Q]'
=C2=A0 =C2=A0 class =C2=A0 =C2=A0 =C2=A0=3D= display
=C2=A0 =C2=A0 subclass =C2=A0 =3D VGA
ppt1@pci0:1:0:1: =C2=A0 =C2=A0 =C2=A0 =C2= =A0class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x10fa subvendor=3D0x17aa subdevice=3D0x3ffb
=C2=A0 =C2=A0 vendor =C2=A0 =C2=A0 =3D '= ;NVIDIA Corporation'
=C2=A0 =C2=A0 class =C2=A0 =C2=A0 =C2=A0=3D= multimedia
=C2=A0 =C2=A0 subclass =C2=A0 =3D 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 "!&q= uot;:
=C2=A0 "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 Committ= er (ports)
--000000000000ce9382060cdd0db2--