[PATCH 1/2] nvme: define the SMART / Health Status async event bit

Guixin Liu kanie at linux.alibaba.com
Mon Nov 9 04:02:03 PST 2026


NVMe 2.x requires controllers to support the SMART / Health Status
asynchronous event (OAES bit 1), but the only event bits the header
defines are namespace attribute, firmware activation, ANA change and
discovery change. Define the missing bit so the host can subscribe to
the event.

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

diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 6248711784b37..2b4f8e269d12d 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -867,6 +867,7 @@ enum {
 };
 
 enum {
+	NVME_AEN_BIT_SMART		= 1,
 	NVME_AEN_BIT_NS_ATTR		= 8,
 	NVME_AEN_BIT_FW_ACT		= 9,
 	NVME_AEN_BIT_ANA_CHANGE		= 11,
@@ -874,6 +875,7 @@ enum {
 };
 
 enum {
+	NVME_AEN_CFG_SMART		= 1 << NVME_AEN_BIT_SMART,
 	NVME_AEN_CFG_NS_ATTR		= 1 << NVME_AEN_BIT_NS_ATTR,
 	NVME_AEN_CFG_FW_ACT		= 1 << NVME_AEN_BIT_FW_ACT,
 	NVME_AEN_CFG_ANA_CHANGE		= 1 << NVME_AEN_BIT_ANA_CHANGE,
-- 
2.43.7




More information about the Linux-nvme mailing list