From nobody Wed Jan 17 00:18:00 2024 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 4TF60Y4MSWz56P1v for ; Wed, 17 Jan 2024 00:18:05 +0000 (UTC) (envelope-from michael@sloged.al) Received: from exchange.dots.no (vmi1067082.contaboserver.net [109.123.240.255]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TF60X6DQcz4TnW for ; Wed, 17 Jan 2024 00:18:04 +0000 (UTC) (envelope-from michael@sloged.al) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of michael@sloged.al designates 109.123.240.255 as permitted sender) smtp.mailfrom=michael@sloged.al Received: from exchange.dots.no (localhost6.localdomain6 [IPv6:::1]) by exchange.dots.no (Postfix) with ESMTP id 7A5787062B93 for ; Wed, 17 Jan 2024 01:18:02 +0100 (CET) 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 From: "=?iso-8859-1?B?TWljaGFlbCBTbPhnZWRhbA==?=" To: "freebsd-virtualization@FreeBSD.org" Importance: Normal Sensitivity: Normal Date: Wed, 17 Jan 2024 01:18:00 +0100 Subject: bhyve intel 530 integrated graphics error Thread-Topic: bhyve intel 530 integrated graphics error Thread-Index: AdpI2UOvnaNjRUVjR3e19BjvVTqXLw== Message-ID: Content-Language: en-us X-MS-Exchange-Organization-SCL: -1 Content-ID: <8b34665c04ae0b46bbbd50a7f02ab959@sloged.al> X-Mailer: gromox-emsmdb 2.9.69.fd54100 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_832ED729.5CFB408" X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.14 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_MIXED_CHARSET(0.56)[subject]; SUBJECT_ENDS_SPACES(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:109.123.240.255:c]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:51167, ipnet:109.123.240.0/20, country:DE]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@FreeBSD.org]; TO_DN_EQ_ADDR_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[sloged.al]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCPT_COUNT_ONE(0.00)[1] X-Rspamd-Queue-Id: 4TF60X6DQcz4TnW This is a multi-part message in MIME format. ------=_NextPart_000_0005_832ED729.5CFB408 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hi,=0A=0A =0A=0AI=E2=80=99ve been trying to collect the necessary info on= line about how to do gpu=0Apassthru with integrated intel graphics to win= 10, but can=E2=80=99t make it work.=0A=0A =0A=0A 1. First tried with just= passthru, and after 3-4 reboots, the display adapter=0A shows up in w= in10 guest, but it won=E2=80=99t load properly.=0A 2. Tried adding the hd= audio device as well, get bluescreen with=0A =E2=80=9Cmemory_manageme= nt=E2=80=9D stop code in guest=0A 3. Tried adding a gop rom from https://= github.com/patmagauran/i915ovmfPkg -=0A host crashed and got error bel= ow=0A=0A =0A=0AI=E2=80=99m at a loss what to try next. Any ideas where I=E2= =80=99m going wrong?=0A=0A =0A=0A# tail /vm/win10ltsc/vm-bhyve.log=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=0A=0AJan 17 00:49:02:=C2=A0 [primary di= sk: disk0.img]=0A=0AJan 17 00:49:02:=C2=A0 [primary disk dev: file]=0A=0A= Jan 17 00:49:02: dynamically allocated port 5900 for vnc connections=0A=0A= Jan 17 00:49:02: booting=0A=0AJan 17 00:49:02:=C2=A0 [bhyve options: -c 6= ,sockets=3D1,cores=3D3,threads=3D2 -m 8G -Hwl=0Abootrom,/usr/local/share/= uefi-firmware/BHYVE_UEFI.fd -s 2:0,passthru,0/2/0,rom=3D=0A/vm/win10ltsc/= i915ovmf.rom -U 8dff5c4a-b083-11ee-b2cd-78d004259091 -S]=0A=0AJan 17 00:4= 9:02:=C2=A0 [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,ahci,hd:/vm/= =0Awin10ltsc/disk0.img -s 31:6,passthru,0/31/6 -s 6:0,fbuf,tcp=3D0.0.0.0:= 5900,w=3D=0A1920,h=3D1080 -s 7:0,xhci,tablet]=0A=0AJan 17 00:49:02:=C2=A0= [bhyve console: -l com1,/dev/nmdm-win10ltsc.1A]=0A=0AJan 17 00:49:02: st= arting bhyve (run 1)=0A=0AJan 17 00:49:04: bhyve exited with status 134=0A= =0AJan 17 00:49:04: stopped=0A=0A =0A=0A# tail /vm/win10ltsc/bhyve.log=C2= =A0=C2=A0=0A=0Apci_fbuf: mmap_memseg failed=0A=0AAssertion failed: (mr->n= ame =3D=3D memp->name), function unregister_mem, file /usr/=0Asrc/usr.sbi= n/bhyve/mem.c, line 344.=0A=0A =0A=0A# uname -a=0A=0AFreeBSD yellowfellow= 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11=0A04:56:01 UTC 20= 23=C2=A0=C2=A0=C2=A0=C2=A0 root@amd64-builder.daemonology.net:/usr/obj/us= r/src/=0Aamd64.amd64/sys/GENERIC amd64=0A=0A ------=_NextPart_000_0005_832ED729.5CFB408 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1"

Hi,

&n= bsp;

I’ve been trying to collect the = necessary info online about how to do gpu passthru with integrated intel = graphics to win10, but can’t make it work.

 

  1. First tried with just passthru, and after 3-4 reboots, the di= splay adapter shows up in win10 guest, but it won’t load properly.<= o:p>
  2. Tried adding the hd audio device as well, get bluesc= reen with “memory_management” stop code in guest
  3. Tried adding a gop rom from https://github.com/patmagauran/i915ovmfPkg - host = crashed and got error below

 

I’m at a loss what to try nex= t. Any ideas where I’m going wrong?

 

# tail /vm/win10ltsc/vm-bhy= ve.log=A0=A0=A0=A0=A0=A0=A0

Jan 17 00= :49:02:=A0 [primary disk: disk0.img]

J= an 17 00:49:02:=A0 [primary disk dev: file]

Jan 17 00:49:02: dynamically allocated port 5900 for vnc connection= s

Jan 17 00:49:02: booting<= /p>

Jan 17 00:49:02:=A0 [bhyve options: -c 6,sockets=3D= 1,cores=3D3,threads=3D2 -m 8G -Hwl bootrom,/usr/local/share/uefi-firmware= /BHYVE_UEFI.fd -s 2:0,passthru,0/2/0,rom=3D/vm/win10ltsc/i915ovmf.rom -U = 8dff5c4a-b083-11ee-b2cd-78d004259091 -S]

Jan 17 00:49:02:=A0 [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,a= hci,hd:/vm/win10ltsc/disk0.img -s 31:6,passthru,0/31/6 -s 6:0,fbuf,tcp=3D= 0.0.0.0:5900,w=3D1920,h=3D1080 -s 7:0,xhci,tablet]

Jan 17 00:49:02:=A0 [bhyve console: -l com1,/dev/nmdm-win10l= tsc.1A]

Jan 17 00:49:02: starting bhyv= e (run 1)

Jan 17 00:49:04: bhyve exite= d with status 134

Jan 17 00:49:04: sto= pped

 

# tail /vm/win10ltsc/bhyve.log=A0=A0

pci_fbuf: mmap_memseg failed

= Assertion failed: (mr->name =3D=3D memp->name), function unregister= _mem, file /usr/src/usr.sbin/bhyve/mem.c, line 344.

 

# uname -a

FreeBSD yellowfellow 14.0-RELEASE-p3 FreeBSD= 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023=A0=A0=A0=A0 root@amd64-= builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

------=_NextPart_000_0005_832ED729.5CFB408--