From nobody Mon Aug 24 00:53:42 2026 X-Original-To: dev-commits-src-all@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 4hSsqB5pFMz6q2XB for ; Mon, 24 Aug 2026 00:53:42 +0000 (UTC) (envelope-from git@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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hSsqB3FBVz3w1X for ; Mon, 24 Aug 2026 00:53:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787532822; 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=Y+WtDBLZqhce4VNC6HVFWLLLCY1as7rtThjdsglQC54=; b=KQc2c2gA2iHmvV/Rb2T13FJiDclB1uv93v3uYoBr1wa7mPkR1GsQLg1fzMkKlO5I9Yce/N TEHPzXv6d2uZXpQ5aKeYkgfz2gdqlxLgxTwcqIjvz/WEmQs9309H2nK84RGPNQXd2ae5M0 CiST6wVlltCtDP81xU38A5tee9kS19lDkGmu+rm6C6K4YHWBhtzZ9qtdCCnZpVYlboeHMr vckmuXuWpEOW8Cfe0Pv5NXWoESfsobj8/DjyH5HCT2pM6GmTStapMLzTAK5ls0NZx/xtYy HrdYf/7nhkzYR705gfq8stox1bnAaAbiR1IuvzGVlBkn93F2Dszy7X6QymZcFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787532822; a=rsa-sha256; cv=none; b=MEQUEsg3PxFVgoLam82SW1NGkUKWnRHlI6YYmRZI/zoz/yRJwA+cLsNaskn13pIsfUQMm0 rbGR3yBQiXxRXZVAujgxc5PC7moKkvw9OV4aq4tiuZT75IkKaC5w9O+8KxICV2X79k4Tny ZlpfSdqFPY6Dr8lzXHp5eyWruyzE0ZfdLyhjOR3HKmL2xKgQeR8WX8fxchbIma1gOV4tyt 97Ybm1RBN/BunWMydaXXzX4PW/dKhbgpCGcqNQ2X8cWJKPJ4/YyBlFFHLGoRm6303PaUu6 ixSKIP2Y6OAmu+knuAsLlh9L6h7VbDOmmMVSQ4N+1kpAhTHiearjMdy6fif1TQ== 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=1787532822; 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=Y+WtDBLZqhce4VNC6HVFWLLLCY1as7rtThjdsglQC54=; b=sOkTzfWk6NEZ2qzvDHwvRyHeKfLSK3VPVnHcjN4SDsQGjNrXhnOlynBRX5N7bXYfV1hb5r d4o8rctYMfCTNXKiPu+ojQA0QuVOEcDXRHO9hm+o1xntyDrTxBMPG/b30zZ8U55vHbJZm4 azBfx9UyvlAM54fl/lnCGAsM0+APWR6KUGHxEOThz0tjQ8IEvbEQA/Vf5Qa7eq+3dyof0h V9xVT6+cd5H1dhWuUn/6k4LZm2OaZWL745g96nRMqW0h2fQ6/ziuTyxHoj75EddI92B2OT 5lRovCM7I66SE3FerZHQ9ZX2rKRkco0jdq9/HREVSOJINASCE6tCn1PUowEmpA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hSsqB2JG0zj8Q for ; Mon, 24 Aug 2026 00:53:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 32c19 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 24 Aug 2026 00:53:42 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: 924a15ac2f19 - stable/15 - iavf: Resume AdminQ processing after PF reset List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 924a15ac2f19b98a40d71ebe15b973e3865ab4a6 Auto-Submitted: auto-generated Date: Mon, 24 Aug 2026 00:53:42 +0000 Message-Id: <6a8b9616.32c19.157ae9@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=924a15ac2f19b98a40d71ebe15b973e3865ab4a6 commit 924a15ac2f19b98a40d71ebe15b973e3865ab4a6 Author: Kevin Bowling AuthorDate: 2026-08-10 10:54:26 +0000 Commit: Kevin Bowling CommitDate: 2026-08-24 00:49:42 +0000 iavf: Resume AdminQ processing after PF reset A PF reset indication leaves IAVF_STATE_RESET_PENDING set while the VF recreates its AdminQ and negotiates new resources. The ordinary AdminQ task refuses to consume messages while that state is set. Consequently, the first DISABLE_QUEUES reply after successful mailbox rediscovery remains in the receive queue and initialization times out. Later retries and manual interface restarts repeat the same cycle. Clear the stale reset indication once VERSION and GET_VF_RESOURCES have succeeded, before enabling interrupts and resuming normal virtchnl requests. (cherry picked from commit 02fbb1ce07f60fab82e21e5bbe2dae85f024bb55) --- sys/dev/iavf/if_iavf_iflib.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/dev/iavf/if_iavf_iflib.c b/sys/dev/iavf/if_iavf_iflib.c index 82ba7a92b008..c9fed8493103 100644 --- a/sys/dev/iavf/if_iavf_iflib.c +++ b/sys/dev/iavf/if_iavf_iflib.c @@ -959,6 +959,14 @@ iavf_reestablish_vc(struct iavf_sc *sc) goto fail; } + /* + * RESET_PENDING prevents the ordinary AdminQ task from consuming + * messages while the queue may still belong to the pre-reset device. + * The successful VERSION and GET_VF_RESOURCES exchange above proves + * that the reset has completed and this is the replacement AdminQ. + * Clear the stale indication before normal virtchnl requests resume. + */ + iavf_clear_state(&sc->state, IAVF_STATE_RESET_PENDING); iavf_enable_adminq_irq(hw); return (0);