git: 697b7cf36101 - stable/13 - bhyve: Clear lid to 0 for internal device errors for NVMe AENs.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Jan 2023 20:27:14 UTC
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=697b7cf361014e70bc2d45c864dc34a431bb6bb0 commit 697b7cf361014e70bc2d45c864dc34a431bb6bb0 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-11-29 01:08:57 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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; }