From nobody Sat Jul 06 16:58:34 2024 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 4WGc633mZ4z5P7y4 for ; Sat, 06 Jul 2024 16:58:35 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WGc6325Cqz4rYW for ; Sat, 6 Jul 2024 16:58:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720285115; a=rsa-sha256; cv=none; b=YkjtEaNrmqhzIQH+ksC9Yn6dwGcA5HZ0jSvc/LEE9EuCXgnVl0/ZvtOqk89C4YdD3nIYf+ tYOtaWks6feVahHMHkthUHqLteM9cec0Wlvpe+lQ+1U23yhN3vbw2ka+2hKmI9qVgz8jnE KoKveuNw5YyhiBpgSa22Wye/waCMSMmcTCboA4EK91mmIvr5VzPGT6CLULnSmPVOGH5usm A3/oTHAw6zKnZbFAyMb8tTHQ6Au5ESY9xPosq3p7RbAAolcOtP1umfkKVW0dfsSrsW4n8I TkB6Ek8RQPWblGY23h8QUMyD1u4oTMHCyRwe3NnOQJj2Z8I0UDN/korLo82mxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720285115; 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=OBQUiDFto0Y0b6qXlVPvwAoT3QffnuClyZU+MPaunZs=; b=wlfgxJK0scD1OtxfghKCrg55Fr164A5avUtJYqStysT5oVP1D/ONH47NLzgfSp2pKykBf7 6qI+VDuXHE8Bi+T3Qx31Lm7vd7yTawzcBh3pAVsb9XfsNMYOM7j36GqqSe35TMLZBG3r1M j2b+RGXW35pAnWXFhSSoRysuqrJPVWjuW5pHCXWSguidD+k0amqfa9ZuzIO0Bc7DkFBVXc VO3StCeT6q5JNow7+NMmSa0hGoBOc130WcEtqWDrLtqdYnJotBV8/peRXUFHJgMwNnOLwl MBzP4nNuBnUOgYWZmgu3Vwk1Eqg+UE5lHoyYjM5xiXmV1v36BspMCNb219wtCQ== 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 4WGc631fKvznwS for ; Sat, 6 Jul 2024 16:58:35 +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 466GwZmt042332 for ; Sat, 6 Jul 2024 16:58:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 466GwZF4042331 for virtualization@FreeBSD.org; Sat, 6 Jul 2024 16:58:35 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 280161] virtualization/bhyve: gpu passthru on Windows works on the 14.0,but stopped on 14.1 : looking for a regression using git-bisect,but got error : pci_iov: Refuse to create VFs which require ARI if ARI is not available. Date: Sat, 06 Jul 2024 16:58:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 14.1-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: 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: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280161 Bug ID: 280161 Summary: virtualization/bhyve: gpu passthru on Windows works on the 14.0,but stopped on 14.1 : looking for a regression using git-bisect,but got error : pci_iov: Refuse to create VFs which require ARI if ARI is not available. Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: marietto2008@gmail.com Hello. The gpu passthru for the Windows VMs and the nvidia gpus works for a limited number of users. The special thing is that it is working for me at least on= the 14.0. The reason why it works is buried between the patches that have been developed for the stock 14.0 and maybe another patch developed for the 14.1 broke something on the 14.0. I've asked some help on the FreeBSD forums and= the guys suggested me to look for a regression. They suggested to use git bisec= t. This is what I should try to do : "If you are sure that it is working on a regular 14.0-RELEASE, then you cou= ld either use git-bisect to find the commit that did the regression or attempt= to revert any patch from 14.0 to 14.1 that change anything related to bhyve. In both case, this could result in some security risk (more security risk f= or the latter I would assume) and instability. For the following, I would suggest to do that with an empty state system: n= ew drive (external would be easy), remove the current drive on the machine. Having a secondary machine for the build is in my opinion necessary, this w= ould allow to build on one machine, generate an image and directly boot on the t= est machine the new image. For git-bisect, you could do like that: Go to the releng/14.1 branch, and take a note of the commit for 14.0. Assuming that you have already cloned the freebsd src repository, you could= do the following : git switch main git fetch origin releng/14.0 git fetch origin releng/14.1 git log -n 1 --pretty=3Dformat:%h origin/releng/14.0 git log -n 1 --pretty=3Dformat:%h origin/releng/14.1 Which gave me for 14.0 : 5e23806790ef , and for 14.1 : dcdea9e8623e Then do : git bisect start git bisect bad git bisect good COMMIT_OF_14.0 Then every time it stop, do a full build, install, and test your setup. If it is good, do git bisect good Else, do git bisect bad" I'm new of this thing,but I tried doing like this : [root@marietto /usr]# uname -a FreeBSD marietto 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 #0: Tue Mar 26 20:26:20 UTC 2024=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 [root@marietto /usr]# git clone https://git.FreeBSD.org/src.git /usr/src Clone in '/usr/src' in corso... remote: Enumerating objects: 4513103, done. remote: Counting objects: 100% (383516/383516), done. remote: Compressing objects: 100% (28936/28936), done. remote: Total 4513103 (delta 377788), reused 354580 (delta 354580), pack-re= used 4129587 (from 1) Receiving objects: 100% (4513103/4513103), 1.64 GiB | 10.17 MiB/s, fatto. Delta resolution: 100% (3587926/3587926), fatto. Updating files in progress: 100% (101043/101043), fatto. [root@marietto /usr]# cd src [root@marietto /usr/src]# git checkout releng/14.1 Aggiornamento dei file in corso: 100% (22564/22564), fatto. branch 'releng/14.1' set up to track 'origin/releng/14.1'. You have switched to a new branch 'releng/14.1' [root@marietto /usr/src]# git switch main Aggiornamento dei file in corso: 100% (22564/22564), fatto. Switched to branch 'main' Your branch is updated respect to 'origin/main'. [root@marietto /usr/src]# git fetch origin releng/14.0 Da https://git.FreeBSD.org/src * branch releng/14.0 -> FETCH_HEAD [root@marietto /usr/src]# git fetch origin releng/14.1 Da https://git.FreeBSD.org/src * branch releng/14.1 -> FETCH_HEAD [root@marietto /usr/src]# git log -n 1 --pretty=3Dformat:%h origin/releng/1= 4.0 5e23806790ef [root@marietto /usr/src]# git log -n 1 --pretty=3Dformat:%h origin/releng/1= 4.1 dcdea9e8623e [root@marietto /usr/src]=3D=3D> git bisect start 5e23806790ef You are already on 'main' Your branch is updated respect to 'origin/main'. status: waiting for good commit(s), bad commit known [root@marietto /usr/src]=3D=3D> git bisect bad dcdea9e8623e status: waiting for good commit(s), bad commit known [root@marietto /usr/src]=3D=3D> git bisect good 5e23806790ef Bisection: a merge base must be tested after some time an error has been displayed and the job stopped. [dde83fc4d2e6e8a3009bdfb7d14dcc8ef802b22f] pci_iov: Refuse to create VFs wh= ich require ARI if ARI is not available. Now I don't know what to do next. I appreciate some help from a developer,because some patch in the 14.1 branch broke the funcionality of t= he GPU passthru that it still working on 14.0 for me,but it does not work anym= ore on the 14.1 after having upgraded the system using the script "freebsd-upda= te -r 14.1-RELEASE upgrade" You can read the full thread of the discussion going here : https://forums.freebsd.org/threads/is-there-a-method-to-understand-inside-w= hich-freebsd-branch-does-my-vmm-ko-file-come-from.93690/page-4 --=20 You are receiving this mail because: You are the assignee for the bug.=