From nobody Tue Dec 19 07:43:11 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 4SvTFD0K1kz54qT1 for ; Tue, 19 Dec 2023 07:42:56 +0000 (UTC) (envelope-from Stephan.Althaus@Duedinghausen.eu) Received: from mo4-p05-ob.smtp.rzone.de (mo4-p05-ob.smtp.rzone.de [85.215.255.130]) (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 4SvTFB59XVz3K24 for ; Tue, 19 Dec 2023 07:42:53 +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="mQJ/sFQm"; dkim=pass header.d=hoewweken.de header.s=strato-dkim-0003 header.b=olCPo+3R; spf=none (mx1.freebsd.org: domain of Stephan.Althaus@Duedinghausen.eu has no SPF policy when checking 85.215.255.130) 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=1702971771; cv=none; d=strato.com; s=strato-dkim-0002; b=MhqOlJid+rHY0FvB4mtVRzTD/U+vHtwv5alkgyG/hJLPJWB0PeLqA4xz7o3/esqrKx zqgKw0fvMj3z4iNpsxFtJqNCO+P1QjS2ALDtbgRLP7CGVaWMNM4ySYOfqJROyFnrzEQk CDOv2JgsIdRdkTbAaLofGOLZyeORrg2797D++2ahka+tacHnogCBtYfPm4U447ZPzPNh fiK2d4PpLgzlo5jkWPcLRRHBFiVSxo8xbDKj+HWXUBA7Y3BHDxSndMnube+LfBF3N+jp lx6TMsSu7TVGXtMxSiBMaEYSmjOiNhDg+zmsw5CAelp3KDviasgmd3K7dvXE5JoeI8cW Czaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1702971771; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=1bjDsvg+tXtGfiIMNq7Pyw/Y9ZW8oGSJKVf1btNeRzs=; b=mwmbB3nKQR3PImun/3vyb7LIeLLTf0MtS8LSAsBsk6kbcopT4mORmyPSHKqWZOg3SD Gt4jhft0Nxz5OV8Uet1iq6IjC8tgQE2FwbXv6TJH9Z/+7ZluCojqQG0IOVjcZTUPP60g J2TXI1uGvo5+gDg7BFNi+RJf/b0PPUigWhojl8Qi2abqwK7aJGvastdmvZ+A8sm0x2at TUpe+jf4EvU3NeH4BEwC3INuIND03g7w162wIP9ZBWagM9v34hBsh1li8t/sWtfRD5H2 iUvZuAvUt+s1LljsaTCNINJkXRDzA77rVSK74zbTxdwF3xrutP0cV8qHPgZ28hNSA0S2 elBg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1702971771; s=strato-dkim-0002; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=1bjDsvg+tXtGfiIMNq7Pyw/Y9ZW8oGSJKVf1btNeRzs=; b=mQJ/sFQmOalaOqsSZmQ9e0v0cY3GfTV8FNAl0RewSpfMK90LKZDsXoUx3Q4sWDC4Sl GpdUdaNb5ucmIOT7JdpMsXKCm0ugeuqNvX9pWpfZVRdnZFOUjFlIA0d56kaq2iVLLu1/ /ENc2t2BMJqu1ujVo73yiJbWL+LERvq30EonKlqg0050Mu5d62d4jZd1LuADm5huRv/W l6WjIw9DhOIhFM4xsJvwTLztDKUZjL3y0Kh0lV5sNokVzUNstu/u5iA0Eez68/aU4PDF STKyOfVYpXbjVyaoLGEgdJ3DMBBHibv5nJN3i3lpxZcP6SG0APBH5dkGOkcgpLiV4G6U gpGg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1702971771; s=strato-dkim-0003; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=1bjDsvg+tXtGfiIMNq7Pyw/Y9ZW8oGSJKVf1btNeRzs=; b=olCPo+3RIkG2QVxRBiOhUp8k44VRWfwAO2SxbcuXZTGfu1A57qZrS3T4I8XoWO9w+8 jlllDvtI10z9AkBj/TAw== 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 9f0670zBJ7gpIbb (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Tue, 19 Dec 2023 08:42:51 +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 AA028129077 for ; Tue, 19 Dec 2023 08:42:23 +0100 (CET) Content-Type: multipart/alternative; boundary="------------9I0RBcySf4ErYgQA5o70nvKf" Message-ID: <4c4dc909-9da6-41e0-99d1-72337a51484b@Duedinghausen.eu> Date: Tue, 19 Dec 2023 08:43:11 +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 To: virtualization@freebsd.org References: Content-Language: en-US From: Stephan Althaus In-Reply-To: Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.29 / 15.00]; ARC_ALLOW(-1.00)[strato.com:s=strato-dkim-0002:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[hoewweken.de:s=strato-dkim-0002,hoewweken.de:s=strato-dkim-0003]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:6724, ipnet:85.215.255.0/24, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[hoewweken.de:+]; DMARC_NA(0.00)[duedinghausen.eu]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[]; 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: 4SvTFB59XVz3K24 X-Spamd-Bar: ---- This is a multi-part message in MIME format. --------------9I0RBcySf4ErYgQA5o70nvKf 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. 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 --------------9I0RBcySf4ErYgQA5o70nvKf 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.

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


--------------9I0RBcySf4ErYgQA5o70nvKf--