From nobody Tue Aug 24 14:47:51 2021 X-Original-To: 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 6F37E1793056 for ; Tue, 24 Aug 2021 14:47:51 +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 4GvBmR26CZz3HXp for ; Tue, 24 Aug 2021 14:47:51 +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 2CB2F24CE for ; Tue, 24 Aug 2021 14:47:51 +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 17OElplp006852 for ; Tue, 24 Aug 2021 14:47:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 17OElpHh006851 for virtualization@FreeBSD.org; Tue, 24 Aug 2021 14:47:51 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: virtualization@FreeBSD.org Subject: [Bug 258007] FreeBSD and Linux guest os emulated with bhyve can't pass thru any of my NVIDIA graphic cards : the vm freezes before to starting the boot of the disk. Date: Tue, 24 Aug 2021 14:47:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: marietto2008@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258007 --- Comment #5 from mario felicioni --- Here we go. I've installed FreeBSD instead of Linux with bhyve and I tried = to pass thru the rtx 2080 ti using this command : Code: bhyve -S -c 4 -m 8G -w -H \ -s 0,hostbridge \ -s 1,passthru,1/0/0 \ -s 1:1,passthru,1/0/2 \ -s 1:2,passthru,1/0/3 \ -s 2,virtio-blk,/mnt/da1p1/vms/os/freebsd-13R/freebsd-13R.img \ -s 3,virtio-net,tap0 \ -s 29,fbuf,tcp=3D0.0.0.0:5900,w=3D1440,h=3D900 \ -s 30,xhci,tablet \ -s 31,lpc -l com1,stdio \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ vm0 as u can see : 1) I didn't pass thru the device 1/0/1 because it is the audio device integrated with the rtx 2080 ti 2) I have removed the emulated audio device 3) I have installed freebsd 13R instead of linux 4) without the passthru lines it works but it didn't work. it freezes on the black screen before to itizialize the disk. On /boot/loader.conf I have added this : Code: pptdevs=3D"1/0/0 1/0/2 1/0/3" Code: pciconf -v -l ppt0@pci0:1:0:0: class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1e04 subvendor=3D0x19da subdevice=3D0x2503 vendor =3D 'NVIDIA Corporation' device =3D 'TU102 [GeForce RTX 2080 Ti]' class =3D display subclass =3D VGA hdac0@pci0:1:0:1: class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x10f7 subvendor=3D0x19da subdevice=3D0x2503 vendor =3D 'NVIDIA Corporation' device =3D 'TU102 High Definition Audio Controller' class =3D multimedia subclass =3D HDA ppt1@pci0:1:0:2: class=3D0x0c0330 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1ad6 subvendor=3D0x19da subdevice=3D0x2503 vendor =3D 'NVIDIA Corporation' device =3D 'TU102 USB 3.1 Host Controller' class =3D serial bus subclass =3D USB ppt2@pci0:1:0:3: class=3D0x0c8000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1ad7 subvendor=3D0x19da subdevice=3D0x2503 vendor =3D 'NVIDIA Corporation' device =3D 'TU102 USB Type-C UCSI Controller' class =3D serial bus --=20 You are receiving this mail because: You are the assignee for the bug.=