From nobody Sat Jul 30 17:05:34 2022 X-Original-To: ports-bugs@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 4Lw9kQ699yz4Wy34 for ; Sat, 30 Jul 2022 17:05:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lw9kQ4Cv1z3GfB for ; Sat, 30 Jul 2022 17:05:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lw9kQ3J8QzMZh for ; Sat, 30 Jul 2022 17:05:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26UH5YlL010220 for ; Sat, 30 Jul 2022 17:05:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26UH5YRJ010219 for ports-bugs@FreeBSD.org; Sat, 30 Jul 2022 17:05:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265522] base system/bhyve : What could keep in use the Intel GPU in my system Date: Sat, 30 Jul 2022 17:05:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marietto2008@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659200734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XBx9JGTEqpSEh/xQAcch82JdYUN4ndDxhRqDwFtfCXU=; b=ZJCRsTvvHb6lmQg4/E8Be1eHcloS7nmmETFqyasEZwpWAi4q+MoeGP42JYRFQE/5qgP/VQ 8uo6VbzGDnyuibOFcD0ePgAxRzJBmLJLVNQgU1nu3wrjXO8GAG2m51G7B/aqvNfvpnjmwa aEIN5xReJ1Zk5HF4Fj9rYG/EENB/HbpIDqAU754XiOlpUOiH3UaFDC+sJh2PC32NhVZMgH K332BdDdMk2BjQ1TMr4E5rdGD/P1rzz4p9NRJCXQsX1GUNmbmqq+7XXJw1jjkIFABUUt0b s+T53bUzdPTyKEYKynFngulXi9YWtzvxYnIsXpZi7RlfLxjo3c/RpIuN3a3k/Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659200734; a=rsa-sha256; cv=none; b=I4rD/BCpqldL//7n3rhKU3CotBa5zo0yfVeIdPQDULS7HiMcv2vlsYJqPFiLqC+oQ5xg+T bHfFVeyhQEdoCP4jcg9X22uzxLkyztmrTKbG7J9f7rzTcsv61vRKg3Qt+VV7gPeI7Kz99O OVk9gJbmlwYinGgy0SfILzz/sSLuYqxFLFRDY8dqZ3z1tGxfU2onzf1WxfGpUOKlx2I6Mh h94vBCwqpZAWr7KCaBiNFG9RTHFtIsdGZblvYJyMEqmwSnvaq7oxhxl5AgGzreRtAaA/ZC IEWwvfCBkcXO5tgvK7Nho+pXhF24Y993OSr/Unk2gdsXfWjUVZD8YdFTur+/Ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265522 Bug ID: 265522 Summary: base system/bhyve : What could keep in use the Intel GPU in my system Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: marietto2008@gmail.com Hello. I'm running FreeBSD 13.1-RELEASE and I'm trying 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=3D0x038000 rev=3D0x02 hdr=3D0x00 vendor=3D0x8= 086 device=3D0x3e98 subvendor=3D0x1458 subdevice=3D0xd000 vendor =3D 'Intel Corporation' device =3D 'CoffeeLake-S GT2 [UHD Graphics 630]' class =3D display below there are the bhyve parameters that I've used : 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 Memory.=20 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 initializati= on error: Operation not supported by device A bhyve developer replied to me in this way : I thought in general we couldn't pass the GPU if it was being used by the h= ost? (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). At this point I think that the intel GPU is actually in use,but I don't know what could keep it in use. Infact : 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 I've just booted a linux vm passing thru the RTX 2080 ti using the same parameters used before and it worked. I've detached the HDMI cable from the 1060 and I've attached it to the 2080 ti and I've got what I wanted from the beginning : to choose between virtualize an OS with bhyve or more easily,on= ly using the second monitor without bhyve. Now I want also pass thru the intel GPU. What video card do I think provides the image I'm looking at on my monitor ? The following scheme is valid to answer this question : 1) monitor AOC + monitor Samsung -> 1 HDMI cable (for the samsung) + 1 DP c= able (for the AOC) -> geforce 1060 - without a bhyve-Linux VM 2) monitor AOC + monitor Samsung -> 1 DP cable attached to the AOC and 1 hd= mi cable attached to the RTX 2080 ti - if I want to use a bhyve / Linux vm pas= sing the RTX 2080 ti GPU 3) monitor AOC + monitor Samsung -> 1 DP cable attached to the AOC and 1 HD= MI cable attached to the Intel GPU - if I want to use a bhyve / Linux VM passi= ng the Intel GPU The Intel GPU is always kept free as well as the RTX 2080 ti. Even in the BIOS,since I've chosen the 1060 as default GPU,but the Intel GPU is enabled. --=20 You are receiving this mail because: You are the assignee for the bug.=