From nobody Fri Jul 29 14:20:25 2022 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 4LvV755lgvz4XKnv for ; Fri, 29 Jul 2022 14:21:05 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LvV7471bjz3F2C for ; Fri, 29 Jul 2022 14:21:04 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: by mail-ed1-x531.google.com with SMTP id z18so5988942edb.10 for ; Fri, 29 Jul 2022 07:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Mw3MpmUQzcqmuBi9UYWIfk9LgKmZzsrre+jTfAlSN3I=; b=bmH5djjt8DTtkZXLunc+fa97uW0iyoLAwLJF8KdAzPl+nEzetkHl3DhBP6aakc4fkc Fy7wwUJRSgJyGk8qG/ft6zIAM2jJhiXUy+neO/bKiFQkRuTw3/R5Nhq4AR9MwSNiNvzi 7vEEwL1Nbagqor/ss9q2Jq1biWPr886v8nFD4dSoENAyevBM0DQ9aRmQGOOVFXzdulMj drATS5sNN/EDv5ARmgK2wpOfoDJ72fwbywK/fyg9kbahlfSBzbItAeyvUXbroPppK7rD u+nhyatw1wKZEuSIjcBe32+YPMGO3kF6mTfV0Ec9kxVmEXIIMCFjXiPQ6J2tTma3SUXf iagA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Mw3MpmUQzcqmuBi9UYWIfk9LgKmZzsrre+jTfAlSN3I=; b=4Xsi18kvin9FTN9lussjsj1x4D2SbOYA/Z129aoGWCCJYnwlws4ELL6tgK3NqD0bqN VJApFfzZbrAPlwpsiyrSlRRyKa28Lsvn+hxdC2UdM/s3ALyR1bCKNLrwogbZiE5PsugB 6+cR5vHqd51GhEEWGpfOwI6y524DtQNq/VlAdbHINAmIgzTqO+Haw+j3Ta99Neyi+8Jm 77FuTOXTz/ZZBNKFTHOmatA2zZst+g0v/+F/3plLlt0a9UWYfrO6MA8LXcYjcZnSDs3k FEidZ0mpJvwprhSQk2v/uXHrlPMNqI3eJQzCblyMM7XC6sdfEp/5nOi11zCANmoET63x hMkw== X-Gm-Message-State: AJIora8hz24Ktz7tXBUpEg/mD12l8goS+UByCcvb4mcRQEWErcrf5Xgu EvhMPy+gSGD1mRn3NAev7Ix0pWoW1leXSxQH6zkp6ft2esY= X-Google-Smtp-Source: AGRyM1tOp6CdsUZMmtuNhSv0z/3lXrt7P8OLopBsITabmNclvzrxDZIi2mSeviM18+UjSZI2IWlZ2oVU8zt0EQ97Erw= X-Received: by 2002:a05:6402:2755:b0:43b:e6d4:846f with SMTP id z21-20020a056402275500b0043be6d4846fmr3902033edd.36.1659104463454; Fri, 29 Jul 2022 07:21:03 -0700 (PDT) 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 References: In-Reply-To: From: Mario Marietto Date: Fri, 29 Jul 2022 16:20:25 +0200 Message-ID: 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 To: Jonathan Vasquez , FreeBSD virtualization , =?UTF-8?Q?Corvin_K=C3=B6hne?= Content-Type: multipart/alternative; boundary="0000000000003085be05e4f25c24" X-Rspamd-Queue-Id: 4LvV7471bjz3F2C X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=bmH5djjt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::531 as permitted sender) smtp.mailfrom=marietto2008@gmail.com X-Spamd-Result: default: False [2.26 / 15.00]; LONG_SUBJ(2.23)[297]; HTTP_TO_IP(1.00)[]; URI_COUNT_ODD(1.00)[1]; NEURAL_HAM_SHORT(-0.99)[-0.994]; NEURAL_SPAM_MEDIUM(0.87)[0.872]; NEURAL_HAM_LONG(-0.85)[-0.850]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::531:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; FREEMAIL_FROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --0000000000003085be05e4f25c24 Content-Type: text/plain; charset="UTF-8" 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 > 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. --0000000000003085be05e4f25c24 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 :
<= /span>

# kldstat | grep i915 : nothing
# kldstat | grep kms : nothing
# kldstat | grep intel : nothing

3) this is my xorg.conf (where is there is no t= race of intel driver)

Sectio= n "ServerLayout"
Identifier =C2=A0 =C2=A0 "X.org Configu= red"
Screen =C2=A0 =C2=A0 =C2=A00 =C2=A0"Screen0" LeftOf= "Screen1"
Screen =C2=A0 =C2=A0 =C2=A01 =C2=A0"Screen1&q= uot;
InputDevice =C2=A0 =C2=A0"Mouse0" "CorePointer&quo= t;
InputDevice =C2=A0 =C2=A0"Keyboard0" "CoreKeyboard&qu= ot;
EndSection

Section "Files"
ModulePath =C2=A0 &q= uot;/usr/local/lib/xorg/modules"
FontPath =C2=A0 =C2=A0 "/usr= /local/share/fonts/misc/"
FontPath =C2=A0 =C2=A0 "/usr/local/= share/fonts/TTF/"
FontPath =C2=A0 =C2=A0 "/usr/local/share/fo= nts/OTF/"
FontPath =C2=A0 =C2=A0 "/usr/local/share/fonts/Type= 1/"
FontPath =C2=A0 =C2=A0 "/usr/local/share/fonts/100dpi/&qu= ot;
FontPath =C2=A0 =C2=A0 "/usr/local/share/fonts/75dpi/" FontPath =C2=A0 =C2=A0 "catalogue:/usr/local/etc/X11/fontpath.d"= ;
EndSection

Section "Module"
Load =C2=A0"glx&= quot;
EndSection

Section "InputDevice"
Identifier = =C2=A0"Keyboard0"
Driver =C2=A0 =C2=A0 =C2=A0"kbd"<= br>EndSection

Section "InputDevice"
Identifier =C2=A0&= quot;Mouse0"
Driver =C2=A0 =C2=A0 =C2=A0"mouse"
Opti= on =C2=A0 =C2=A0"Protocol" "auto"
Option =C2=A0 = =C2=A0"Device" "/dev/sysmouse"
Option =C2=A0 =C2= =A0"ZAxisMapping" "4 5 6 7"
EndSection

Sectio= n "Monitor"
Identifier =C2=A0 "Monitor0"
Vendor= Name =C2=A0 "Monitor Vendor"
ModelName =C2=A0 =C2=A0"Mon= itor Model"
EndSection

Section "Monitor"
Ident= ifier =C2=A0 "Monitor1"
VendorName =C2=A0 "Monitor Vendo= r"
ModelName =C2=A0 =C2=A0"Monitor Model"
EndSection<= br>
Section "Device"
Identifier =C2=A0"Card0"
= Driver =C2=A0 =C2=A0 =C2=A0"nvidia"
BusID =C2=A0 =C2=A0 =C2=A0= "PCI:1:0:0"
EndSection

Section "= ;Screen"
Identifier "Screen0"
Device =C2=A0 =C2=A0 &= quot;Card0"
Monitor =C2=A0 =C2=A0"Monitor0"
SubSecti= on "Display"
Viewport =C2=A0 0 0
Depth =C2=A0 =C2=A0 1<= br> EndSubSection
SubSection "Display"
Viewport =C2=A0 0= 0
Depth =C2=A0 =C2=A0 4
EndSubSection
SubSection "Displa= y"
Viewport =C2=A0 0 0
Depth =C2=A0 =C2=A0 8
EndSubSecti= on
SubSection "Display"
Viewport =C2=A0 0 0
Depth = =C2=A0 =C2=A0 15
EndSubSection
SubSection "Display"
= Viewport =C2=A0 0 0
Depth =C2=A0 =C2=A0 16
EndSubSection
SubSe= ction "Display"
Viewport =C2=A0 0 0
Depth =C2=A0 =C2=A0= 24
EndSubSection
EndSection

Section "Screen"
I= dentifier "Screen1"
Device =C2=A0 =C2=A0 "Card0" Monitor =C2=A0 =C2=A0"Monitor1"
SubSection "Display&qu= ot;
Viewport =C2=A0 0 0
Depth =C2=A0 =C2=A0 1
EndSubSection SubSection "Display"
Viewport =C2=A0 0 0
Depth =C2= =A0 =C2=A0 4
EndSubSection
SubSection "Display"
View= port =C2=A0 0 0
Depth =C2=A0 =C2=A0 8
EndSubSection
SubSection= "Display"
Viewport =C2=A0 0 0
Depth =C2=A0 =C2=A0 15 EndSubSection
SubSection "Display"
Viewport =C2=A0 0 = 0
Depth =C2=A0 =C2=A0 16
EndSubSection
SubSection "Displa= y"
Viewport =C2=A0 0 0
Depth =C2=A0 =C2=A0 24
EndSubSect= ion
EndSection

What could be wrong at this= point ?

Il giorno ven 29 lug 2022 alle ore 15:42 Mario Mari= etto <mariet= to2008@gmail.com> ha scritto:
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.

Actually I have 3 gpus :
<= br>
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= 8 subdevice=3D0xd000
=C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'Intel Corpor= ation'
=C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'CoffeeLake-S= GT2 [UHD Graphics 630]'
=C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D display

=
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
a subdevice= =3D0x2438
=C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration'
=C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'GP106 [GeFor= ce GTX 1060 3GB]'
=C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D display
=C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D VGA

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
a subdevice=3D0x2438
=C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration'
=C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'GP106 High D= efinition Audio Controller'
=C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D multimedia
=C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D HDA

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
a subdevice=3D0x2503
=C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration'
=C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'TU102 [GeFor= ce RTX 2080 Ti]'
=C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D display
=C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D VGA

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
a subdevice=3D0x2503
=C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration'
=C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'TU102 High D= efinition Audio Controller'
=C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D multimedia
=C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D HDA

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
a subdevice=3D0x2503
=C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration'
=C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'TU102 USB 3.= 1 Host Controller'
=C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D serial bus
=C2=A0=C2=A0=C2=A0subclass =C2=A0=C2=A0=3D USB

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
a subdevice=3D0x2503
=C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'NVIDIA Corpo= ration'
=C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'TU102 USB Ty= pe-C UCSI Controller'
=C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D 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 scrit= to:
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).

Sent from ProtonMail mobile



-------- Original Message = --------
On Jul 29, 2022, 02:38, Mario Marietto < marietto2008@gmail.com> wro= te:

Hello.

<= /span>
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: =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=3D0x1458 subdevice=3D0xd000
=C2=A0=C2=A0=C2=A0vendor =C2=A0=C2=A0=C2=A0=C2=A0=3D 'Intel Corpor= ation'
=C2=A0=C2=A0=C2=A0device =C2=A0=C2=A0=C2=A0=C2=A0=3D 'CoffeeLake-S= GT2 [UHD Graphics 630]'
=C2=A0=C2=A0=C2=A0class =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D display

be= low there are the bhyve parameters that I've used :

<= /span>
bhyve -S -c sockets=3D1,cores=3D2,threads=3D2 -m 4G -w -H -A \
-s 0,hostbridge \
-s 1,nvme,/dev/$vmdisk0,bootindex=3D1 \
-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=3D/dev/dsp,rec=3D/dev/dsp \
-s 29,fbuf,tcp=3D0.0.= 0.0:5904,w=3D1500,h=3D950 \
-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 Memor= y.
GPU passthrou= gh might not work prope= rly.
bhyve: gvt_d_setup_opregion: Unable to get OpReg= ion base and length
bhyve: gvt_d_init: Unable to setup OpRegion
device emulation initialization error: Operation not supported by devic= e

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.

--
Mar= io.


--
Mario.


--
Mario.
=
--0000000000003085be05e4f25c24--