From nobody Thu Jan 26 20:27:14 2023 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 4P2sh23tjTz3btNM; Thu, 26 Jan 2023 20:27:14 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P2sh22xbvz3RGG; Thu, 26 Jan 2023 20:27:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674764834; 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=MgFKbt9pSxc1Y0ILqPRqshtIuxSAiMHhCUEXWznh8z0=; b=nC+Tgtm9qtHJTNz4xCT4IsALqKimcJVadL7KTqnVVEbg5stCPIKoh9l6woFMTUB5rZijpq zwF+6nigJJ8fWLCZ9g3WFhnV340Uriqgv9i/E5agdnVe0cyPALclDG0j4zXlr2ajpp6t0S SDGcwlMZj8A6mhhiv8ChvRwCx/cQs/OraZ0qLyTPd2sVd3xVtlJrrscDfqxz4VmmKK9OlC xxOzw39I4q8VopAzRWGRrO+t1+D88mx5qwBnGlIJnpTmxwYvjPXlIyF4zsWTQp1WsYZuEz YJQsXPdeH86NaVXxptrUSJ3wIGL0Ra06+qHmFAbH+hkzIFCczLpEzUQPS1sWEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674764834; 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=MgFKbt9pSxc1Y0ILqPRqshtIuxSAiMHhCUEXWznh8z0=; b=dZhf9a6ocy2dBZ220oUWW4JazdFZtZgQy7mBNEDnHHJe3hsb1SP2poxQRmZC/Dm6zsLJR1 gNO7qjI4tAkSmC+vL7swfNpKSHZ0gp8vWtJSGru+sLsDHokIQnvnrwq7UCM9YnlWmhDxmY Kznz1pnh0bC4au31ELKy6gxTKmLuXAHx8kMbU7A9qp+8oCf1gAp/tBKV26xem4L0izxJfB MhoWbIYGdcHuSDaRZwdqlcQmhf3LDPGG5eXjcftBmILpA+CMEAN/fxODECI4mux6f5WL/I TD9Kjlrfzao+l7mc/L3KjJ8TEu3XWOW5hsAjyVg1Ng7IkQ0r8gGaIP6W+njz4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674764834; a=rsa-sha256; cv=none; b=H6Tlif3e6FYLu38QYnLBgT/mCyt6kCQsUdn/xu2TVCBLZxMXueiqTEaL5fYQd8qLZZWkGl 1Zw+QgGC8UgHr/XR8gm8KG2HaO5+56pSx4rSZOcC9XYnD6DVUIZyj2Tt8HCElRQxapgR3X LOpwA9jTEiKB1+Fwc4HC2N2dU1aFWT2WWWceQU0w/X6gIG5GBDWbfx/0zHGiJrYvkiGYhg efGieTXN1AvsZMi5s3Cxoh9HUd4Tz4cfMIgzG4kviwJepYoh246ePMYqvOnFlR+hpwzA3I sdj6ET83Ac9/NJJ1QLEqg4kbQm+DZTKk61ZR/onmRdoF3ny1yud4Glqv5wq1hA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4P2sh223HKzjPY; Thu, 26 Jan 2023 20:27:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30QKRE35064898; Thu, 26 Jan 2023 20:27:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30QKREAt064897; Thu, 26 Jan 2023 20:27:14 GMT (envelope-from git) Date: Thu, 26 Jan 2023 20:27:14 GMT Message-Id: <202301262027.30QKREAt064897@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 697b7cf36101 - stable/13 - bhyve: Clear lid to 0 for internal device errors for NVMe AENs. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 697b7cf361014e70bc2d45c864dc34a431bb6bb0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=697b7cf361014e70bc2d45c864dc34a431bb6bb0 commit 697b7cf361014e70bc2d45c864dc34a431bb6bb0 Author: John Baldwin AuthorDate: 2022-11-29 01:08:57 +0000 Commit: John Baldwin CommitDate: 2023-01-26 20:23:52 +0000 bhyve: Clear lid to 0 for internal device errors for NVMe AENs. Reported by: GCC Reviewed by: corvink, chuck, imp, markj Differential Revision: https://reviews.freebsd.org/D37487 (cherry picked from commit 47d61162396bac8a7320a6768f218b192dd19ee1) --- usr.sbin/bhyve/pci_nvme.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c index 98f4a7de72c8..571a6a9fda62 100644 --- a/usr.sbin/bhyve/pci_nvme.c +++ b/usr.sbin/bhyve/pci_nvme.c @@ -969,6 +969,7 @@ pci_nvme_aen_process(struct pci_nvme_softc *sc) EPRINTLN("%s unknown AEN notice type %u", __func__, aen->event_data); status = NVME_SC_INTERNAL_DEVICE_ERROR; + lid = 0; break; } if ((PCI_NVME_AEI_NOTICE_MASK(aen->event_data) & mask) == 0) @@ -1003,6 +1004,7 @@ pci_nvme_aen_process(struct pci_nvme_softc *sc) /* bad type?!? */ EPRINTLN("%s unknown AEN type %u", __func__, atype); status = NVME_SC_INTERNAL_DEVICE_ERROR; + lid = 0; break; }