Skip to content

Commit

Permalink
nvme: introduce bit 5 for critical warning
Browse files Browse the repository at this point in the history
According to NVM Express v1.4, Section 5.14.1.2 ("SMART / Health
Information"), introduce bit 5 for "Persistent Memory Region has become
read-only or unreliable".

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
[k.jensen: minor brush ups in commit message]
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
  • Loading branch information
pizhenwei authored and birkelund committed Feb 8, 2021
1 parent 635b23a commit c6d1b5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/block/nvme.h
Expand Up @@ -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 {
Expand Down

0 comments on commit c6d1b5c

Please sign in to comment.