From owner-freebsd-virtualization@freebsd.org Thu Nov 5 09:20:41 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 97D7D462F58 for ; Thu, 5 Nov 2020 09:20:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4CRdKj3kbxz4QZ3 for ; Thu, 5 Nov 2020 09:20:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7FE06462D7D; Thu, 5 Nov 2020 09:20:41 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7FA8A462E55 for ; Thu, 5 Nov 2020 09:20:41 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CRdKj331Vz4QTZ for ; Thu, 5 Nov 2020 09:20:41 +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 5C2A4119AD for ; Thu, 5 Nov 2020 09:20:41 +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 0A59Kf66086383 for ; Thu, 5 Nov 2020 09:20:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0A59KfOU086382 for virtualization@FreeBSD.org; Thu, 5 Nov 2020 09:20:41 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 250802] bhyve exited with status 134 when GPU PCI passthrough Date: Thu, 05 Nov 2020 09:20:40 +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: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mr.xanto@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 MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2020 09:20:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250802 --- Comment #10 from mr.xanto@gmail.com --- (In reply to Konstantin Belousov from comment #9) bhyve options: [bhyve options: -c 1 -m 3G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -U 7bd95998-1d4b-11eb-b522-70f3951447ea -S] [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,ahci,hd:/mnt/Data/vm/bsd_test/disk0.img -s 5:0,virtio-net,tap0,mac=3D58:9c:fc:0a:22:9a -s 6:0,passthru,1/0/0 -s 6:1,passthru,1/0/1 -s 7:0,xhci,tablet] [bhyve console: -l com1,stdio] [bhyve iso device: -s 3:0,ahci-cd,/mnt/Data/vm/.iso/FreeBSD-12.1-STABLE-amd64-20200827-r364849-bo= otonly.iso,ro] log errors: bhyve exited with status 4 bhyve: failed to initialize BARs for PCI 1/0/0 device emulation initialization error: No such file or directory # pciconf -lvcb ppt0@pci0:1:0:0: class=3D0x030000 card=3D0x38991642 chip=3D0x0a6310d= e rev=3D0xa2 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'GT218 [GeForce 310]' class =3D display subclass =3D VGA bar [10] =3D type Memory, range 32, base 0xfa000000, size 16777216, e= nabled bar [14] =3D type Prefetchable Memory, range 64, base 0xc0000000, size 268435456, enabled bar [1c] =3D type Prefetchable Memory, range 64, base 0xd0000000, size 33554432, enabled bar [24] =3D type I/O Port, range 32, base 0xe000, size 128, enabled cap 01[60] =3D powerspec 3 supports D0 D3 current D0 cap 05[68] =3D MSI supports 1 message, 64 bit cap 10[78] =3D PCI-Express 2 endpoint max data 128(128) RO NS max read 128 link x16(x16) speed 2.5(2.5) ASPM disabled(L0s/L1) ClockPM enabled cap 09[b4] =3D vendor (length 20) ecap 0002[100] =3D VC 1 max VC0 ecap 0004[128] =3D Power Budgeting 1 ecap 000b[600] =3D Vendor 1 ID 1 ppt1@pci0:1:0:1: class=3D0x040300 card=3D0x38991642 chip=3D0x0be310d= e rev=3D0xa1 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'High Definition Audio Controller' class =3D multimedia subclass =3D HDA bar [10] =3D type Memory, range 32, base 0xfb080000, size 16384, enab= led cap 01[60] =3D powerspec 3 supports D0 D3 current D0 cap 05[68] =3D MSI supports 1 message, 64 bit cap 10[78] =3D PCI-Express 2 endpoint max data 128(128) NS max read 128 link x16(x16) speed 2.5(2.5) ASPM L0s/L1(L0s/L1) ClockPM enabled --=20 You are receiving this mail because: You are the assignee for the bug.=