bhyve: Fix Number of Power States Supported value
Summary: Set Number of Power States Supported to indicate 1 power state. Keep the Power State Descriptor data structures as zero to indicate "Not reported". Test Plan: Within FreeBSD/Linux guests, list the number of power states and check the Max Power value. Reviewed By: markj, chuck MFC after: 2 weeks Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com> Differential Revision: https://reviews.freebsd.org/D32657
This commit is contained in:
parent
2889cbe29e
commit
eae0210cdd
@ -550,7 +550,11 @@ pci_nvme_init_ctrldata(struct pci_nvme_softc *sc)
|
||||
(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 */
|
||||
cd->npss = 1; /* number of power states support */
|
||||
/*
|
||||
* Report a single power state (zero-based value)
|
||||
* power_state[] values are left as zero to indicate "Not reported"
|
||||
*/
|
||||
cd->npss = 0;
|
||||
|
||||
/* Warning Composite Temperature Threshold */
|
||||
cd->wctemp = 0x0157;
|
||||
@ -579,8 +583,6 @@ pci_nvme_init_ctrldata(struct pci_nvme_softc *sc)
|
||||
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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user