bhyve nvme: Fix firmware read only initialization
Summary: Code was using the mask value without the shift. Test Plan: Within FreeBSD/Linux guest, Identify NVMe controller to check the result. Reviewed by: chuck, imp MFC after: 2 weeks Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com> Differential Revision: https://reviews.freebsd.org/D32659
This commit is contained in:
parent
3cae10048d
commit
9f678cfcb4
@ -546,7 +546,7 @@ pci_nvme_init_ctrldata(struct pci_nvme_softc *sc)
|
||||
cd->aerl = 4;
|
||||
|
||||
/* Advertise 1, Read-only firmware slot */
|
||||
cd->frmw = NVME_CTRLR_DATA_FRMW_SLOT1_RO_MASK |
|
||||
cd->frmw = NVMEB(NVME_CTRLR_DATA_FRMW_SLOT1_RO) |
|
||||
(1 << NVME_CTRLR_DATA_FRMW_NUM_SLOTS_SHIFT);
|
||||
cd->lpa = 0; /* TODO: support some simple things like SMART */
|
||||
cd->elpe = 0; /* max error log page entries */
|
||||
|
Loading…
Reference in New Issue
Block a user