diff mbox series

[v3,1/4] block/nvme: introduce bit 5 for critical warning

Message ID 20210114072251.334304-2-pizhenwei@bytedance.com (mailing list archive)
State New, archived
Headers show
Series support NVMe smart critial warning injection | expand

Commit Message

zhenwei pi Jan. 14, 2021, 7:22 a.m. UTC
According to NVMe spec 1.4 section
<SMART / Health Information (Log Identifier 02h)>, introduce bit 5
for "Persistent Memory Region has become read-only or unreliable".

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
---
 include/block/nvme.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/include/block/nvme.h b/include/block/nvme.h
index 3e02d9ca98..f68a88c712 100644
--- a/include/block/nvme.h
+++ b/include/block/nvme.h
@@ -749,6 +749,7 @@  enum NvmeSmartWarn {
     NVME_SMART_RELIABILITY            = 1 << 2,
     NVME_SMART_MEDIA_READ_ONLY        = 1 << 3,
     NVME_SMART_FAILED_VOLATILE_MEDIA  = 1 << 4,
+    NVME_SMART_PMR_UNRELIABLE         = 1 << 5,
 };
 
 enum NvmeLogIdentifier {