From nobody Tue Nov 29 01:10:57 2022 X-Original-To: dev-commits-src-main@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 4NLkmd2D6Dz4jSTH; Tue, 29 Nov 2022 01:10:57 +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 4NLkmd1fQkz42c5; Tue, 29 Nov 2022 01:10:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669684257; 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=95cSE5cFHfhuyeC5mId3XGn8fizmk9CTozsStCbKakY=; b=nawuGCMhd3d5CmtX3JBaAVijOjWYiT6t5tykrQik8KRzQAmg0leAuA3x1Og02DC2GJ9ajx gQMej/RXfBrq/o4Wf5YVsdnzZs+TTtWXMLlcvh8d2M5weu8rIj4Tq/6ALO9Yzsxau2nbFD rhSE05cSPRhkqHMxlx8KHGtZ6VgVgVuclraD1hu17rCOemUHumsFXdyrzTDKFSOWkEj/gB yqx36dpvx43ntCN1H28sOQUB7Odv7WRZ9ZqYeOUT2PcMEU0uDp0g+rejjQ5zPiJEtM2qRq mYtHM6GSP7NfLXv0mYBBPdnBiv+P3nLdyqQEu1KWgP5xfgDqHwZYtVFHBNP/Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669684257; 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=95cSE5cFHfhuyeC5mId3XGn8fizmk9CTozsStCbKakY=; b=ZUQVAdb7sGqBK0b4xxJ6RYgNtx5TtHNf+ctzk9//cmIUTidrDLQ3HX93KQNbnuwuT0T6yl P+LQBtbHUHDWRNsYaN/GGKWljT7QoIpR308YVaqeNlIB6uwHQFjjfxmc4HF8dZqkmK2bXY LjNy/iSjc3rPBI24Tmqb4pymQTLw+tjX6DKFT2pBd4rlnkt8M89xil4JNGX0Cuw9FgO5k4 TcRKHurYDSPigygPEWj5Jn8bLJEE1n+NrJcu0JZgYIPJ7hwn6dQr4LCcziXsmErAiQly5Q A3GmNQwBbmLJCZdEkc70JoJMwb/ptKBNbzXRCG8ZoMj/HdWRueSDOaFcBUocuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669684257; a=rsa-sha256; cv=none; b=HaxsYBNMl47Mj7K4I7xioLhfBHxl53nTOA8C7saKF2iwkROkePtecguXTEnVgpX6962pvI dyFABMDGFXMu0EflW9hz6V1gmHBrq1fb+9qN2GBKqonq7gflUDDFOvCM5oKpgw9+tr5I0Y WGI9u6BxHPJnLUcxpRbC6VnsTeTYUVCYI6mppYcnaCf92NS+CeZhYDJYwYA9P5+1vKPXR0 Cl9ISACLwrpf//r2oVest9Nkh7A5bw/tdN7dmko2A5+lzzkFgP06LbzyCAQXvP/J0ritmT V9wi3qNobnzO4KJz7YArKeRV3WSa5g5ycT8IHKtor7niirpTEF4aVqu6BcnqXw== 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 4NLkmd0mWRzyS4; Tue, 29 Nov 2022 01:10:57 +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 2AT1AvS4045246; Tue, 29 Nov 2022 01:10:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AT1Avpf045245; Tue, 29 Nov 2022 01:10:57 GMT (envelope-from git) Date: Tue, 29 Nov 2022 01:10:57 GMT Message-Id: <202211290110.2AT1Avpf045245@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 47d61162396b - main - bhyve: Clear lid to 0 for internal device errors for NVMe AENs. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 47d61162396bac8a7320a6768f218b192dd19ee1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=47d61162396bac8a7320a6768f218b192dd19ee1 commit 47d61162396bac8a7320a6768f218b192dd19ee1 Author: John Baldwin AuthorDate: 2022-11-29 01:08:57 +0000 Commit: John Baldwin CommitDate: 2022-11-29 01:08:57 +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 --- 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; }