From nobody Wed Dec 20 10:02:12 2023 X-Original-To: freebsd-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 4Sw8Hj00T5z54l1R for ; Wed, 20 Dec 2023 10:02:25 +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 4Sw8Hh6ZDDz4bsx; Wed, 20 Dec 2023 10:02:24 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703066544; 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=FJnJ1irS8gTEwAdz0mIXPPGpG/8qrzbfZauDF7c+1to=; b=uMPvITEZlV9O7sTCpiB0VlBicBYWpBPgnyKMst9TrktXrS0W87bM+Omcm8FS0Pb5RKSXXg NPV0Z4I+uv4HOkLLbyGJDlQIP5Bo1HDPKC/70ZqYZfgUrCRwY1kiy5BL+gHnwAqDJkaWAY LocuWDNnbiT/Eddr2AAfDUihRjd8di7W+0wNQaA9oWmhSyV3rwPtK0yKUrlMq9HNVikmv1 qjYHFYTEomfsWYRhXOzov8VrjkkwfmgqPwGGjkoAu+5tF4NfEGW4mCOHGX86/vCv4A7+dv UKfxzfAq0vFkm2wxxsg4Z7qRl5C5S7YypAte8NSIjpjAn4o1V/wUZgcZ/DWQsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703066544; a=rsa-sha256; cv=none; b=I+8RXagrc4igwWhwcvdLiLq1wD/TVYh05lgbFFemYRiGjWYKKe6dM5TkotMiOXlXaoefii NerEGmZD7AJxnvREyCfr12paJJvGnrXWyn1WeO4kmEFeeNeiJqEiJF6cGH01X38wE20/5w 2e5RePE9TG0M48QLs5ZqhQCw4b8dzJMIoiWM6SGISYTKwCNeAEC/cJS6b38KG7+RAkt+hk S8wxB4BXcWkLbq8eaDB6qMjgV7UQabtshovY6jwgx2RqKCMWHNFHSfXx2qcY57Tv3phWTR KZL5aYjxqakfdm8rPePxgyRebU6OJaLTu285AjOTtNL4rijIgZC2JP6OUSrabg== 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=1703066544; 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=FJnJ1irS8gTEwAdz0mIXPPGpG/8qrzbfZauDF7c+1to=; b=mBERtUXiVuwC4/oxJ1qkz37LTLV2jKt+mI1HI8n/NgFxlbCUQ1J/ZkNDoh4uINR82Wr0/1 xk0PEEKqDUTTSDq17vhVJnwFNwT0EpIlz7C63guyjItsJVSQkVOxp9ZTG1b1ja0aIaJJXu 4AE2c4A/CTo9RFjk5Du2dZAOklVcORvBI9aB2H4dI8zM34l8hVlsPDhIiG09NwDaiR1io3 13/ZZdtHborNrlifDdppFRVxSMWm1B+pzkwRen7uAkOVUGYdRwxiiZFUyBXDomtpqKUkbM 4L4j6xlq8X332FBROXm3MYTcWf9q7ypCkNmkrgi3XCElZlpQc5DP5/1XqsrfDg== 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 4Sw8Hh5VbXz66q; Wed, 20 Dec 2023 10:02:24 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-425cbee636fso52564581cf.0; Wed, 20 Dec 2023 02:02:24 -0800 (PST) X-Gm-Message-State: AOJu0YyNVfEsUOVF8JdwzmT1eZWRJislRK5BOmynJrh8xtEVxhR/L+q1 pC12HkXxK3Mc6N22jv56wAVBAB5MBBbzdhMydTQ= X-Google-Smtp-Source: AGHT+IH9nEma7FmSY7UrWtcsTCzD2e4C068y51sFDmIaaM30YcFykOziqMX+pHItXvVu1LWw2wMt4NukdJY8pHs1Wh0= X-Received: by 2002:a05:622a:40f:b0:425:8396:3ba2 with SMTP id n15-20020a05622a040f00b0042583963ba2mr27534458qtx.126.1703066543897; Wed, 20 Dec 2023 02:02:23 -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: <101df7552fd1673ddc73e14daf518630402129c4.camel@FreeBSD.org> In-Reply-To: <101df7552fd1673ddc73e14daf518630402129c4.camel@FreeBSD.org> From: Nuno Teixeira Date: Wed, 20 Dec 2023 10:02:12 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bhyve nvidia gtx-1650 mobile passthru on win11 To: =?UTF-8?Q?Corvin_K=C3=B6hne?= Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="00000000000060c343060cee142a" --00000000000060c343060cee142a Content-Type: text/plain; charset="UTF-8" Hi Corvin, intel: > Requires a patched EDKII firmware [3]. Unfortunately, it's not merged > yet. Btw. even if you only have an Intel card available you can use it > for GPU passthrough. I'm runing a laptop with intel graphics dynamics + dedicated nvidia (Lenovo Legion 5i) and I'm thinking giving a try intel passtrhu: ### vgapci1@pci0:*0:2:0*: class=0x030000 rev=0x05 hdr=0x00 vendor=0x8086 device=0x9bc4 subvendor=0x17aa subdevice=0x3fa5 vendor = 'Intel Corporation' device = 'CometLake-H GT2 [UHD Graphics]' class = display subclass = VGA vgapci0@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 ### /boot/loader.conf: vmm_load="YES" pptdevs="*0/2/0*" etc/X11/xorg.conf.d/20-drivers.conf: Section "Device" Identifier "Card0" Driver "nvidia" BusID "PCI:*1:0:0*" EndSection bhyve: -s 6:0,passthru,*0/2/0* (vm-bhyve vm config: passthru0="*0/2/0*") I've already did this: - ppt gets configured for intel - xorg doesn't start with xorg "nvidia" config - xorg starts with scfb (with empty xorg config) - start vm and crashes my laptop I'm just looking for the correct setup to try it again when EDKII firmware gets updated/patched. Thanks, -- Nuno Teixeira FreeBSD Committer (ports) --00000000000060c343060cee142a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Corvin,

intel:
Requires a patched EDKII firmware [3]. Unfortunately, it's not merged yet. Btw. even if you only have an Intel card available you can use it
for GPU passthrough.

I'm runing a lapto= p with intel graphics dynamics=C2=A0+ dedicated nvidia (Lenovo Legion 5i) a= nd I'm thinking giving a try intel passtrhu:

###
vgapci1@pci0:0:2:0: =C2=A0 =C2=A0 class=3D0x03= 0000 rev=3D0x05 hdr=3D0x00 vendor=3D0x8086 device=3D0x9bc4 subvendor=3D0x17= aa subdevice=3D0x3fa5
=C2=A0 =C2=A0 vendor =C2=A0 =C2=A0 =3D 'Intel = Corporation'
=C2=A0 =C2=A0 device =C2=A0 =C2=A0 =3D 'CometLake-H= GT2 [UHD Graphics]'
=C2=A0 =C2=A0 class =C2=A0 =C2=A0 =C2=A0=3D dis= play
=C2=A0 =C2=A0 subclass =C2=A0 =3D VGA

vgap= ci0@pci0:1:0:0: =C2=A0 =C2=A0 class=3D0x030000 rev=3D0xa1 hdr=3D0x00= 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
###

/= boot/loader.conf:
vmm_load=3D"YES"
pptdevs=3D"<= b>0/2/0"

etc/X11/xorg.conf.d/20-drivers.c= onf:
Section "Device"
=C2=A0=C2=A0=C2=A0 Identifier = "Card0"
=C2=A0=C2=A0=C2=A0 Driver "nvidia"
=C2=A0= =C2=A0=C2=A0 BusID =C2=A0"PCI:1:0:0"
EndSection

bhyve:
-s 6:0,passthru,0/2/0
(= vm-bhyve vm config:
=C2=A0passthru0=3D"0/2/0")

I've already did this:=C2=A0
- ppt ge= ts configured for intel
- xorg doesn't start with xorg "= nvidia" config
- xorg starts with scfb (with empty xorg conf= ig)
- start vm and crashes my laptop

I'm ju= st looking for the correct setup to try it again when EDKII firmware gets u= pdated/patched.

Thanks,
--
Nuno = Teixeira
FreeBSD Committer (ports)
--00000000000060c343060cee142a--