Skip to contentSkip to conversation

libnvme: Add new events support in PEL header

PATCH New [email protected] 1 participant 2 messages Nov 18, 2021 NVMe

lore
Share & tools
lore
#0 lore raw

v2 cover libnvme: Add new events support in PEL header

From: Wen Xiong <[email protected]>

nvme-cli tree splits into frontend(cli) and backend(lib) now. This patch adds header support in backend(libnvme).

Wen Xiong (1):
libnvme: Add new events support in PEL

 src/nvme/types.h | 8 ++++++++
 1 file changed, 8 insertions(+)
Signature · 1 line
2.27.0
#1 lore raw

PATCH v2 1/1 libnvme: Add new events support in PEL

From: Wen Xiong <[email protected]>

Add two new events support in header file.

---
 src/nvme/types.h | 8 ++++++++
 1 file changed, 8 insertions(+)
src/nvme/types.h +8 -0
index a82ed3f..71e4c55 100644
@@ -3044,6 +3044,8 @@ enum nvme_persistent_event_types {
     NVME_PEL_FORMAT_COMPLETION_EVENT	= 0x08,
     NVME_PEL_SANITIZE_START_EVENT	= 0x09,
     NVME_PEL_SANITIZE_COMPLETION_EVENT	= 0x0a,
+    NVME_PEL_SET_FEATURE_EVENT		= 0x0b,
+    NVME_PEL_TELEMETRY_CRT		= 0x0c,
     NVME_PEL_THERMAL_EXCURSION_EVENT	= 0x0d,
 };
 
@@ -3122,6 +3124,12 @@ struct nvme_sanitize_compln_event {
 	__u8	rsvd6[2];
 };
 
+/* persistent event type 0Bh */
+struct nvme_set_feature_event {
+	__le32	layout;
+	__le32	cdw_mem[0];
+};
+
 struct nvme_thermal_exc_event {
     __u8 	over_temp;
     __u8 	threshold;
Signature · 1 line
2.27.0