Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2022 08:38:42 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        FreeBSD virtualization <freebsd-virtualization@freebsd.org>,  =?UTF-8?Q?Corvin_K=C3=B6hne?= <c.koehne@beckhoff.com>
Subject:   bhyve: Warning: Unable to reuse host address of Graphics Stolen Memory. GPU passthrough might not work properly. bhyve: gvt_d_setup_opregion: Unable to get OpRegion base and length bhyve: gvt_d_init: Unable to setup OpRegion device emulation initialization error: Operation not supported by device
Message-ID:  <CA%2B1FSiiyU1kqCiD0Cui%2BMnzeuu%2BMAc50mVbqKMdSS7wXi9cFpg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--000000000000e6372205e4ebe843
Content-Type: text/plain; charset="UTF-8"

Hello.

I've tried to passthru my CoffeeLake-S GT2 [UHD Graphics 630] on a Linux VM
but it failed. This graphic card :

ppt4@pci0:0:2:0:        class=0x038000 rev=0x02 hdr=0x00 vendor=0x8086
device=0x3e98 subvendor=0x1458 subdevice=0xd000
   vendor     = 'Intel Corporation'
   device     = 'CoffeeLake-S GT2 [UHD Graphics 630]'
   class      = display

below there are the bhyve parameters that I've used :

bhyve -S -c sockets=1,cores=2,threads=2 -m 4G -w -H -A \
-s 0,hostbridge \
-s 1,nvme,/dev/$vmdisk0,bootindex=1 \
-s 2,ahci-hd,/dev/$vmdisk2 \
-s 3,ahci-hd,/dev/$vmdisk4 \
-s 4,passthru,0/2/0 \
-s 7,virtio-net,tap4 \
-s 10,hda,play=/dev/dsp,rec=/dev/dsp \
-s 29,fbuf,tcp=0.0.0.0:5904,w=1500,h=950 \
-s 30,xhci,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \
vm4 < /dev/null & sleep 2 && vncviewer 0:4

this is the error I get :

bhyve: Warning: Unable to reuse host address of Graphics Stolen Memory.
GPU passthrough might not work properly.
bhyve: gvt_d_setup_opregion: Unable to get OpRegion base and length
bhyve: gvt_d_init: Unable to setup OpRegion
device emulation initialization error: Operation not supported by device

Should I apply some patches ? I know for sure that I can pass through this
kind of gpu,using the Corvin patches,but I don't know if I have found a bug
that should be fixed. Let me know.

-- 
Mario.

--000000000000e6372205e4ebe843
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><span style=3D"font-family:monospace"><span style=3D"=
color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style=3D"font-fam=
ily:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255=
,255)">Hello.</span></span></span></span></div><div><span style=3D"font-fam=
ily:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255=
,255)"><span style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0=
);background-color:rgb(255,255,255)"><br></span></span></span></span></div>=
<div><span style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0);=
background-color:rgb(255,255,255)"><span style=3D"font-family:monospace"><s=
pan style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">I&#39;ve t=
ried to passthru my <span style=3D"font-family:monospace"><span style=3D"co=
lor:rgb(0,0,0);background-color:rgb(255,255,255)"><span style=3D"font-famil=
y:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,2=
55)"><span style=3D"font-family:monospace">CoffeeLake-S GT2 [UHD Graphics 6=
30] on a Linux VM but it failed. This graphic card :<br></span></span></spa=
n></span></span></span></span></span></span></div><div><span style=3D"font-=
family:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,=
255,255)"><span style=3D"font-family:monospace"><span style=3D"color:rgb(0,=
0,0);background-color:rgb(255,255,255)"><span style=3D"font-family:monospac=
e"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><br><=
/span></span></span></span></span></span></div><div><span style=3D"font-fam=
ily:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255=
,255)"><span style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0=
);background-color:rgb(255,255,255)"><span style=3D"font-family:monospace">=
<span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">ppt4@pci=
0:0:2:0: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x038000 rev=3D0=
x02 hdr=3D0x00 vendor=3D0x8086 device=3D0x3e98 subvendor=3D0x145</span>8 su=
bdevice=3D0xd000
<br> =C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D &#39;Intel Corpor=
ation&#39;
<br> =C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D &#39;CoffeeLake-S=
 GT2 [UHD Graphics 630]&#39;
<br> =C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D display<br>
<br></span></span></span></span></span></div><div><span style=3D"font-famil=
y:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,2=
55)"><span style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0);=
background-color:rgb(255,255,255)"><span style=3D"font-family:monospace">be=
low there are the bhyve parameters that I&#39;ve used :</span></span></span=
></span></span></div><div><span style=3D"font-family:monospace"><span style=
=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style=3D"font=
-family:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255=
,255,255)"><span style=3D"font-family:monospace"><br></span></span></span><=
/span></span></div><div><span style=3D"font-family:monospace"><span style=
=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style=3D"font=
-family:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255=
,255,255)">bhyve -S -c sockets=3D1,cores=3D2,threads=3D2 -m 4G -w -H -A \
</span><br>-s 0,hostbridge \
<br>-s 1,nvme,/dev/$vmdisk0,bootindex=3D1 \
<br>-s 2,ahci-hd,/dev/$vmdisk2 \
<br>-s 3,ahci-hd,/dev/$vmdisk4 \
<br>-s 4,passthru,0/2/0 \
<br>-s 7,virtio-net,tap4 \
<br>-s 10,hda,play=3D/dev/dsp,rec=3D/dev/dsp \
<br>-s 29,fbuf,tcp=3D<a href=3D"http://0.0.0.0:5904" target=3D"_blank">0.0.=
0.0:5904</a>,w=3D1500,h=3D950 \
<br>-s 30,xhci,tablet \
<br>-s 31,lpc \
<br>-l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \
<br>vm4 &lt; /dev/null &amp; sleep 2 &amp;&amp; vncviewer 0:4</span></span>=
</span></div><div><span style=3D"font-family:monospace"><span style=3D"colo=
r:rgb(0,0,0);background-color:rgb(255,255,255)"><span style=3D"font-family:=
monospace"><br></span></span></span></div><div><span style=3D"font-family:m=
onospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)=
"><span style=3D"font-family:monospace">this is the error I get :</span></s=
pan></span></div><div><span style=3D"font-family:monospace"><span style=3D"=
color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style=3D"font-fam=
ily:monospace"><br></span></span></span></div><div><span style=3D"font-fami=
ly:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,=
255)">bhyve: Warning: Unable to reuse host address of Graphics Stolen Memor=
y. <br></span></span></div><div><span style=3D"font-family:monospace"><span=
 style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">GPU passthrou=
gh might not wo</span></span><span style=3D"font-family:monospace">rk prope=
rly.
</span><br><span style=3D"font-family:monospace"></span></div><span style=
=3D"font-family:monospace">bhyve: gvt_d_setup_opregion: Unable to get OpReg=
ion base and length
<br>bhyve: gvt_d_init: Unable to setup OpRegion
<br>device emulation initialization error: Operation not supported by devic=
e<br></span><div><br></div><div>Should I apply some patches ? I know for su=
re that I can pass through this kind of gpu,using the Corvin patches,but I =
don&#39;t know if I have found a bug that should be fixed. Let me know.<fon=
t color=3D"#888888"><br></font></div><br><div>-- </div><div dir=3D"ltr" cla=
ss=3D"gmail_signature" data-smartmail=3D"gmail_signature">Mario.<br></div><=
/div>

--000000000000e6372205e4ebe843--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSiiyU1kqCiD0Cui%2BMnzeuu%2BMAc50mVbqKMdSS7wXi9cFpg>