]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: add zone desc changed notice async event
authorGollu Appalanaidu <anaidu.gollu@samsung.com>
Fri, 28 May 2021 13:52:45 +0000 (19:22 +0530)
committerKeith Busch <kbusch@kernel.org>
Fri, 11 Jun 2021 15:50:06 +0000 (09:50 -0600)
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 <anaidu.gollu@samsung.com>
nvme-print.c

index 0318d5203d4795e1a2a3d64e39f3da28866b8f8e..fa651c0d7cd9c7dbb21318d84a632722b6fe64ca 100755 (executable)
@@ -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");