From nobody Sun Dec 17 10:51:23 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 4StKXN3hzLz54S6F for ; Sun, 17 Dec 2023 10:52:04 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (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)) by mx1.freebsd.org (Postfix) with ESMTPS id 4StKXM3pM0z4Fj3 for ; Sun, 17 Dec 2023 10:52:03 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-50e18689828so2308922e87.2 for ; Sun, 17 Dec 2023 02:52:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702810320; x=1703415120; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Jm1fxu/ODAqKqarnmMChB5oS2iodAoQUcO74SwtM1sE=; b=KTuYIy+2Mzo96sxxA6mB83gMOCyYLe4k/Id9C51nq2tSVRRzJ62YlLkGsLtSWlUSJ6 Z3ny9Cmx7LYa7RlvL0a+MCrzki4cekT5ZA00Nm1U9bGpb0IUCNREqd3rzNBxuNfd1fOd srcn1MoQYD+AeMz0b/RmPhxd9darLyDp/3m/emLS2dw7OpAwLYLP8xpCf4fUqM3rijTY IK+BBhMSKnUEW+Xs6t8VEPG4TGQWFnx7OHvq3R9zmyLWewSSJJ5/bQaCs6bdX/8aURh9 giJc11kQagoTteV4uiFxflZkK96w+1TVKJIkpc61s+5OLAIvWVpKcR1w2TBa/FPdYSDC CdHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702810320; x=1703415120; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Jm1fxu/ODAqKqarnmMChB5oS2iodAoQUcO74SwtM1sE=; b=YZGOMlCSOR7hKgLItAmFY9mLkjtx6n6f4QA/WWiQchkcpzv1RJ79iK/b9S9vGrYN8Y BqTOS+BEwvGI5V0Sp1Lzi/wI6aS/QAv9WgPe9fNu1nXVco6eop6Ik4slapjA+zZmIOLi kbqg+hXbm9Hb86x4tEL4IYH5NUArDG07jrr1N0m9Ytwvy3MlH6VwLeCus+bhAWZeeV/I qEwjTZm5Vo1+Df5nJc3X2f4QGnmgAP8DCwkplE6MOT0URZivss2r2/JBlqyp/iK9fcRl ZlxrhJkb9KvoC1evL1TMoj9CkDwqnGChWoMBK9PuLMjJNf878N6IvQWQEmlurHqfj4bF 43Yw== X-Gm-Message-State: AOJu0Yz6CzOpToDhYxBlIu4bJViU8P5kJuM/CQKZDjVZ3PlTwz584i+c xQ2UFswsLiemtXc9cZoujIeCF+r4eUmPLhJiPxeMjIPchgE= X-Google-Smtp-Source: AGHT+IFCF1WBtcUiiU8T9hYqYnyg90rcscbKdvjqgAw9iiD9WmItZswFgVRrx/AnomGmgjq2l6sDuYnLdJsnb5ySJLI= X-Received: by 2002:a05:6512:3093:b0:50e:16c9:ccf6 with SMTP id z19-20020a056512309300b0050e16c9ccf6mr3047342lfd.10.1702810319563; Sun, 17 Dec 2023 02:51:59 -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: In-Reply-To: From: Mario Marietto Date: Sun, 17 Dec 2023 11:51:23 +0100 Message-ID: Subject: Re: bhyve nvidia gtx-1650 mobile passthru on win11 To: Stephan Althaus Cc: virtualization@freebsd.org Content-Type: multipart/alternative; boundary="00000000000037b07a060cb26cb0" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4StKXM3pM0z4Fj3 --00000000000037b07a060cb26cb0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 gpu= ? >>> >>> 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 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 > > > --=20 Mario. --00000000000037b07a060cb26cb0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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@due= dinghausen.eu> wrote:
=20 =20 =20
On 12/16/23 18:49, Mario Marietto wrote:
=20
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 Nun= o 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 <ma= rietto2008@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.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=3D"YES"
pptdevs=3D"1/0/0 1/0/1"

ppt0@pci0:1:0:0: =C2=A0 =C2=A0 =C2=A0 =C2=A0clas= s=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1f= 99 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 multime= dia
=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 "!":
=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.
--00000000000037b07a060cb26cb0--