Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102710552
D37355.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
875 B
Referenced Files
None
Subscribers
None
D37355.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
@@ -1758,6 +1758,7 @@
uint8_t tmpsel; /* Threshold Temperature Select */
uint8_t thsel; /* Threshold Type Select */
bool set_crit = false;
+ bool report_crit;
tmpth = command->cdw11 & 0xffff;
tmpsel = (command->cdw11 >> 16) & 0xf;
@@ -1785,11 +1786,13 @@
~NVME_CRIT_WARN_ST_TEMPERATURE;
pthread_mutex_unlock(&sc->mtx);
- if (set_crit)
+ report_crit = sc->feat[NVME_FEAT_ASYNC_EVENT_CONFIGURATION].cdw11 &
+ NVME_CRIT_WARN_ST_TEMPERATURE;
+
+ if (set_crit && report_crit)
pci_nvme_aen_post(sc, PCI_NVME_AE_TYPE_SMART,
sc->health_log.critical_warning);
-
DPRINTF("%s: set_crit=%c critical_warning=%#x status=%#x", __func__, set_crit ? 'T':'F', sc->health_log.critical_warning, compl->status);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 4:50 AM (21 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14670782
Default Alt Text
D37355.diff (875 B)
Attached To
Mode
D37355: bhyve: nvme controller obey async event setting when reporting critical temperature
Attached
Detach File
Event Timeline
Log In to Comment