From nobody Sun Dec 17 12:28:29 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 4StMgs3t3zz54YK4 for ; Sun, 17 Dec 2023 12:28:41 +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 4StMgs1nFbz4Nk2 for ; Sun, 17 Dec 2023 12:28:41 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702816121; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dRnpOMxYa/jTfcJGtkOGBVbfo/3sccWYgbK4+8GdQ9Y=; b=dirQd/QniWun34p97vRWLK3GLpZydoITv1pfSJ1oX5zhyrKl+vGAZIJtvTUi+M/LjXxaBc BOKx985NiJnvWk/1MJSpKdrvm0A7N3vLJXoqgjS5m8Y4t4MIgYS+IC7hiYZtw1dgOqKhew ZdQZpklgGNWjXmqTWJLMjPMwXo0VxesPnQ8y49HTwBI12/rE75GCOyjm4bg5hraO1FPdTE hPIbBu52cMEzb6bFqiHEX4Of4w54KXogfqs44PSSpa86L3TEqb6C4gPrhheQiO2hit0Cmx v4MmnZSUC0FJHKezlcxIi4ObzMbspvgEj8d2uvpm5j/38JJ2mdiVDnX1PD4Khw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702816121; a=rsa-sha256; cv=none; b=YI891LNbXb5Zl9EoEJIw4AUbhqRMAIyb4umVRoEbq4zZhnLpBrvmP4ulRsRmTLFtqA0R/g Z/O9SHpIQz4Fw9rCVPtOuUe0mjjkoGwYTq1McjDUk5iFC2yOVd/nWAqqSgDoIhGGWVY9Bd famzAY+uOvHK357z8ZYARFxCmXJIx9X2WHMqr1dq1CyGUoJv5u1aAUwLBeuR1wEPLYr74w yVspiS/5N06En8/VDrolMVlp3+LGjfbUHroEIOJKEBqxW8kG/9+7ZyuCb3ShUPv0oq1iVF IW31Lw55HnVCCu7NAQ0g0LO4T1E6kLKIwhgvB4HD24irobzJPWDUZcPJo2o1zQ== 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=1702816121; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dRnpOMxYa/jTfcJGtkOGBVbfo/3sccWYgbK4+8GdQ9Y=; b=YP7M8ivW8KKcO7Qq2F6EQs4Ei+LxUzJ8sdbbm2iAZomHUhe8mS7hEmd689EQQPTPxIdZZI /n3f0RI/nXTHnfcIHEEfz/ePn5XV5CZsWBUW6rgT9ccjErAi7uUK52o4Ut/Ot2CSGCHGdN rRil6Xd2wnw5289ArT5s5Zfz0QanaSmyQJCmCAP8H0hXgCoOpKPTPYUssMWmWXY62k+wdv e/CbyMKfu4lP0lR1KFfy+7HfOuLhNV4KM6NNYseJVCKDJlZicRn7SohUuH0gs9Goqk7+tD ozhvcOG5N/mUFQFM2Ppf546QNaWxkaC5RIWlNk7lK8+9uvMClaswYpE45g76+A== Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (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 4StMgs0jv2z19LH for ; Sun, 17 Dec 2023 12:28:41 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-4260b6eaae9so25371201cf.1 for ; Sun, 17 Dec 2023 04:28:41 -0800 (PST) X-Gm-Message-State: AOJu0YwBFhqoc3LzddSPFpe7p5hNvyf63cNRjTOHs4hGkYC4dHjNplz/ 3wZDcSzOdhRtp9riGVa6TAEdZdzdpW1NVUyuVKY= X-Google-Smtp-Source: AGHT+IH6PxnEothVj4tqasI4r1qVgr8KGJemXGjAB5WQsEetjMxAXBQNuxwD21GkJDYzc3CMP75RnqUn2rw29aUUvfY= X-Received: by 2002:a05:622a:164f:b0:425:aa85:e014 with SMTP id y15-20020a05622a164f00b00425aa85e014mr20227593qtj.137.1702816120381; Sun, 17 Dec 2023 04:28:40 -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: Nuno Teixeira Date: Sun, 17 Dec 2023 12:28:29 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bhyve nvidia gtx-1650 mobile passthru on win11 To: Stephan Althaus Cc: virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000f92816060cb3c5fb" --000000000000f92816060cb3c5fb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > Do you use UEFI boot on both host and vm? Yes. Stephan Althaus escreveu no dia domingo, 17/12/2023 =C3=A0(s) 10:43: > 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 Nuno Teixeira FreeBSD Committer (ports) --000000000000f92816060cb3c5fb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Do you use UEFI boot on both host and vm?
<= div>Yes.

Stephan Althaus <Stephan.Althaus@duedinghausen.eu> escreveu no dia dom= ingo, 17/12/2023 =C3=A0(s) 10:43:
=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




--
Nuno Teixeira
FreeBSD Committ= er (ports)
--000000000000f92816060cb3c5fb--