Message ID | 20210115032702.466631-2-pizhenwei@bytedance.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | support NVMe smart critial warning injection | expand |
On 1/15/21 4:27 AM, zhenwei pi wrote: > According to NVMe spec 1.4 section "According to NVMe spec 1.4 section 5.14.1.2" > <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(+) Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
diff --git a/include/block/nvme.h b/include/block/nvme.h index 9494246f1f..0baf4b27cd 100644 --- a/include/block/nvme.h +++ b/include/block/nvme.h @@ -789,6 +789,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, }; typedef struct NvmeEffectsLog {
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(+)