Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108280848
D44213.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D44213.diff
View Options
diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h
--- a/sys/dev/nvme/nvme.h
+++ b/sys/dev/nvme/nvme.h
@@ -553,8 +553,9 @@
NVME_CRIT_WARN_ST_DEVICE_RELIABILITY = 0x4,
NVME_CRIT_WARN_ST_READ_ONLY = 0x8,
NVME_CRIT_WARN_ST_VOLATILE_MEMORY_BACKUP = 0x10,
+ NVME_CRIT_WARN_ST_PERSISTENT_MEMORY_REGION = 0x20,
};
-#define NVME_CRIT_WARN_ST_RESERVED_MASK (0xE0)
+#define NVME_CRIT_WARN_ST_RESERVED_MASK (0xC0)
#define NVME_ASYNC_EVENT_NS_ATTRIBUTE (0x100)
#define NVME_ASYNC_EVENT_FW_ACTIVATE (0x200)
diff --git a/sys/dev/nvme/nvme_ctrlr.c b/sys/dev/nvme/nvme_ctrlr.c
--- a/sys/dev/nvme/nvme_ctrlr.c
+++ b/sys/dev/nvme/nvme_ctrlr.c
@@ -663,6 +663,9 @@
if (state & NVME_CRIT_WARN_ST_VOLATILE_MEMORY_BACKUP)
nvme_printf(ctrlr, "SMART WARNING: volatile memory backup device failed\n");
+ if (state & NVME_CRIT_WARN_ST_PERSISTENT_MEMORY_REGION)
+ nvme_printf(ctrlr, "SMART WARNING: persistent memory read only or unreliable\n");
+
if (state & NVME_CRIT_WARN_ST_RESERVED_MASK)
nvme_printf(ctrlr, "SMART WARNING: unknown critical warning(s): state = 0x%02x\n",
state & NVME_CRIT_WARN_ST_RESERVED_MASK);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 11:24 AM (7 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16085483
Default Alt Text
D44213.diff (1 KB)
Attached To
Mode
D44213: nvme: Add SMART WARNING for persistent memory region
Attached
Detach File
Event Timeline
Log In to Comment