]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print: Add new fields print on id directive
authorSteven Seungcheol Lee <sc108.lee@samsung.com>
Wed, 8 Feb 2023 06:43:46 +0000 (15:43 +0900)
committerDaniel Wagner <wagi@monom.org>
Thu, 13 Apr 2023 11:14:22 +0000 (13:14 +0200)
Identify Directive – Return Parameters Data Structure
From TP4146 Flexible Data Placement 2022.11.30 Ratified

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
nvme-print.c

index 805c8c597e82bf2cf4e8d6815933d64e48131e10..d265e873673a122c7f236a257e98e064615435e1 100644 (file)
@@ -4689,15 +4689,27 @@ static void nvme_directive_show_fields(__u8 dtype, __u8 doper,
                switch (doper) {
                case NVME_DIRECTIVE_RECEIVE_IDENTIFY_DOPER_PARAM:
                        printf("\tDirective support \n");
-                       printf("\t\tIdentify Directive  : %s\n",
+                       printf("\t\tIdentify Directive       : %s\n",
                                (*field & 0x1) ? "supported":"not supported");
-                       printf("\t\tStream Directive    : %s\n",
+                       printf("\t\tStream Directive         : %s\n",
                                (*field & 0x2) ? "supported":"not supported");
-                       printf("\tDirective status \n");
-                       printf("\t\tIdentify Directive  : %s\n",
+                       printf("\t\tData Placement Directive : %s\n",
+                               (*field & 0x4) ? "supported":"not supported");
+                       printf("\tDirective enabled \n");
+                       printf("\t\tIdentify Directive       : %s\n",
                                (*(field + 32) & 0x1) ? "enabled" : "disabled");
-                       printf("\t\tStream Directive    : %s\n",
+                       printf("\t\tStream Directive         : %s\n",
                                (*(field + 32) & 0x2) ? "enabled" : "disabled");
+                       printf("\t\tData Placement Directive : %s\n",
+                               (*(field + 32) & 0x4) ? "enabled" : "disabled");
+                       printf("\tDirective Persistent Across Controller Level Resets \n");
+                       printf("\t\tIdentify Directive       : %s\n",
+                               (*(field + 32) & 0x1) ? "enabled" : "disabled");
+                       printf("\t\tStream Directive         : %s\n",
+                               (*(field + 32) & 0x2) ? "enabled" : "disabled");
+                       printf("\t\tData Placement Directive : %s\n",
+                               (*(field + 32) & 0x4) ? "enabled" : "disabled");
+
                        break;
                default:
                        fprintf(stderr,