Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F97699745
D32657.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
773 B
Referenced Files
None
Subscribers
None
D32657.diff
View Options
diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c
--- a/usr.sbin/bhyve/pci_nvme.c
+++ b/usr.sbin/bhyve/pci_nvme.c
@@ -550,7 +550,11 @@
(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 @@
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;
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 1, 8:20 PM (22 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13278062
Default Alt Text
D32657.diff (773 B)
Attached To
Mode
D32657: bhyve: Fix the wrong Number of Power States Support value also set a reasonable Max Power for NVMe controller
Attached
Detach File
Event Timeline
Log In to Comment