Date: Sun, 31 Jul 2022 22:18:04 +0200 From: Mario Marietto <marietto2008@gmail.com> To: Jonathan Vasquez <jon@xyinn.org>, FreeBSD virtualization <freebsd-virtualization@freebsd.org>, =?UTF-8?Q?Corvin_K=C3=B6hne?= <c.koehne@beckhoff.com> Subject: Re: 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%2B1FSihvHO7Ox-3qejX6tgXYWmOdHNSyMU-tbAq%2BbQi=1sd-Ew@mail.gmail.com> In-Reply-To: <CA%2B1FSig4DrmjkAoX0yDaF8OeBXR7ex7PtWjgcxjJZP-a_nE8xA@mail.gmail.com> References: <CA%2B1FSiiyU1kqCiD0Cui%2BMnzeuu%2BMAc50mVbqKMdSS7wXi9cFpg@mail.gmail.com> <j0xhUJ4NYYkhKI94HuZc_5_W-v5r_qYsqZeVvE3t1wol9CBDYMUayoM7ULRCnuSvPBQY7Uso4J9LCfXWkvb_IDWj4zP0Doxodnrd-uAtDO4=@xyinn.org> <CA%2B1FSiiA8LSpLGECy22vUZUX2hP%2B-74Yzm_BQ2527h9METqPwQ@mail.gmail.com> <CA%2B1FSig4DrmjkAoX0yDaF8OeBXR7ex7PtWjgcxjJZP-a_nE8xA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ed45c705e51f966c Content-Type: text/plain; charset="UTF-8" *I have 3 GPUs in my PC. Actually the BIOS uses the geforce 1060 to start it. So,two GPUs are out and kept free. The Geforce RTX 2080 ti and the Intel CoffeeLake-S GT2 [UHD Graphics 630]. I'm able to pass through the RTX 2080 ti to a linux vm,but I'm not able to do the same with the UHD Graphics 630. As I have explained in the post,there is nothing that keeps it busy. I'm not using it. Both my monitors are connected to the 1060 using the twinview mode. One is using the DisplayPort,the other one is using the HDMI port. When I want to pass the RTX 2080 inside a Linux VM and I need to use my 2 monitor,I detach the HDMI cable from the 1060 and I attach it to the RTX 2080 ti and it's done. I can use it inside my bhyve VM. If I don't want to use bhyve,I connect the HDMI cable to the 1060 and in this case I can use two screens at the same time without running a VM. Cool. I can do this only with the RTX 2080 ti,but not with the Intel GPU. If I'm obliged to use it even if I don't use it,I can't imagine how and in which kind of situation I can pass it through.* Il giorno ven 29 lug 2022 alle ore 16:20 Mario Marietto < marietto2008@gmail.com> ha scritto: > Maybe I forget to setup something correctly,but : > > 1) I've removed the xf86-video-intel driver from the system with : pkg > remove xf86-video-intel > > 2) i haven't any i915kms or legacy intel module inside the memory : > > # kldstat | grep i915 : nothing > # kldstat | grep kms : nothing > # kldstat | grep intel : nothing > > 3) this is my xorg.conf (where is there is no trace of intel driver) > > Section "ServerLayout" > Identifier "X.org Configured" > Screen 0 "Screen0" LeftOf "Screen1" > Screen 1 "Screen1" > InputDevice "Mouse0" "CorePointer" > InputDevice "Keyboard0" "CoreKeyboard" > EndSection > > Section "Files" > ModulePath "/usr/local/lib/xorg/modules" > FontPath "/usr/local/share/fonts/misc/" > FontPath "/usr/local/share/fonts/TTF/" > FontPath "/usr/local/share/fonts/OTF/" > FontPath "/usr/local/share/fonts/Type1/" > FontPath "/usr/local/share/fonts/100dpi/" > FontPath "/usr/local/share/fonts/75dpi/" > FontPath "catalogue:/usr/local/etc/X11/fontpath.d" > EndSection > > Section "Module" > Load "glx" > EndSection > > Section "InputDevice" > Identifier "Keyboard0" > Driver "kbd" > EndSection > > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Protocol" "auto" > Option "Device" "/dev/sysmouse" > Option "ZAxisMapping" "4 5 6 7" > EndSection > > Section "Monitor" > Identifier "Monitor0" > VendorName "Monitor Vendor" > ModelName "Monitor Model" > EndSection > > Section "Monitor" > Identifier "Monitor1" > VendorName "Monitor Vendor" > ModelName "Monitor Model" > EndSection > > Section "Device" > Identifier "Card0" > Driver "nvidia" > BusID "PCI:1:0:0" > EndSection > > Section "Screen" > Identifier "Screen0" > Device "Card0" > Monitor "Monitor0" > SubSection "Display" > Viewport 0 0 > Depth 1 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 4 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 8 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 15 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 16 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 24 > EndSubSection > EndSection > > Section "Screen" > Identifier "Screen1" > Device "Card0" > Monitor "Monitor1" > SubSection "Display" > Viewport 0 0 > Depth 1 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 4 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 8 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 15 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 16 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 24 > EndSubSection > EndSection > > What could be wrong at this point ? > > Il giorno ven 29 lug 2022 alle ore 15:42 Mario Marietto < > marietto2008@gmail.com> ha scritto: > >> It's not used by the host. FreeBSD is using the geforce 1060. And on the >> BIOS I have set up the 1060 as default. I know that I can't pass through a >> gpu that I'm using. And the third gpu is the geforce rtx 2080 ti that I can >> actually pass. >> >> Actually I have 3 gpus : >> >> 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 >> >> vgapci0@pci0:1:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de >> device=0x1c02 subvendor=0x19d >> a subdevice=0x2438 >> vendor = 'NVIDIA Corporation' >> device = 'GP106 [GeForce GTX 1060 3GB]' >> class = display >> subclass = VGA >> >> hdac0@pci0:1:0:1: class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de >> device=0x10f1 subvendor=0x19d >> a subdevice=0x2438 >> vendor = 'NVIDIA Corporation' >> device = 'GP106 High Definition Audio Controller' >> class = multimedia >> subclass = HDA >> >> ppt0@pci0:2:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de >> device=0x1e04 subvendor=0x19d >> a subdevice=0x2503 >> vendor = 'NVIDIA Corporation' >> device = 'TU102 [GeForce RTX 2080 Ti]' >> class = display >> subclass = VGA >> >> ppt1@pci0:2:0:1: class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de >> device=0x10f7 subvendor=0x19d >> a subdevice=0x2503 >> vendor = 'NVIDIA Corporation' >> device = 'TU102 High Definition Audio Controller' >> class = multimedia >> subclass = HDA >> >> ppt2@pci0:2:0:2: class=0x0c0330 rev=0xa1 hdr=0x00 vendor=0x10de >> device=0x1ad6 subvendor=0x19d >> a subdevice=0x2503 >> vendor = 'NVIDIA Corporation' >> device = 'TU102 USB 3.1 Host Controller' >> class = serial bus >> subclass = USB >> >> ppt3@pci0:2:0:3: class=0x0c8000 rev=0xa1 hdr=0x00 vendor=0x10de >> device=0x1ad7 subvendor=0x19d >> a subdevice=0x2503 >> vendor = 'NVIDIA Corporation' >> device = 'TU102 USB Type-C UCSI Controller' >> class = serial bus >> >> As you can see,I'm using the ppt driver on the gpus that I'm not using. >> >> Il giorno ven 29 lug 2022 alle ore 14:58 Jonathan Vasquez <jon@xyinn.org> >> ha scritto: >> >>> I thought in general we couldn't pass the GPU if it was being used by >>> the host? (Thus you would need to have two GPUs, one to allow the host to >>> display its output and one to passthrough. Unless the host is completely >>> headless). >>> >>> >>> Sent from ProtonMail mobile >>> >>> >>> >>> -------- Original Message -------- >>> On Jul 29, 2022, 02:38, Mario Marietto < marietto2008@gmail.com> wrote: >>> >>> >>> 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. >>> >>> >> >> -- >> Mario. >> > > > -- > Mario. > -- Mario. --000000000000ed45c705e51f966c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail-_3cjCphgls6DH-irkVaA0GM"><div class=3D= "gmail-_292iotee39Lmt0MkQZ2hPV gmail-RichTextJSON-root"><p class=3D"gmail-_= 1qeIAgB0cPwnLhDF9XSiJM"><span style=3D"color:rgb(0,0,0)"><b>I have 3 GPUs in my PC. Actually the BIOS uses the geforce 1060 to start=20 it. So,two GPUs are out and kept free. The Geforce RTX 2080 ti and the=20 Intel CoffeeLake-S GT2 [UHD Graphics 630]. I'm able to pass through the= RTX=20 2080 ti to a linux vm,but I'm not able to do the same with the UHD=20 Graphics 630. As I have explained in the post,there is nothing that keeps it busy. I'm not using it. Both my monitors are connected to the 1060= =20 using the twinview mode. One is using the DisplayPort,the other one is=20 using the HDMI port. When I want to pass the RTX 2080 inside a Linux VM=20 and I need to use my 2 monitor,I detach the HDMI cable from the 1060 and I attach it to the RTX 2080 ti and it's done. I can use it inside my= =20 bhyve VM. If I don't want to use bhyve,I connect the HDMI cable to the= =20 1060 and in this case I can use two screens at the same time without=20 running a VM. Cool. I can do this only with the RTX 2080 ti,but not with=20 the Intel GPU. If I'm obliged to use it even if I don't use it,I ca= n't=20 imagine how and in which kind of situation I can pass it through.</b></span= ></p></div></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" clas= s=3D"gmail_attr">Il giorno ven 29 lug 2022 alle ore 16:20 Mario Marietto &l= t;<a href=3D"mailto:marietto2008@gmail.com">marietto2008@gmail.com</a>> = ha scritto:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px = 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div= dir=3D"ltr"><div>Maybe I forget to setup something correctly,but :</div><d= iv><br></div><div>1) I've removed the <span style=3D"font-family:monosp= ace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">xf8= 6-video-intel driver from the system with : pkg remove <span style=3D"font-= family:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,= 255,255)">xf86-video-intel</span></span></span></span></div><div><span styl= e=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0);background-colo= r:rgb(255,255,255)"><span style=3D"font-family:monospace"><br></span></span= ></span></div><div><span style=3D"font-family:monospace"><span style=3D"col= or:rgb(0,0,0);background-color:rgb(255,255,255)"><span style=3D"font-family= :monospace">2) <span style=3D"font-family:monospace"><span style=3D"color:r= gb(0,0,0);background-color:rgb(255,255,255)">i haven't any i915kms or l= egacy intel module inside the memory :<br></span></span></span></span></spa= n></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:monos= pace"><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></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:monospa= ce"><span style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0);b= ackground-color:rgb(255,255,255)"># kldstat | grep i915 : nothing</span><br># kldstat | grep kms : nothing<br># kldstat | grep intel : nothing<br></span></span></span></spa= n></div><div><br></div><div>3) this is my xorg.conf (where is there is no t= race of intel driver)</div><div></div><div><br></div><div></div><div>Sectio= n "ServerLayout"<br> Identifier =C2=A0 =C2=A0 "X.org Configu= red"<br> Screen =C2=A0 =C2=A0 =C2=A00 =C2=A0"Screen0" LeftOf= "Screen1"<br> Screen =C2=A0 =C2=A0 =C2=A01 =C2=A0"Screen1&q= uot; <br> InputDevice =C2=A0 =C2=A0"Mouse0" "CorePointer&quo= t;<br> InputDevice =C2=A0 =C2=A0"Keyboard0" "CoreKeyboard&qu= ot;<br>EndSection<br><br>Section "Files"<br> ModulePath =C2=A0 &q= uot;/usr/local/lib/xorg/modules"<br> FontPath =C2=A0 =C2=A0 "/usr= /local/share/fonts/misc/"<br> FontPath =C2=A0 =C2=A0 "/usr/local/= share/fonts/TTF/"<br> FontPath =C2=A0 =C2=A0 "/usr/local/share/fo= nts/OTF/"<br> FontPath =C2=A0 =C2=A0 "/usr/local/share/fonts/Type= 1/"<br> FontPath =C2=A0 =C2=A0 "/usr/local/share/fonts/100dpi/&qu= ot;<br> FontPath =C2=A0 =C2=A0 "/usr/local/share/fonts/75dpi/"<br= > FontPath =C2=A0 =C2=A0 "catalogue:/usr/local/etc/X11/fontpath.d"= ;<br>EndSection<br><br>Section "Module"<br> Load =C2=A0"glx&= quot;<br>EndSection<br><br>Section "InputDevice"<br> Identifier = =C2=A0"Keyboard0"<br> Driver =C2=A0 =C2=A0 =C2=A0"kbd"<= br>EndSection<br><br>Section "InputDevice"<br> Identifier =C2=A0&= quot;Mouse0"<br> Driver =C2=A0 =C2=A0 =C2=A0"mouse"<br> Opti= on =C2=A0 =C2=A0"Protocol" "auto"<br> Option =C2=A0 = =C2=A0"Device" "/dev/sysmouse"<br> Option =C2=A0 =C2= =A0"ZAxisMapping" "4 5 6 7"<br>EndSection<br><br>Sectio= n "Monitor"<br> Identifier =C2=A0 "Monitor0"<br> Vendor= Name =C2=A0 "Monitor Vendor"<br> ModelName =C2=A0 =C2=A0"Mon= itor Model"<br>EndSection<br><br>Section "Monitor"<br> Ident= ifier =C2=A0 "Monitor1"<br> VendorName =C2=A0 "Monitor Vendo= r"<br> ModelName =C2=A0 =C2=A0"Monitor Model"<br>EndSection<= br><br>Section "Device"<br>Identifier =C2=A0"Card0"<br>= Driver =C2=A0 =C2=A0 =C2=A0"nvidia"<br>BusID =C2=A0 =C2=A0 =C2=A0= "PCI:1:0:0"<br>EndSection</div><div><br></div><div>Section "= ;Screen"<br> Identifier "Screen0"<br> Device =C2=A0 =C2=A0 &= quot;Card0"<br> Monitor =C2=A0 =C2=A0"Monitor0"<br> SubSecti= on "Display"<br> Viewport =C2=A0 0 0<br> Depth =C2=A0 =C2=A0 1<= br> EndSubSection<br> SubSection "Display"<br> Viewport =C2=A0 0= 0<br> Depth =C2=A0 =C2=A0 4<br> EndSubSection<br> SubSection "Displa= y"<br> Viewport =C2=A0 0 0<br> Depth =C2=A0 =C2=A0 8<br> EndSubSecti= on<br> SubSection "Display"<br> Viewport =C2=A0 0 0<br> Depth = =C2=A0 =C2=A0 15<br> EndSubSection<br> SubSection "Display"<br> = Viewport =C2=A0 0 0<br> Depth =C2=A0 =C2=A0 16<br> EndSubSection<br> SubSe= ction "Display"<br> Viewport =C2=A0 0 0<br> Depth =C2=A0 =C2=A0= 24<br> EndSubSection<br>EndSection<br><br>Section "Screen"<br> I= dentifier "Screen1"<br> Device =C2=A0 =C2=A0 "Card0"<br= > Monitor =C2=A0 =C2=A0"Monitor1"<br> SubSection "Display&qu= ot;<br> Viewport =C2=A0 0 0<br> Depth =C2=A0 =C2=A0 1<br> EndSubSection<b= r> SubSection "Display"<br> Viewport =C2=A0 0 0<br> Depth =C2= =A0 =C2=A0 4<br> EndSubSection<br> SubSection "Display"<br> View= port =C2=A0 0 0<br> Depth =C2=A0 =C2=A0 8<br> EndSubSection<br> SubSection= "Display"<br> Viewport =C2=A0 0 0<br> Depth =C2=A0 =C2=A0 15<b= r> EndSubSection<br> SubSection "Display"<br> Viewport =C2=A0 0 = 0<br> Depth =C2=A0 =C2=A0 16<br> EndSubSection<br> SubSection "Displa= y"<br> Viewport =C2=A0 0 0<br> Depth =C2=A0 =C2=A0 24<br> EndSubSect= ion<br>EndSection</div><div><br></div><div><div>What could be wrong at this= point ?<br></div></div></div><br><div class=3D"gmail_quote"><div dir=3D"lt= r" class=3D"gmail_attr">Il giorno ven 29 lug 2022 alle ore 15:42 Mario Mari= etto <<a href=3D"mailto:marietto2008@gmail.com" target=3D"_blank">mariet= to2008@gmail.com</a>> ha scritto:<br></div><blockquote class=3D"gmail_qu= ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20= 4);padding-left:1ex"><div dir=3D"ltr"><div>It's not used by the host. F= reeBSD is using the geforce 1060. And on the BIOS I have set up the 1060 as= default. I know that I can't pass through a gpu that I'm using. An= d the third gpu is the geforce rtx 2080 ti that I can actually pass. <br></= div><div><br></div><div>Actually I have 3 gpus :</div><div><span style=3D"f= ont-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:rg= b(0,0,0);background-color:rgb(255,255,255)"><span style=3D"font-family:mono= space"><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= -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:monospa= ce"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">ppt4= @pci0:0:2:0: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x038000 rev= =3D0x02 hdr=3D0x00 vendor=3D0x8086 device=3D0x3e98 subvendor=3D0x145</span>= 8 subdevice=3D0xd000 <br> =C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'Intel Corpor= ation' <br> =C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'CoffeeLake-S= GT2 [UHD Graphics 630]' <br> =C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D display</spa= n></span></span></span></span></div><div><span style=3D"font-family:monospa= ce"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><spa= n style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0);backgroun= d-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)">vgapci= 0@pci0:1:0:0: =C2=A0=C2=A0=C2=A0=C2=A0class=3D0x030000 rev=3D0xa1 hdr=3D0x0= 0 vendor=3D0x10de device=3D0x1c02 subvendor=3D0x19d</span><br>a subdevice= =3D0x2438 <br> =C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration' <br> =C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'GP106 [GeFor= ce GTX 1060 3GB]' <br> =C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D display <br> =C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D VGA <br></span></div><div><span style=3D"font-family:monospace"><br></span></di= v><div><span style=3D"font-family:monospace">hdac0@pci0:1:0:1: =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x1= 0de device=3D0x10f1 subvendor=3D0x19d<br>a subdevice=3D0x2438 <br> =C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration' <br> =C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'GP106 High D= efinition Audio Controller' <br> =C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D multimedia <br> =C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D HDA <br></span></div><div><span style=3D"font-family:monospace"><br></span></di= v><div><span style=3D"font-family:monospace">ppt0@pci0:2:0:0: =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor= =3D0x10de device=3D0x1e04 subvendor=3D0x19d<br>a subdevice=3D0x2503 <br> =C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration' <br> =C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'TU102 [GeFor= ce RTX 2080 Ti]' <br> =C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D display <br> =C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D VGA <br></span></div><div><span style=3D"font-family:monospace"><br></span></di= v><div><span style=3D"font-family:monospace">ppt1@pci0:2:0:1: =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor= =3D0x10de device=3D0x10f7 subvendor=3D0x19d<br>a subdevice=3D0x2503 <br> =C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration' <br> =C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'TU102 High D= efinition Audio Controller' <br> =C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D multimedia <br> =C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D HDA <br></span></div><div><span style=3D"font-family:monospace"><br></span></di= v><div><span style=3D"font-family:monospace">ppt2@pci0:2:0:2: =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x0c0330 rev=3D0xa1 hdr=3D0x00 vendor= =3D0x10de device=3D0x1ad6 subvendor=3D0x19d<br>a subdevice=3D0x2503 <br> =C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration' <br> =C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'TU102 USB 3.= 1 Host Controller' <br> =C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D serial bus <br> =C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D USB <br></span></div><div><span style=3D"font-family:monospace"><br></span></di= v><div><span style=3D"font-family:monospace">ppt3@pci0:2:0:3: =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x0c8000 rev=3D0xa1 hdr=3D0x00 vendor= =3D0x10de device=3D0x1ad7 subvendor=3D0x19d<br>a subdevice=3D0x2503 <br> =C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration' <br> =C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'TU102 USB Ty= pe-C UCSI Controller' <br> =C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D serial bus<b= r> <br></span></div><div><span style=3D"font-family:monospace">As you can see,= I'm using the ppt driver on the gpus that I'm not using. <br></span= ></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail= _attr">Il giorno ven 29 lug 2022 alle ore 14:58 Jonathan Vasquez <<a hre= f=3D"mailto:jon@xyinn.org" target=3D"_blank">jon@xyinn.org</a>> ha scrit= to:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px = 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I thought in= general we couldn't pass the GPU if it was being used by the host? (Th= us you would need to have two GPUs, one to allow the host to display its ou= tput and one to passthrough. Unless the host is completely headless).<br><b= r><br>Sent from ProtonMail mobile<br><br><br><br>-------- Original Message = --------<br>On Jul 29, 2022, 02:38, Mario Marietto < <a href=3D"mailto:m= arietto2008@gmail.com" target=3D"_blank">marietto2008@gmail.com</a>> wro= te:<blockquote><br><div dir=3D"ltr"><div><span style=3D"font-family:monospa= ce"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><spa= n style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0);backgroun= d-color:rgb(255,255,255)">Hello.</span></span></span></span></div><div><spa= n style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0);backgroun= d-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"><span style=3D"color:rgb(0,0,0);background-color:rgb(255= ,255,255)">I've tried to passthru my <span style=3D"font-family:monospa= ce"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><spa= n style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0);backgroun= d-color:rgb(255,255,255)"><span style=3D"font-family:monospace">CoffeeLake-= S GT2 [UHD Graphics 630] on a Linux VM but it failed. This graphic card :<b= r></span></span></span></span></span></span></span></span></span></div><div= ><span style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0);back= ground-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:rg= b(255,255,255)"><br></span></span></span></span></span></span></div><div><s= pan style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0);backgro= und-color:rgb(255,255,255)"><span style=3D"font-family:monospace"><span sty= le=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style=3D"fo= nt-family:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(2= 55,255,255)">ppt4@pci0:0:2:0: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0cla= ss=3D0x038000 rev=3D0x02 hdr=3D0x00 vendor=3D0x8086 device=3D0x3e98 subvend= or=3D0x145</span>8 subdevice=3D0xd000 <br> =C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'Intel Corpor= ation' <br> =C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'CoffeeLake-S= GT2 [UHD Graphics 630]' <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'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 < /dev/null & sleep 2 && 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'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">Mar= io.<br></div></div> </blockquote></blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"lt= r">Mario.<br></div> </blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr">Mario.<br>= </div> </blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g= mail_signature">Mario.<br></div> --000000000000ed45c705e51f966c--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSihvHO7Ox-3qejX6tgXYWmOdHNSyMU-tbAq%2BbQi=1sd-Ew>