]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
plugins/innogrit: add smart items for smart-log-add
authorinnogritkenny <kenny.chu@innogritcorp.com>
Wed, 31 Aug 2022 09:23:02 +0000 (17:23 +0800)
committerDaniel Wagner <dwagner@suse.de>
Thu, 1 Sep 2022 06:43:42 +0000 (08:43 +0200)
plugins/innogrit/innogrit-nvme.c
plugins/innogrit/typedef.h

index fb79cf63f789dfada1e8b84129eef8e2bf986a82..e7fc981c100f6aef72a8e8d6d5992066546519d4 100644 (file)
@@ -70,11 +70,15 @@ static int innogrit_smart_log_additional(int argc, char **argv,
        printf("DW17      weight_ec                     : %u\n", pvsc_smart->weight_ec);
        printf("DW18      slc_cap_mb                    : %u\n", pvsc_smart->slc_cap_mb);
        printf("DW19-20   nand_page_write_cnt           : %llu\n", pvsc_smart->nand_page_write_cnt);
-
-       iindex = 21;
-       for (i = 0; i < (sizeof(pvsc_smart->reserved2)/4); i++) {
-               if (pvsc_smart->reserved2[i] != 0)
-                       printf("DW%-37d : %u\n", iindex, pvsc_smart->reserved2[i]);
+       printf("DW21      program_error_cnt             : %u\n", pvsc_smart->program_error_cnt);
+       printf("DW22      erase_error_cnt               : %u\n", pvsc_smart->erase_error_cnt);
+       printf("DW23[0]   flash_type                    : %u\n", pvsc_smart->flash_type);
+       printf("DW24      hs_crc_err_cnt                : %u\n", pvsc_smart->hs_crc_err_cnt);
+
+       iindex = 25;
+       for (i = 0; i < (sizeof(pvsc_smart->reserved3)/4); i++) {
+               if (pvsc_smart->reserved3[i] != 0)
+                       printf("DW%-37d : %u\n", iindex, pvsc_smart->reserved3[i]);
                iindex++;
        }
 
index d4ea269b853c28c4de6ae0465789a2fb0b6dae2a..129456d7678e7e63c70a14c3b5d698dddb5af145 100644 (file)
@@ -56,7 +56,12 @@ struct vsc_smart_log {
        unsigned int weight_ec;
        unsigned int slc_cap_mb;
        unsigned long long nand_page_write_cnt;
-       unsigned int reserved2[49];
+       unsigned int program_error_cnt;
+       unsigned int erase_error_cnt;
+       u_char flash_type;
+       u_char reserved2[3];
+       unsigned int hs_crc_err_cnt;
+       unsigned int reserved3[45];
 };
 #pragma pack(pop)