From nobody Fri Jul 29 06:38:42 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 4LvHtM4Vfmz4X68Q for ; Fri, 29 Jul 2022 06:39:23 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (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 4LvHtL4W6mz3Vlv for ; Fri, 29 Jul 2022 06:39:22 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: by mail-ed1-x529.google.com with SMTP id z18so4638925edb.10 for ; Thu, 28 Jul 2022 23:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=hVk6tblhIpJ+V1xIel3a7Ip5w65sTy6OaSajmN789Yg=; b=n8rAuGn47iOxU0AfWCS0FcTX61qnXqNzvmfoYrktVWiLfOXL7qje0pe6jCG7rJ+KhA /+tBbF4EVx/4l1fNm751hl74BFIq4WeALu/vebaWZGDvjtz6ecmpxup6PDXt5lQKa3QR bEu0NLyQJduywuOChEPxD7oFMhy7GyCnGLfQVVoE0OKsNcHpHbvdEpliMoZML4nG595X 8yQNgsNELCgSh9w6C5oYU2A/mEvGGkXOrrQjyvmMCrXho3fWpnS/2akFj4F8IUot2OON HScqrV4NjPayHpVENlxBgLEA0Uvt2yYHGdCHknnpW+HQ4zMYPVscC9mIRK5orcbLsiWc /UDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hVk6tblhIpJ+V1xIel3a7Ip5w65sTy6OaSajmN789Yg=; b=gip16LwIb1syfzDWGnhW3j6ns4I7XvX0tqOzr0jPNOgRH2ZNDZktqjE7yDLN0g0dAr uwiKt37JAuvAp76lsMIK7Xlee9itVB5u6ViUpcfooBu9AIKxyyFmEOoa6I00EkHaWIUe VscMr2vpKBbLUt9UA4Ay7xGSXDuabRuOxTwqB5Eio04w2W83JzD3qlOi5BcvzM4rrLrM LUMTBWkxxqc03OTbrq9y5OiPkj6yRc8Zm3CyL0NAP6Wfv0osQscuR/2JeEG2X/KY+LcS ru+T1sLClm/COdIatIDkYeJkkF4z2mtUaCNVso02T2xrLVGZ2UW0tZrRDHk9NVfucmmy e+pA== X-Gm-Message-State: AJIora9wHEy5xeATNJs4Q3XwzoUFz04z9xsBW5RcAdGTSUl9cjR/ClMq UYANXyUrlRp6uhWsuh+SZSzr12tIhKj/G12FF6t/SKiJuZ7E6Q== X-Google-Smtp-Source: AGRyM1sG0vb5omq1aZeMyA4Hb+C5Wz7kDsZMdqevOQUJNGmkW6lLcS+bg2OIPuhFqoz14DmgwqfLfDy6wfNDhaYdMCg= X-Received: by 2002:a05:6402:1117:b0:43b:c965:549e with SMTP id u23-20020a056402111700b0043bc965549emr2188743edv.366.1659076759401; Thu, 28 Jul 2022 23:39:19 -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 From: Mario Marietto Date: Fri, 29 Jul 2022 08:38:42 +0200 Message-ID: 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 To: FreeBSD virtualization , =?UTF-8?Q?Corvin_K=C3=B6hne?= Content-Type: multipart/alternative; boundary="000000000000e6372205e4ebe843" X-Rspamd-Queue-Id: 4LvHtL4W6mz3Vlv X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=n8rAuGn4; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::529 as permitted sender) smtp.mailfrom=marietto2008@gmail.com X-Spamd-Result: default: False [2.47 / 15.00]; LONG_SUBJ(2.23)[297]; URI_COUNT_ODD(1.00)[1]; HTTP_TO_IP(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.996]; NEURAL_SPAM_MEDIUM(0.58)[0.582]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_LONG(-0.34)[-0.343]; 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]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::529:from]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --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
Hello.

=
I've t= ried to passthru my CoffeeLake-S GT2 [UHD Graphics 6= 30] on a Linux VM but it failed. This graphic card :

<= /span>
= 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=3D0x1458 su= bdevice=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.

--
Mario.
<= /div> --000000000000e6372205e4ebe843--