Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 2024 15:34:42 +0100
From:      "=?utf-8?B?TWljaGFlbCBTbMO4Z2VkYWw=?=" <michael@sloged.al>
To:        "=?utf-8?B?Q29ydmluIEvDtmhuZQ==?=" <corvink@FreeBSD.org>, "freebsd-virtualization@FreeBSD.org" <freebsd-virtualization@FreeBSD.org>
Subject:   RE: bhyve intel 530 integrated graphics error
Message-ID:  <gxES.vxwU1i_rQkOq6efNZIo53Q@LnqoiEWzFkCdGQGdLd2x2eNP34whDFdFmlSjMbuo1-c.xz>
In-Reply-To: <gxES.INF-UkyqgUaVu1JPB28uuw@glmCCa_wBUS_ZHQxCPWJ9pppRw7QvPBNov6dIZtuV44.xz>
References:  <gxES.l1BY6Ym_vUi8D9urxKuWvQ@Zoka9TMijEmnc8h1QEfjMc2pA_dP_RxOrEsZw_uiNe4.xz> <a66487231b4c77dabdd17b4120cc6a5067ae4e97.camel@FreeBSD.org> <gxES.INF-UkyqgUaVu1JPB28uuw@glmCCa_wBUS_ZHQxCPWJ9pppRw7QvPBNov6dIZtuV44.xz>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0005_ABC2190A.687D538
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset="utf-8"

The mmap_memseg=C2=A0 error was resolved by reducing vm memory to 4G. (No=
t a viable=0Asolution, but at least it runs)=0A=0A =0A=0ABest regards,=0A=
=0A =0A=0AMichael=0A=0A =0A=0AFrom: owner-freebsd-virtualization@freebsd.=
org=0A<owner-freebsd-virtualization@freebsd.org> On Behalf Of Michael Sl=C3=
=B8gedal=0ASent: Wednesday, January 17, 2024 1:30 PM=0ATo: Corvin K=C3=B6=
hne <corvink@FreeBSD.org>; freebsd-virtualization@FreeBSD.org=0ASubject: =
RE: bhyve intel 530 integrated graphics error=0A=0A =0A=0AThanks Corvin,=0A=
=0A =0A=0AHowever it=E2=80=99s still not clear to me from D26209 what exa=
ctly I need to do, and=0Awhat I=E2=80=99ve tried doesn=E2=80=99t work =F0=
=9F=98=8A Any additional advice is appreciated.=0A=0A =0A=0A 1. Dropped t=
he GOP rom for now. Unless I need it for windows loading screen /=0A    w=
indows diagnostics/repair ? GpuZ won=E2=80=99t extract it anyhow.=0A 2. I=
=E2=80=99ve added the -A option, no visible change=0A 3. BHYVE_CODE.fd =E2=
=80=93 not sure if I=E2=80=99m using it right. I changed the symlink for=0A=
    BHYVE_UEFI.fd to point to this file. No visible change =E2=80=93 exce=
pt I now have=0A    4 non-working COM ports.=0A 4. I tried passthru on us=
b, and get the same error that I did with the audio=0A    card (see below=
)=0A 5. The gfx card initially boots with windows Error 43. When I delete=
 it and=0A    scan for hardware changes it pops back in, without the erro=
r, but no=0A    displays detected.=0A 6. I=E2=80=99m using vga/dvi ports =
without success, haven=E2=80=99t tried displayport. No hdmi=0A    ports. =
In case that matters.=0A 7. Should I try to update freebsd to 14-STABLE b=
ranch and see if that makes a=0A    difference? (If I can figure out how)=
=0A=0A =0A=0A# tail /vm/win10ltsc/bhyve.log=0A=0Apci_fbuf: mmap_memseg fa=
iled=0A=0AAssertion failed: (mr->name =3D=3D memp->name), function unregi=
ster_mem, file /usr/=0Asrc/usr.sbin/bhyve/mem.c, line 344.=0A=0A =0A=0A# =
tail /vm/win10ltsc/vm-bhyve.log=0A=0AJan 17 13:08:48:  [primary disk: dis=
k0.img]=0A=0AJan 17 13:08:48:  [primary disk dev: file]=0A=0AJan 17 13:08=
:48: dynamically allocated port 5900 for vnc connections=0A=0AJan 17 13:0=
8:48: booting=0A=0AJan 17 13:08:48:  [bhyve options: -c 6,sockets=3D1,cor=
es=3D3,threads=3D2 -m 8G -Hwl=0Abootrom,/usr/local/share/uefi-firmware/BH=
YVE_UEFI.fd -A -U=0A8dff5c4a-b083-11ee-b2cd-78d004259091 -S]=0A=0AJan 17 =
13:08:48:  [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,ahci,hd:/vm/=0A=
win10ltsc/disk0.img -s 31:6,passthru,0/31/6 -s 2:0,passthru,0/2/0 -s=0A20=
:0,passthru,0/20/0 -s 6:0,fbuf,tcp=3D0.0.0.0:5900,w=3D1920,h=3D1080 -s=0A=
7:0,xhci,tablet]=0A=0AJan 17 13:08:48:  [bhyve console: -l com1,/dev/nmdm=
-win10ltsc.1A]=0A=0AJan 17 13:08:48: starting bhyve (run 1)=0A=0AJan 17 1=
3:08:50: bhyve exited with status 134=0A=0AJan 17 13:08:50: stopped=0A=0A=
 =0A=0A# pciconf -lv |grep -EC 2 "(USB 3|Audio)"=0A=0Appt1@pci0:0:20:0:  =
     class=3D0x0c0330 rev=3D0x31 hdr=3D0x00 vendor=3D0x8086 device=3D=0A0=
xa12f subvendor=3D0x8086 subdevice=3D0xa12f=0A=0A    vendor     =3D 'Inte=
l Corporation'=0A=0A    device     =3D '100 Series/C230 Series Chipset Fa=
mily USB 3.0 xHCI=0AController'=0A=0A    class      =3D serial bus=0A=0A =
   subclass   =3D USB=0A=0A--=0A=0Appt2@pci0:0:31:3:       class=3D0x0403=
00 rev=3D0x31 hdr=3D0x00 vendor=3D0x8086 device=3D=0A0xa170 subvendor=3D0=
x8086 subdevice=3D0xa170=0A=0A    vendor     =3D 'Intel Corporation'=0A=0A=
    device     =3D '100 Series/C230 Series Chipset Family HD Audio Contro=
ller'=0A=0A    class      =3D multimedia=0A=0A    subclass   =3D HDA=0A=0A=
 =0A=0A =0A=0AFrom: Corvin K=C3=B6hne <corvink@FreeBSD.org>=0ASent: Wedne=
sday, January 17, 2024 8:19 AM=0ATo: Michael Sl=C3=B8gedal <michael@sloge=
d.al>; freebsd-virtualization@FreeBSD.org=0ASubject: Re: bhyve intel 530 =
integrated graphics error=0A=0A =0A=0AHi,=0A=0A =0A=0Aunfortunately, GPU =
passthrough is supported by bhyve but not OVMF. So,=0A=0Ayou have to use =
a patched OVMF. The required patch stack is available=0A=0Aat https://rev=
iews.freebsd.org/D41714. An older version and most=0A=0Aprobably still wo=
rking prebuilt version is available at=0A=0Ahttps://reviews.freebsd.org/D=
26209.=0A=0A =0A=0AOn Wed, 2024-01-17 at 01:18 +0100, Michael Sl=C3=B8ged=
al wrote:=0A=0A> Hi,=0A=0A>  =0A=0A> I=E2=80=99ve been trying to collect =
the necessary info online about how to do=0A=0A> gpu passthru with integr=
ated intel graphics to win10, but can=E2=80=99t make=0A=0A> it work.=0A=0A=
>  =0A=0A>    1. First tried with just passthru, and after 3-4 reboots, t=
he=0A=0A> display adapter shows up in win10 guest, but it won=E2=80=99t l=
oad properly.=0A=0A =0A=0ADespite some configuration requirements (e.g. a=
lways use slot 2) that's=0A=0Aall you need.=0A=0A =0A=0A>    2. Tried add=
ing the hd audio device as well, get bluescreen with=0A=0A> =E2=80=9Cmemo=
ry_management=E2=80=9D stop code in guest=0A=0A =0A=0AShouldn't happen bu=
t seems like another issue.=0A=0A =0A=0A>    3. Tried adding a gop rom fr=
om=0A=0A> https://github.com/patmagauran/i915ovmfPkg - host crashed and g=
ot=0A=0A> error below=0A=0A =0A=0AA GOP is only required for pre OS graph=
ics (e.g. grub menu).=0A=0A =0A=0AI highly recommend using the GOP from y=
our host system to avoid damages=0A=0Aor strange issues due to incompatib=
ilities. Unfortunately, it's not=0A=0Aalways possible to easily extract t=
he GOP from your host system. Even=0A=0AIntel recommends to ask your boar=
d manufacturer:=0A=0Ahttps://projectacrn.github.io/3.2/tutorials/gpu-pass=
thru.html#enable-the-gvt-d-gop-driver=0A=0A =0A=0ASome alternative ways t=
o extract the GOP:=0A=0A =0A=0AOn Windows try GPU-Z:=0A=0Ahttps://nvidia.=
custhelp.com/app/answers/detail/a_id/4188/~/extracting-the-geforce-video-=
bios-rom-file=0A=0AOn Linux try sysfs:=0A=0Ahttps://pve.proxmox.com/wiki/=
PCI_Passthrough#The_.27romfile.27_option=0A=0A =0A=0A>  =0A=0A> I=E2=80=99=
m 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       =0A=0A> Jan 17 00:4=
9:02:  [primary disk: disk0.img]=0A=0A> Jan 17 00:49:02:  [primary disk d=
ev: file]=0A=0A> Jan 17 00:49:02: dynamically allocated port 5900 for vnc=
 connections=0A=0A> Jan 17 00:49:02: booting=0A=0A> Jan 17 00:49:02:  [bh=
yve options: -c 6,sockets=3D1,cores=3D3,threads=3D2 -m=0A=0A> 8G -Hwl boo=
trom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s=0A=0A> 2:0,passthru,=
0/2/0,rom=3D/vm/win10ltsc/i915ovmf.rom -U 8dff5c4a-b083-=0A=0A> 11ee-b2cd=
-78d004259091 -S]=0A=0A> Jan 17 00:49:02:  [bhyve devices: -s 0,hostbridg=
e -s 31,lpc -s=0A=0A> 4:0,ahci,hd:/vm/win10ltsc/disk0.img -s 31:6,passthr=
u,0/31/6 -s=0A=0A> 6:0,fbuf,tcp=3D0.0.0.0:5900,w=3D1920,h=3D1080 -s 7:0,x=
hci,tablet]=0A=0A> Jan 17 00:49:02:  [bhyve console: -l com1,/dev/nmdm-wi=
n10ltsc.1A]=0A=0A =0A=0AYou have to use the `-A` flag. There's an open PR=
 for vm-bhyve:=0A=0Ahttps://github.com/churchers/vm-bhyve/pull/525/commit=
s/653d01f5b53c0bd8ce707137f67617536de8b1c0=0A=0A =0A=0A> Jan 17 00:49:02:=
 starting bhyve (run 1)=0A=0A> Jan 17 00:49:04: bhyve exited with status =
134=0A=0A> Jan 17 00:49:04: stopped=0A=0A>  =0A=0A> # tail /vm/win10ltsc/=
bhyve.log  =0A=0A> pci_fbuf: mmap_memseg failed=0A=0A> Assertion failed: =
(mr->name =3D=3D memp->name), function unregister_mem,=0A=0A> file /usr/s=
rc/usr.sbin/bhyve/mem.c, line 344.=0A=0A>  =0A=0A> # uname -a=0A=0A> Free=
BSD yellowfellow 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon=0A=0A> D=
ec 11 04:56:01 UTC 2023    =0A=0A> root@amd64-builder.daemonology.net:/us=
r/obj/usr/src/amd64.amd64/sys/G=0A=0A> ENERIC amd64=0A=0A =0A=0A--=0A=0AK=
ind regards,=0A=0ACorvin=0A=0A
------=_NextPart_000_0005_ABC2190A.687D538
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset="utf-8"

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-mi=
crosoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:wo=
rd" xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D=
"http://www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type c=
ontent=3D"text/html; charset=3Dutf-8"><meta name=3DGenerator content=3D"M=
icrosoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
=09{font-family:"Cambria Math";
=09panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
=09{font-family:Calibri;
=09panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
=09{font-family:"Segoe UI Emoji";
=09panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
=09{font-family:Consolas;
=09panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
=09{margin:0in;
=09font-size:11.0pt;
=09font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
=09{mso-style-priority:99;
=09color:#0563C1;
=09text-decoration:underline;}
pre
=09{mso-style-priority:99;
=09mso-style-link:"HTML Preformatted Char";
=09margin:0in;
=09margin-bottom:.0001pt;
=09font-size:10.0pt;
=09font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
=09{mso-style-priority:34;
=09margin-top:0in;
=09margin-right:0in;
=09margin-bottom:0in;
=09margin-left:.5in;
=09font-size:11.0pt;
=09font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
=09{mso-style-name:"HTML Preformatted Char";
=09mso-style-priority:99;
=09mso-style-link:"HTML Preformatted";
=09font-family:Consolas;}
span.EmailStyle23
=09{mso-style-type:personal-reply;
=09font-family:"Calibri",sans-serif;
=09color:windowtext;}
=2EMsoChpDefault
=09{mso-style-type:export-only;
=09font-size:10.0pt;
=09mso-ligatures:none;}
@page WordSection1
=09{size:8.5in 11.0in;
=09margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
=09{page:WordSection1;}
/* List Definitions */
@list l0
=09{mso-list-id:1431390942;
=09mso-list-template-ids:-1005182070;}
@list l1
=09{mso-list-id:1829978206;
=09mso-list-type:hybrid;
=09mso-list-template-ids:-939515924 67698703 67698713 67698715 67698703 6=
7698713 67698715 67698703 67698713 67698715;}
@list l1:level1
=09{mso-level-tab-stop:none;
=09mso-level-number-position:left;
=09text-indent:-.25in;}
@list l1:level2
=09{mso-level-number-format:alpha-lower;
=09mso-level-tab-stop:none;
=09mso-level-number-position:left;
=09text-indent:-.25in;}
@list l1:level3
=09{mso-level-number-format:roman-lower;
=09mso-level-tab-stop:none;
=09mso-level-number-position:right;
=09text-indent:-9.0pt;}
@list l1:level4
=09{mso-level-tab-stop:none;
=09mso-level-number-position:left;
=09text-indent:-.25in;}
@list l1:level5
=09{mso-level-number-format:alpha-lower;
=09mso-level-tab-stop:none;
=09mso-level-number-position:left;
=09text-indent:-.25in;}
@list l1:level6
=09{mso-level-number-format:roman-lower;
=09mso-level-tab-stop:none;
=09mso-level-number-position:right;
=09text-indent:-9.0pt;}
@list l1:level7
=09{mso-level-tab-stop:none;
=09mso-level-number-position:left;
=09text-indent:-.25in;}
@list l1:level8
=09{mso-level-number-format:alpha-lower;
=09mso-level-tab-stop:none;
=09mso-level-number-position:left;
=09text-indent:-.25in;}
@list l1:level9
=09{mso-level-number-format:roman-lower;
=09mso-level-tab-stop:none;
=09mso-level-number-position:right;
=09text-indent:-9.0pt;}
ol
=09{margin-bottom:0in;}
ul
=09{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3D"#0563=
C1" vlink=3D"#954F72" style=3D'word-wrap:break-word'><div class=3DWordSec=
tion1><p class=3DMsoNormal>The mmap_memseg=C2=A0 error was resolved by re=
ducing vm memory to 4G. (Not a viable solution, but at least it runs)<o:p=
></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal=
>Best regards,<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p=
 class=3DMsoNormal>Michael<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;=
</o:p></p><div><div style=3D'border:none;border-top:solid #E1E1E1 1.0pt;p=
adding:3.0pt 0in 0in 0in'><p class=3DMsoNormal><b>From:</b> owner-freebsd=
-virtualization@freebsd.org &lt;owner-freebsd-virtualization@freebsd.org&=
gt; <b>On Behalf Of </b>Michael Sl=C3=B8gedal<br><b>Sent:</b> Wednesday, =
January 17, 2024 1:30 PM<br><b>To:</b> Corvin K=C3=B6hne &lt;corvink@Free=
BSD.org&gt;; freebsd-virtualization@FreeBSD.org<br><b>Subject:</b> RE: bh=
yve intel 530 integrated graphics error<o:p></o:p></p></div></div><p clas=
s=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Thanks Corvin,<o:=
p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNorma=
l>However it=E2=80=99s still not clear to me from D26209 what exactly I n=
eed to do, and what I=E2=80=99ve tried doesn=E2=80=99t work <span style=3D=
'font-family:"Segoe UI Emoji",sans-serif'>&#128522;</span> Any additional=
 advice is appreciated.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o=
:p></p><ol style=3D'margin-top:0in' start=3D1 type=3D1><li class=3DMsoLis=
tParagraph style=3D'margin-left:0in;mso-list:l1 level1 lfo3'>Dropped the =
GOP rom for now. Unless I need it for windows loading screen / windows di=
agnostics/repair ? GpuZ won=E2=80=99t extract it anyhow.<o:p></o:p></li><=
li class=3DMsoListParagraph style=3D'margin-left:0in;mso-list:l1 level1 l=
fo3'>I=E2=80=99ve added the -A option, no visible change<o:p></o:p></li><=
li class=3DMsoListParagraph style=3D'margin-left:0in;mso-list:l1 level1 l=
fo3'>BHYVE_CODE.fd =E2=80=93 not sure if I=E2=80=99m using it right. I ch=
anged the symlink for BHYVE_UEFI.fd to point to this file. No visible cha=
nge =E2=80=93 except I now have 4 non-working COM ports.<o:p></o:p></li><=
li class=3DMsoListParagraph style=3D'margin-left:0in;mso-list:l1 level1 l=
fo3'>I tried passthru on usb, and get the same error that I did with the =
audio card (see below)<o:p></o:p></li><li class=3DMsoListParagraph style=3D=
'margin-left:0in;mso-list:l1 level1 lfo3'>The gfx card initially boots wi=
th windows Error 43. When I delete it and scan for hardware changes it po=
ps back in, without the error, but no displays detected.<o:p></o:p></li><=
li class=3DMsoListParagraph style=3D'margin-left:0in;mso-list:l1 level1 l=
fo3'>I=E2=80=99m using vga/dvi ports without success, haven=E2=80=99t tri=
ed displayport. No hdmi ports. In case that matters.<o:p></o:p></li><li c=
lass=3DMsoListParagraph style=3D'margin-left:0in;mso-list:l1 level1 lfo3'=
>Should I try to update freebsd to 14-STABLE branch and see if that makes=
 a difference? (If I can figure out how)<o:p></o:p></li></ol><p class=3DM=
soNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal># tail /vm/win10ltsc/b=
hyve.log <o:p></o:p></p><p class=3DMsoNormal>pci_fbuf: mmap_memseg failed=
<o:p></o:p></p><p class=3DMsoNormal>Assertion failed: (mr-&gt;name =3D=3D=
 memp-&gt;name), function unregister_mem, file /usr/src/usr.sbin/bhyve/me=
m.c, line 344.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p=
 class=3DMsoNormal># tail /vm/win10ltsc/vm-bhyve.log<o:p></o:p></p><p cla=
ss=3DMsoNormal>Jan 17 13:08:48:&nbsp; [primary disk: disk0.img]<o:p></o:p=
></p><p class=3DMsoNormal>Jan 17 13:08:48:&nbsp; [primary disk dev: file]=
<o:p></o:p></p><p class=3DMsoNormal>Jan 17 13:08:48: dynamically allocate=
d port 5900 for vnc connections<o:p></o:p></p><p class=3DMsoNormal>Jan 17=
 13:08:48: booting<o:p></o:p></p><p class=3DMsoNormal>Jan 17 13:08:48:&nb=
sp; [bhyve options: -c 6,sockets=3D1,cores=3D3,threads=3D2 -m 8G -Hwl boo=
trom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -A -U 8dff5c4a-b083-11e=
e-b2cd-78d004259091 -S]<o:p></o:p></p><p class=3DMsoNormal>Jan 17 13:08:4=
8:&nbsp; [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,ahci,hd:/vm/win=
10ltsc/disk0.img -s 31:6,passthru,0/31/6 -s 2:0,passthru,0/2/0 -s 20:0,pa=
ssthru,0/20/0 -s 6:0,fbuf,tcp=3D0.0.0.0:5900,w=3D1920,h=3D1080 -s 7:0,xhc=
i,tablet]<o:p></o:p></p><p class=3DMsoNormal>Jan 17 13:08:48:&nbsp; [bhyv=
e console: -l com1,/dev/nmdm-win10ltsc.1A]<o:p></o:p></p><p class=3DMsoNo=
rmal>Jan 17 13:08:48: starting bhyve (run 1)<o:p></o:p></p><p class=3DMso=
Normal>Jan 17 13:08:50: bhyve exited with status 134<o:p></o:p></p><p cla=
ss=3DMsoNormal>Jan 17 13:08:50: stopped<o:p></o:p></p><p class=3DMsoNorma=
l><o:p>&nbsp;</o:p></p><p class=3DMsoNormal># pciconf -lv |grep -EC 2 &qu=
ot;(USB 3|Audio)&quot;<o:p></o:p></p><p class=3DMsoNormal>ppt1@pci0:0:20:=
0:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class=3D0x0c0330 rev=3D0x31 hdr=3D=
0x00 vendor=3D0x8086 device=3D0xa12f subvendor=3D0x8086 subdevice=3D0xa12=
f<o:p></o:p></p><p class=3DMsoNormal>&nbsp;&nbsp;&nbsp; vendor&nbsp;&nbsp=
;&nbsp;&nbsp; =3D 'Intel Corporation'<o:p></o:p></p><p class=3DMsoNormal>=
&nbsp;&nbsp;&nbsp; device&nbsp;&nbsp;&nbsp;&nbsp; =3D '100 Series/C230 Se=
ries Chipset Family USB 3.0 xHCI Controller'<o:p></o:p></p><p class=3DMso=
Normal>&nbsp;&nbsp;&nbsp; class&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =3D serial =
bus<o:p></o:p></p><p class=3DMsoNormal>&nbsp;&nbsp;&nbsp; subclass&nbsp;&=
nbsp; =3D USB<o:p></o:p></p><p class=3DMsoNormal>--<o:p></o:p></p><p clas=
s=3DMsoNormal>ppt2@pci0:0:31:3:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class=
=3D0x040300 rev=3D0x31 hdr=3D0x00 vendor=3D0x8086 device=3D0xa170 subvend=
or=3D0x8086 subdevice=3D0xa170<o:p></o:p></p><p class=3DMsoNormal>&nbsp;&=
nbsp;&nbsp; vendor&nbsp;&nbsp;&nbsp;&nbsp; =3D 'Intel Corporation'<o:p></=
o:p></p><p class=3DMsoNormal>&nbsp;&nbsp;&nbsp; device&nbsp;&nbsp;&nbsp;&=
nbsp; =3D '100 Series/C230 Series Chipset Family HD Audio Controller'<o:p=
></o:p></p><p class=3DMsoNormal>&nbsp;&nbsp;&nbsp; class&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; =3D multimedia<o:p></o:p></p><p class=3DMsoNormal>&nbsp;&nb=
sp;&nbsp; subclass&nbsp;&nbsp; =3D HDA<o:p></o:p></p><p class=3DMsoNormal=
><o:p>&nbsp;</o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><div=
 style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0i=
n 0in'><p class=3DMsoNormal><b>From:</b> Corvin K=C3=B6hne &lt;<a href=3D=
"mailto:corvink@FreeBSD.org">corvink@FreeBSD.org</a>&gt; <br><b>Sent:</b>=
 Wednesday, January 17, 2024 8:19 AM<br><b>To:</b> Michael Sl=C3=B8gedal =
&lt;<a href=3D"mailto:michael@sloged.al">michael@sloged.al</a>&gt;; <a hr=
ef=3D"mailto:freebsd-virtualization@FreeBSD.org">freebsd-virtualization@F=
reeBSD.org</a><br><b>Subject:</b> Re: bhyve intel 530 integrated graphics=
 error<o:p></o:p></p></div></div><p class=3DMsoNormal><o:p>&nbsp;</o:p></=
p><pre>Hi,<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>unfortunately=
, GPU passthrough is supported by bhyve but not OVMF. So,<o:p></o:p></pre=
><pre>you have to use a patched OVMF. The required patch stack is availab=
le<o:p></o:p></pre><pre>at <a href=3D"https://reviews.freebsd.org/D41714"=
>https://reviews.freebsd.org/D41714</a>. An older version and most<o:p></=
o:p></pre><pre>probably still working prebuilt version is available at<o:=
p></o:p></pre><pre><a href=3D"https://reviews.freebsd.org/D26209">https:/=
/reviews.freebsd.org/D26209</a>.<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></=
pre><pre>On Wed, 2024-01-17 at 01:18 +0100, Michael Sl=C3=B8gedal wrote:<=
o:p></o:p></pre><pre>&gt; Hi,<o:p></o:p></pre><pre>&gt; &nbsp;<o:p></o:p>=
</pre><pre>&gt; I=E2=80=99ve been trying to collect the necessary info on=
line about how to do<o:p></o:p></pre><pre>&gt; gpu passthru with integrat=
ed intel graphics to win10, but can=E2=80=99t make<o:p></o:p></pre><pre>&=
gt; it work.<o:p></o:p></pre><pre>&gt; &nbsp;<o:p></o:p></pre><pre>&gt; &=
nbsp;&nbsp;&nbsp;1. First tried with just passthru, and after 3-4 reboots=
, the<o:p></o:p></pre><pre>&gt; display adapter shows up in win10 guest, =
but it won=E2=80=99t load properly.<o:p></o:p></pre><pre><o:p>&nbsp;</o:p=
></pre><pre>Despite some configuration requirements (e.g. always use slot=
 2) that's<o:p></o:p></pre><pre>all you need.<o:p></o:p></pre><pre><o:p>&=
nbsp;</o:p></pre><pre>&gt; &nbsp;&nbsp;&nbsp;2. Tried adding the hd audio=
 device as well, get bluescreen with<o:p></o:p></pre><pre>&gt; =E2=80=9Cm=
emory_management=E2=80=9D stop code in guest<o:p></o:p></pre><pre><o:p>&n=
bsp;</o:p></pre><pre>Shouldn't happen but seems like another issue.<o:p><=
/o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>&gt; &nbsp;&nbsp;&nbsp;3. Tri=
ed adding a gop rom from<o:p></o:p></pre><pre>&gt; <a href=3D"https://git=
hub.com/patmagauran/i915ovmfPkg">https://github.com/patmagauran/i915ovmfP=
kg</a> - host crashed and got<o:p></o:p></pre><pre>&gt; error below<o:p><=
/o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>A GOP is only required for pr=
e OS graphics (e.g. grub menu).<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></p=
re><pre>I highly recommend using the GOP from your host system to avoid d=
amages<o:p></o:p></pre><pre>or strange issues due to incompatibilities. U=
nfortunately, it's not<o:p></o:p></pre><pre>always possible to easily ext=
ract the GOP from your host system. Even<o:p></o:p></pre><pre>Intel recom=
mends to ask your board manufacturer:<o:p></o:p></pre><pre><a href=3D"htt=
ps://projectacrn.github.io/3.2/tutorials/gpu-passthru.html#enable-the-gvt=
-d-gop-driver">https://projectacrn.github.io/3.2/tutorials/gpu-passthru.h=
tml#enable-the-gvt-d-gop-driver</a><o:p></o:p></pre><pre><o:p>&nbsp;</o:p=
></pre><pre>Some alternative ways to extract the GOP:<o:p></o:p></pre><pr=
e><o:p>&nbsp;</o:p></pre><pre>On Windows try GPU-Z:<o:p></o:p></pre><pre>=
<a href=3D"https://nvidia.custhelp.com/app/answers/detail/a_id/4188/~/ext=
racting-the-geforce-video-bios-rom-file">https://nvidia.custhelp.com/app/=
answers/detail/a_id/4188/~/extracting-the-geforce-video-bios-rom-file</a>=
<o:p></o:p></pre><pre>On Linux try sysfs:<o:p></o:p></pre><pre><a href=3D=
"https://pve.proxmox.com/wiki/PCI_Passthrough#The_.27romfile.27_option">h=
ttps://pve.proxmox.com/wiki/PCI_Passthrough#The_.27romfile.27_option</a><=
o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>&gt; &nbsp;<o:p></o:p></=
pre><pre>&gt; I=E2=80=99m at a loss what to try next. Any ideas where I=E2=
=80=99m going wrong?<o:p></o:p></pre><pre>&gt; &nbsp;<o:p></o:p></pre><pr=
e>&gt; # tail /vm/win10ltsc/vm-bhyve.log&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; <o:p></o:p></pre><pre>&gt; Jan 17 00:49:02:&nbsp; [primary disk=
: disk0.img]<o:p></o:p></pre><pre>&gt; Jan 17 00:49:02:&nbsp; [primary di=
sk dev: file]<o:p></o:p></pre><pre>&gt; Jan 17 00:49:02: dynamically allo=
cated port 5900 for vnc connections<o:p></o:p></pre><pre>&gt; Jan 17 00:4=
9:02: booting<o:p></o:p></pre><pre>&gt; Jan 17 00:49:02:&nbsp; [bhyve opt=
ions: -c 6,sockets=3D1,cores=3D3,threads=3D2 -m<o:p></o:p></pre><pre>&gt;=
 8G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s<o:p></o:=
p></pre><pre>&gt; 2:0,passthru,0/2/0,rom=3D/vm/win10ltsc/i915ovmf.rom -U =
8dff5c4a-b083-<o:p></o:p></pre><pre>&gt; 11ee-b2cd-78d004259091 -S]<o:p><=
/o:p></pre><pre>&gt; Jan 17 00:49:02:&nbsp; [bhyve devices: -s 0,hostbrid=
ge -s 31,lpc -s<o:p></o:p></pre><pre>&gt; 4:0,ahci,hd:/vm/win10ltsc/disk0=
=2Eimg -s 31:6,passthru,0/31/6 -s<o:p></o:p></pre><pre>&gt; 6:0,fbuf,tcp=3D=
0.0.0.0:5900,w=3D1920,h=3D1080 -s 7:0,xhci,tablet]<o:p></o:p></pre><pre>&=
gt; Jan 17 00:49:02:&nbsp; [bhyve console: -l com1,/dev/nmdm-win10ltsc.1A=
]<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>You have to use the `-=
A` flag. There's an open PR for vm-bhyve:<o:p></o:p></pre><pre><a href=3D=
"https://github.com/churchers/vm-bhyve/pull/525/commits/653d01f5b53c0bd8c=
e707137f67617536de8b1c0">https://github.com/churchers/vm-bhyve/pull/525/c=
ommits/653d01f5b53c0bd8ce707137f67617536de8b1c0</a><o:p></o:p></pre><pre>=
<o:p>&nbsp;</o:p></pre><pre>&gt; Jan 17 00:49:02: starting bhyve (run 1)<=
o:p></o:p></pre><pre>&gt; Jan 17 00:49:04: bhyve exited with status 134<o=
:p></o:p></pre><pre>&gt; Jan 17 00:49:04: stopped<o:p></o:p></pre><pre>&g=
t; &nbsp;<o:p></o:p></pre><pre>&gt; # tail /vm/win10ltsc/bhyve.log&nbsp;&=
nbsp; <o:p></o:p></pre><pre>&gt; pci_fbuf: mmap_memseg failed<o:p></o:p><=
/pre><pre>&gt; Assertion failed: (mr-&gt;name =3D=3D memp-&gt;name), func=
tion unregister_mem,<o:p></o:p></pre><pre>&gt; file /usr/src/usr.sbin/bhy=
ve/mem.c, line 344.<o:p></o:p></pre><pre>&gt; &nbsp;<o:p></o:p></pre><pre=
>&gt; # uname -a<o:p></o:p></pre><pre>&gt; FreeBSD yellowfellow 14.0-RELE=
ASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon<o:p></o:p></pre><pre>&gt; Dec 11 0=
4:56:01 UTC 2023&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></pre><pre>&gt; <a hre=
f=3D"mailto:root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd=
64/sys/G">root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64=
/sys/G</a><o:p></o:p></pre><pre>&gt; ENERIC amd64<o:p></o:p></pre><pre><o=
:p>&nbsp;</o:p></pre><pre>-- <o:p></o:p></pre><pre>Kind regards,<o:p></o:=
p></pre><pre>Corvin<o:p></o:p></pre></div></body></html>
------=_NextPart_000_0005_ABC2190A.687D538--





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gxES.vxwU1i_rQkOq6efNZIo53Q>