From: Gollu Appalanaidu Date: Fri, 28 May 2021 13:52:45 +0000 (+0530) Subject: nvme: add zone desc changed notice async event X-Git-Tag: v1.15~52 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=98094bfb8ada8b4bf552e2df700b43840ab3c121;p=users%2Fsagi%2Fnvme-cli.git nvme: add zone desc changed notice async event Add the Zone Descriptor Changed Notices in get feature human readble output for the Async Event config feature (FID = 0x0B) as per the TP4053 Zoned Namespaces Signed-off-by: Gollu Appalanaidu --- diff --git a/nvme-print.c b/nvme-print.c index 0318d520..fa651c0d 100755 --- a/nvme-print.c +++ b/nvme-print.c @@ -5805,6 +5805,7 @@ void nvme_feature_show_fields(enum nvme_feat fid, unsigned int result, printf("\tDisable Normal (DN): %s\n", (result & 0x00000001) ? "True":"False"); break; case NVME_FEAT_ASYNC_EVENT: + printf("\tZone Descriptor Changed Notices: %s\n", ((result >> 27) & 0x1) ? "Send async event":"Do not send async event"); printf("\tEndurance Group Event Aggregate Log Change Notices: %s\n", ((result & 0x00004000) >> 14) ? "Send async event":"Do not send async event"); printf("\tLBA Status Information Notices : %s\n", ((result & 0x00002000) >> 13) ? "Send async event":"Do not send async event"); printf("\tPredictable Latency Event Aggregate Log Change Notices: %s\n", ((result & 0x00001000) >> 12) ? "Send async event":"Do not send async event");