From: Guixin Liu <kanie@linux.alibaba.com>
To: Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>,
Nilay Shroff <nilay@linux.ibm.com>,
Daniel Wagner <dwagner@suse.de>, Hannes Reinecke <hare@suse.de>
Cc: linux-nvme@lists.infradead.org
Subject: [PATCH v4 2/3] nvme: define the SMART / Health Status async event subtypes
Date: Tue, 24 Nov 2026 20:00:31 +0800 [thread overview]
Message-ID: <20261124120032.1824788-3-kanie@linux.alibaba.com> (raw)
In-Reply-To: <20261124120032.1824788-1-kanie@linux.alibaba.com>
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@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
next prev parent reply other threads:[~2026-11-24 12:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 12:00 [PATCH v4 0/3] nvme: make SMART / Health Status AENs reach hwmon alarms Guixin Liu
2026-11-24 12:00 ` [PATCH v4 1/3] nvme: define an event bit enum for nvme_ctrl::events Guixin Liu
2026-11-24 15:24 ` Nilay Shroff
2026-11-25 5:17 ` Christoph Hellwig
2026-11-25 5:45 ` Guixin Liu
2026-11-24 12:00 ` Guixin Liu [this message]
2026-11-24 15:24 ` [PATCH v4 2/3] nvme: define the SMART / Health Status async event subtypes Nilay Shroff
2026-11-25 5:18 ` Christoph Hellwig
2026-11-25 5:46 ` Guixin Liu
2026-11-24 12:00 ` [PATCH v4 3/3] nvme-hwmon: notify hwmon alarms on the SMART / Health Status AEN Guixin Liu
2026-11-24 15:25 ` Nilay Shroff
2026-11-25 5:18 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124120032.1824788-3-kanie@linux.alibaba.com \
--to=kanie@linux.alibaba.com \
--cc=axboe@kernel.dk \
--cc=dwagner@suse.de \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=nilay@linux.ibm.com \
--cc=sagi@grimberg.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox