git: ff5ed0fac420 - main - bhyve nvme: Fix reported VWC value
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 29 Jan 2022 23:15:48 UTC
The branch main has been updated by chuck: URL: https://cgit.FreeBSD.org/src/commit/?id=ff5ed0fac420d3441aac436d884d926d91c79b3c commit ff5ed0fac420d3441aac436d884d926d91c79b3c Author: Chuck Tuffli <chuck@FreeBSD.org> AuthorDate: 2022-01-30 07:10:42 +0000 Commit: Chuck Tuffli <chuck@FreeBSD.org> CommitDate: 2022-01-30 07:10:42 +0000 bhyve nvme: Fix reported VWC value v1.4 and later NVMe Controllers report "Flush all Namespaces" support differently. Fixes UNH IOL 16.0 Test 2.6, Case 3 Reviewed by: imp, allanjude Tested by: jason@tubnor.net MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33576 --- 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 5ad7a0a59d65..e2837e6c7069 100644 --- a/usr.sbin/bhyve/pci_nvme.c +++ b/usr.sbin/bhyve/pci_nvme.c @@ -561,6 +561,8 @@ pci_nvme_init_ctrldata(struct pci_nvme_softc *sc) cd->fna = NVME_CTRLR_DATA_FNA_FORMAT_ALL_MASK << NVME_CTRLR_DATA_FNA_FORMAT_ALL_SHIFT; + cd->vwc = NVME_CTRLR_DATA_VWC_ALL_NO << NVME_CTRLR_DATA_VWC_ALL_SHIFT; + cd->power_state[0].mp = 10; }