[PATCH v4 2/3] nvme: define the SMART / Health Status async event subtypes

Guixin Liu kanie at linux.alibaba.com
Tue Nov 24 04:00:31 PST 2026


Add the asynchronous event information values of the SMART / Health
Status event type (NVMe 2.x, Figure 154) alongside the notice
subtypes, and the events bit for the temperature warning.

Signed-off-by: Guixin Liu <kanie at linux.alibaba.com>
---
 drivers/nvme/host/nvme.h | 1 +
 include/linux/nvme.h     | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index 8948f4ecc7567..cd9d08cf9cde9 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -361,6 +361,7 @@ enum nvme_ctrl_flags {
  */
 enum nvme_events {
 	NVME_EVENT_NS_CHANGED,
+	NVME_EVENT_SMART_TEMP,
 };
 
 struct nvme_ctrl {
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 6248711784b37..66fcd5a160684 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -859,6 +859,12 @@ enum {
 	NVME_AER_ERROR_PERSIST_INT_ERR	= 0x03,
 };
 
+enum {
+	NVME_AER_SMART_RELIABILITY	= 0x00,
+	NVME_AER_SMART_TEMP_THRESH	= 0x01,
+	NVME_AER_SMART_SPARE_THRESH	= 0x02,
+};
+
 enum {
 	NVME_AER_NOTICE_NS_CHANGED	= 0x00,
 	NVME_AER_NOTICE_FW_ACT_STARTING = 0x01,
-- 
2.43.7




More information about the Linux-nvme mailing list