From cf98706f0051d44cea4e72abc43c78555040e77b Mon Sep 17 00:00:00 2001 From: Minwoo Im Date: Sun, 25 Aug 2019 22:28:03 +0900 Subject: [PATCH] id-ctrl: show Persistent Event Log support in LPA Log Page Attribute(LPA) in Identify Controller data structure is now indicating the support for the Persistent Event Log page in 4th bit. Signed-off-by: Minwoo Im --- nvme-print.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nvme-print.c b/nvme-print.c index 11d20ef9..40245f7b 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -296,13 +296,16 @@ static void show_nvme_id_ctrl_frmw(__u8 frmw) static void show_nvme_id_ctrl_lpa(__u8 lpa) { - __u8 rsvd = (lpa & 0xF0) >> 4; + __u8 rsvd = (lpa & 0xE0) >> 5; + __u8 persevnt = (lpa & 0x10) >> 4; __u8 telem = (lpa & 0x8) >> 3; __u8 ed = (lpa & 0x4) >> 2; __u8 celp = (lpa & 0x2) >> 1; __u8 smlp = lpa & 0x1; if (rsvd) printf(" [7:4] : %#x\tReserved\n", rsvd); + printf(" [4:4] : %#x\tPersistent Event log %sSupported\n", + persevnt, persevnt ? "" : "Not "); printf(" [3:3] : %#x\tTelemetry host/controller initiated log page %sSupported\n", telem, telem ? "" : "Not "); printf(" [2:2] : %#x\tExtended data for Get Log Page %sSupported\n", -- 2.50.1