From nobody Sun Dec 17 10:54:45 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 4StKbB4FsSz54S2r for ; Sun, 17 Dec 2023 10:54:30 +0000 (UTC) (envelope-from Stephan.Althaus@Duedinghausen.eu) Received: from mo4-p05-ob.smtp.rzone.de (mo4-p05-ob.smtp.rzone.de [81.169.146.181]) (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 (2048 bits) client-digest SHA256) (Client CN "*.smtp.rzone.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4StKb925Bfz4J8Z for ; Sun, 17 Dec 2023 10:54:29 +0000 (UTC) (envelope-from Stephan.Althaus@Duedinghausen.eu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hoewweken.de header.s=strato-dkim-0002 header.b=ofo47C6t; dkim=pass header.d=hoewweken.de header.s=strato-dkim-0003 header.b=BdrAc3m9; spf=none (mx1.freebsd.org: domain of Stephan.Althaus@Duedinghausen.eu has no SPF policy when checking 81.169.146.181) smtp.mailfrom=Stephan.Althaus@Duedinghausen.eu; arc=pass ("strato.com:s=strato-dkim-0002:i=1"); dmarc=none ARC-Seal: i=1; a=rsa-sha256; t=1702810467; cv=none; d=strato.com; s=strato-dkim-0002; b=psLg6HNAlp+Kt9rutk0sJw4oIJX2XzcH0rvH+2rghf4lB4yw14+aWwjnU/L/P65C0J /P4bJNptsW/46EmrsphH9QRH/fjeAN8xCD9u/T5Z01iRba4XUo8OMKaeXcHMsEtqLyfF Gg/re1Hj7oH3Yup61Fmn57AkQw/dW2NePonMyaaFHRH6Vorq/tnoFMO8ejw0aU8rE6kl XwVSOi/cR63HXSujEUxXYGDBNLd1xhZNbzKAhKuFdxww2P6X2IWGnJvww4uqkdIyhDcR XeoJlrHp3ewjYHDRPlnpcf0Q61IUo1zsdpSojUOIG5RB0WRt2niah9KpULCscmCUeZvI nc5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1702810467; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=FzrMUqLDzy4yiMzrp7SUA+K5Mr5Z+hd2DxkZ5DV/OBE=; b=ZFBbGTTBae7eK+1Rgp+U+ct3qDR9HitUpwtXOst+egK7X/V4YVyWulKIUdBvI7GK8l a41bYJika/QH79xrb38tDSZ8ujCcXGwaGJj/UKdb2/flq0BizhPBnoroAyFo3A/q6Y6w 6S0g3vcxIxPP+L9T7r4d2Ib8ovNN4/sfTnX+c7AvWx0tISvVCaIwicaG+4Jv3sDfCQbO fyAi7PMVMpnGTmh8W1elegP2h/VnnUTO0hmCyka916jTcuCeON8gkr/jrh9Gout9OJSJ 7hDGTnjHV1gUWhw72ipCYiAr/IfoY5RbBu8K2DNOvjvyP8nox3x0+IkgGv7d1M5m1Gox xURw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1702810467; s=strato-dkim-0002; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=FzrMUqLDzy4yiMzrp7SUA+K5Mr5Z+hd2DxkZ5DV/OBE=; b=ofo47C6tN5tOl1q8qGgwao8oltqJ/r88R//1n+g8G+Io2yi1vpcP0HNBgAuClwN5u6 8/Qaz8zsJr0aOIEZfQuAmUl55a9aak7hD9T7BSWsQiOMyZ5PvUr9YJHgM6kBw0kFXVlg zQ26ufYxMwzEj53HT6xWfV1HXaPe5b73jLyI6BXsx8AmFdWrZogawjb9BON/8QIfY+tx 8Wu/j1z83S2ZScDEanY/owHSrOYCncA3of1AnRRJBJCou5scylXwIBc+900n0kOm8vMK r8bWK0iXqVMbDuD4DhzQiFWUXnb4H0tvPRikEoyAxAPLhJO9SoiPqt69wD9EY1UNMBZb EHRw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1702810467; s=strato-dkim-0003; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=FzrMUqLDzy4yiMzrp7SUA+K5Mr5Z+hd2DxkZ5DV/OBE=; b=BdrAc3m9j7sfrg8vRcxO6qhM64HMPGUhxJWGhZGahALRA+VSBnsN5MOcdgm+C+YG66 Vb6YVrur3pUQwoHlKqCw== X-RZG-AUTH: ":O2kGeEG7b/pS1EW2TmikjLDsYYueHLp2aWg0q38nsxN1mOntnRORP93PLpfReKNjbyYtOAegfjheaQ4=" X-RZG-CLASS-ID: mo05 Received: from www.duedinghausen.eu by smtp.strato.de (RZmta 49.10.0 DYNA|AUTH) with ESMTPSA id 9f0670zBHAsR9dk (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Sun, 17 Dec 2023 11:54:27 +0100 (CET) Received: from [192.168.2.63] (speedport.ip [192.168.1.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) (Authenticated sender: steven) by www.duedinghausen.eu (Postfix) with ESMTPSA id D99C7128F46 for ; Sun, 17 Dec 2023 11:53:59 +0100 (CET) Content-Type: multipart/alternative; boundary="------------YLc0z8WjOCxOpuKVHfuUxRNl" Message-ID: Date: Sun, 17 Dec 2023 11:54:45 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: bhyve nvidia gtx-1650 mobile passthru on win11 Content-Language: en-US To: virtualization@freebsd.org References: From: Stephan Althaus In-Reply-To: Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.39 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[strato.com:s=strato-dkim-0002:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; R_DKIM_ALLOW(-0.20)[hoewweken.de:s=strato-dkim-0002,hoewweken.de:s=strato-dkim-0003]; RCVD_IN_DNSWL_LOW(-0.10)[81.169.146.181:from]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; ASN(0.00)[asn:6724, ipnet:81.169.144.0/22, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; DKIM_TRACE(0.00)[hoewweken.de:+]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[duedinghausen.eu]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4StKb925Bfz4J8Z X-Spamd-Bar: ---- This is a multi-part message in MIME format. --------------YLc0z8WjOCxOpuKVHfuUxRNl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 > 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á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 >> 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. Ok i will give it a try again :-) Thanks for confirmation! ...for the fault on my side :-) --------------YLc0z8WjOCxOpuKVHfuUxRNl Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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.

Ok i will give it a try again :-)

Thanks for confirmation!

...for the fault on my side :-)


--------------YLc0z8WjOCxOpuKVHfuUxRNl--