From nobody Wed Jan 17 07:19:29 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 4TFHLs3phwz57BJx for ; Wed, 17 Jan 2024 07:19:33 +0000 (UTC) (envelope-from corvink@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4TFHLs3DLmz4DLt; Wed, 17 Jan 2024 07:19:33 +0000 (UTC) (envelope-from corvink@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705475973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=82DEHzFifqFWfXvdwH+MWwuh0zUM1C052lx3xClC/mc=; b=bw+DrK2Y3mevouIbXcqEqwCRiGgVOL10/RqfKiF/owAFhyd3744vehGa7U0FRpk5ohkSaz tff/2axdMMH6F2miTna9J8VgDnLNoyzQPKZI6P9xdUbhe5x7er8KDswJFPMacbBOx7CQBx ye7zQiBILI8LZRlQpAkM4r2IAJFbLovUEBp3d1+Y5aWwUUwXwUjAwwmyfANckaccZ9rgfS ubJcTr2PQEvj6LvZcAb9Rmk6uYJ5ZXw4vLoDhehN17scNvETJbpELL9hURF/PZvrAHFcb/ /u63FqsRuDzWZkl652DQE3uwQ80SiYGmiKVLG5aLEKuE6FbmPF2iCTXqVlCHKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705475973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=82DEHzFifqFWfXvdwH+MWwuh0zUM1C052lx3xClC/mc=; b=fQNg+0wfGv3+hIOZsVPjGfHOfSani8lzzf7zM6sVtN2oKsX9oV9SCL+xPQQNr8uSZvC5pd O8C/fvMmduMOJV8F7hlI4Ctz4FXFQBblZDgBuoYGDgTnEcf297p/UH3nD3SbWEpikKJLuB lkl7ZqWizD+wdXJV9Fa66r0GQkhEF63ac4DWfDEZEwMmuOhWmP9471TAggvIxGpL3Egp41 BqPLpIAf15lp0avMY0AABI3Idc71fylW4gFzRSq1Zvy8wVuirt0bepXBbQRH+5O4xR0Gl6 31MTK7Uoy4tyai4Y/3LPkGNTnnh5dCoItVYKbN7d4GgzSjNT1xt7Ae8iLYnVVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705475973; a=rsa-sha256; cv=none; b=UCAag4H6bz2j1zzmKmaTA38yYryql4lBTUMvjB8tZsSdSFNfaQXjSmIz/Zvg9xVJjCTGz1 hTIv9UlHMTLc4QnPv+6uoLl3hZ06RpPA/2UUBcqZDOX9u4u1j78ezjahKkqmW2RMfgyJUT y1g3HruhXB66CyhAGIusgKrg1BAPTkp8ITwnlbnybVvJXBw8V0LHlu8T/UAsXfNS6KXZ0t 60wmVy69uBHEygDe7jvEWdf/9rSjVSVhHTGA2CgA4PSfm8k9NKsIs/5vnhICIQUkCEJ8Rz DWRwij4tTiqYWD4LxV+ZMoRTFm4uZ8dpFxEBgi1byzsYBsFnUxksMH/MBxzKHA== Received: from [172.21.180.84] (unknown [195.226.174.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: corvink) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TFHLr5zg5z1KmK; Wed, 17 Jan 2024 07:19:32 +0000 (UTC) (envelope-from corvink@FreeBSD.org) Message-ID: Subject: Re: bhyve intel 530 integrated graphics error From: Corvin =?ISO-8859-1?Q?K=F6hne?= To: Michael =?ISO-8859-1?Q?Sl=F8gedal?= , "freebsd-virtualization@FreeBSD.org" Date: Wed, 17 Jan 2024 08:19:29 +0100 In-Reply-To: References: Autocrypt: addr=corvink@FreeBSD.org; prefer-encrypt=mutual; keydata=mQINBGNjZaIBEADDTrDNf+0pwiuRPBdClcnZW83dH1UhuOi0u+A1J2SatEBbNaFVtXXAavewCTuyV/ZbNidjlhq3R/pWyiKjFKvs5dj7PMCw+3z2D5OWpMdHg7TrB+fbdFPOEsu0zQVKNaO+pSKCfN0Re0m7bL3wuvl7PXvBufRwA3Guo1P4j3TXWaEkuso7VupTvE25zVGg9ONHrGOjA9RUy+Yg4Se3NLgtUdjBgA21SBQTDvRQV4fDmVenlwvWeE0Xm8FcDcpQb6sJTihaDku78mi3Ux1HCk7rTcepVEB0xIB6qmFxv0sLlDmVv6Z6qg1y/Q5m23Pgz60o3TulMPV4F+3Itm8ifU+wgVSzBZbD29GYkd7LKqMkFbhvfSBk+5db3vbYY5OD//+LTM5AV7e2AhXuXMvG1UNBqXqSJTTSy6KZz+qmPQO0zos0dq46p8o82lKiBEGD2Hu0p+u0OyV+MmRYo1NIBFVbOPXp2MvUVl5II0UIJ3+N9gLBmfGA+HEpVO8PnvdoT/5NQ7m8JK1rQHzjiDub/iDPAYMqKH4C0eZ/7zO0fuY5FeRNtuNtpH1Bw/+7/5RJH7bcKkfGHHEp15FJUrGHgWNydoDLB9QBprwQc8FEldDXBjzOMXIgh6FGKLNu6DswvIPGy6M3u7DXwDakCXz+c9Ym0oFihLzZxWntrsxdswD/CwARAQABtCdDb3J2aW4gS8O2aG5lIDxjb3J2aW4ua29laG5lQGdtYWlsLmNvbT6JAlQEEwEIAD4WIQSC9FKVreba38fZT0bYVNpWM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hpt+2Df+qIw2kOgvo0ecU8orastt7OfiJpRzlDFPK2nhok5t4+1PZCi4jcR5Ub22Ddy4O00FOCRAq70haA+cNNiZ0XlD5cDv+CxmT0NkD337ls5wz8zyOX7n7Z4jG8ghiJEkcLQbyp2qYaggKrz2sGWKUjByS7jySRCotPOO+0W6Iz2dw9215ZQ1F3uZwdRlpXA7ypzUBEvIJxc563fFuPetbZAIavGMT844hovsMXW2Q/MS3HI03USkgeVaqANbSOUFAdt2tgTrvUw/vXBckp4T+vATNdQH0WieBIX4nRQQ6SjfmaI82QxJuJjb5NJ6bgS+HPIUH8J1Iw958y/Rs5svzKW+/YYoZBDuhtbAeoJdiy7a7wtK6pBv+xMdpmKLBgVVXOeX6sucwJ/K68tb5aOmbuPLAaIoKgm/9IF8dqiI23JoM2ZhpYZjpVMpakGIxV6R4Kp2hrqC4oNpuVLJ7LQSMuocXduguvWYdYvVXSdpC1Ed+fLtFXA0h5fhDqHFDCDM2CgQX2DfzXe/rV7vChm61fQYn+85md1vPiefnsaunEh3+cbcFfIshNmIRfAKwA2//75eqgBuC2D5ZIr93LsEUCcabnQZdaZKGSo/ruWNZdPyjj/b6MhAifkoFFrkN4/dwIqYIev8wMbh3+7dcZIRza0foM= Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-WuFv+0F9k1HNmTaxIE3P" User-Agent: Evolution 3.50.3 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 --=-WuFv+0F9k1HNmTaxIE3P Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, unfortunately, GPU passthrough is supported by bhyve but not OVMF. So, you have to use a patched OVMF. The required patch stack is available at https://reviews.freebsd.org/D41714. An older version and most probably still working prebuilt version is available at https://reviews.freebsd.org/D26209. On Wed, 2024-01-17 at 01:18 +0100, Michael Sl=C3=B8gedal wrote: > Hi, > =C2=A0 > I=E2=80=99ve been trying to collect the necessary info online about how t= o do > gpu passthru with integrated intel graphics to win10, but can=E2=80=99t m= ake > it work. > =C2=A0 > =C2=A0=C2=A0=C2=A01. First tried with just passthru, and after 3-4 reboot= s, the > display adapter shows up in win10 guest, but it won=E2=80=99t load proper= ly. Despite some configuration requirements (e.g. always use slot 2) that's all you need. > =C2=A0=C2=A0=C2=A02. Tried adding the hd audio device as well, get bluesc= reen with > =E2=80=9Cmemory_management=E2=80=9D stop code in guest Shouldn't happen but seems like another issue. > =C2=A0=C2=A0=C2=A03. Tried adding a gop rom from > https://github.com/patmagauran/i915ovmfPkg - host crashed and got > error below A GOP is only required for pre OS graphics (e.g. grub menu). I highly recommend using the GOP from your host system to avoid damages or strange issues due to incompatibilities. Unfortunately, it's not always possible to easily extract the GOP from your host system. Even Intel recommends to ask your board manufacturer: https://projectacrn.github.io/3.2/tutorials/gpu-passthru.html#enable-the-gv= t-d-gop-driver Some alternative ways to extract the GOP: On Windows try GPU-Z: https://nvidia.custhelp.com/app/answers/detail/a_id/4188/~/extracting-the-g= eforce-video-bios-rom-file On Linux try sysfs: https://pve.proxmox.com/wiki/PCI_Passthrough#The_.27romfile.27_option > =C2=A0 > I=E2=80=99m at a loss what to try next. Any ideas where I=E2=80=99m going= wrong? > =C2=A0 > # tail /vm/win10ltsc/vm-bhyve.log=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=20 > Jan 17 00:49:02:=C2=A0 [primary disk: disk0.img] > Jan 17 00:49:02:=C2=A0 [primary disk dev: file] > Jan 17 00:49:02: dynamically allocated port 5900 for vnc connections > Jan 17 00:49:02: booting > Jan 17 00:49:02:=C2=A0 [bhyve options: -c 6,sockets=3D1,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:=C2=A0 [bhyve devices: -s 0,hostbridge -s 31,lpc -s > 4:0,ahci,hd:/vm/win10ltsc/disk0.img -s 31:6,passthru,0/31/6 -s > 6:0,fbuf,tcp=3D0.0.0.0:5900,w=3D1920,h=3D1080 -s 7:0,xhci,tablet] > Jan 17 00:49:02:=C2=A0 [bhyve console: -l com1,/dev/nmdm-win10ltsc.1A] You have to use the `-A` flag. There's an open PR for vm-bhyve: https://github.com/churchers/vm-bhyve/pull/525/commits/653d01f5b53c0bd8ce70= 7137f67617536de8b1c0 > Jan 17 00:49:02: starting bhyve (run 1) > Jan 17 00:49:04: bhyve exited with status 134 > Jan 17 00:49:04: stopped > =C2=A0 > # tail /vm/win10ltsc/bhyve.log=C2=A0=C2=A0=20 > 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. > =C2=A0 > # uname -a > FreeBSD yellowfellow 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon > Dec 11 04:56:01 UTC 2023=C2=A0=C2=A0=C2=A0=C2=A0 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/G > ENERIC amd64 --=20 Kind regards, Corvin --=-WuFv+0F9k1HNmTaxIE3P Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgvRSla3m2t/H2U9G2FTaVjFeAmoFAmWnf4EACgkQ2FTaVjFe Ampkmg/9HIRsa/qHq2r+slypeu07SGfFOObIu5YeJr11A40gXbnOEkjrIteiES/q CLFT1TG89qostrLm18n/GpoF89XTA1SY/gywXUSQZQ97Lpqp1CGUjIky5iL9tY47 2oAAIU5mCqTtaEsd/eXTQ9bONUPLvw35geHd73a8qo1hZkbS0lyS80HPz2qpzRwG oWi7CB7PFr3vWUzUISaCNQ+3ibb9sHC8/Z0O8NOV2sjR4P/W+PNxExfcFtpf2tDB jZpRtQV9hlUZJkvnMEYExO0nGRbot90Q+IgcQO8AiEoOFrvjezJyRYJPjKEC0KD0 gEmqp21hIY/H3ROvEheTDTvy6R2ZQXe+xO4vgtGRNm8zbpf7FIRTUMbvjZ2PT3my APCcqxeTu7SPNK3iRxF23y9Kxy8XQ3pH9H4nWqzb3lQgFlQqUJeDPtZczBs/S8Kq BKvHOICUW3rgJsUpbpKkmwwa/4cf3plmeH0v4HLLhxNXYTLfAv7D9zewY64WLPQn olgMltfn33Rlbxr4U952r2Gstm/jweUr+79WO+rQIHU+9fkLlh1sEgfKP+4Ky8ZU 4+D+52SrgUXJk7PAk7xyQbebnUSQ4AarVEYBKP/l5mhvvDi2DB+wT+LfWiGtovRa 2yjOJYmuv30/pXet0qWpRBX7ESY0m7+mw7kSyBh2tFiScBsdLcg= =SX8m -----END PGP SIGNATURE----- --=-WuFv+0F9k1HNmTaxIE3P--