]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
plugins/solidigm: Added command to clear PCIe Correctable Error Counters according...
authorleonardo.da.cunha <leonardo.da.cunha@solidigm.com>
Mon, 16 Oct 2023 17:00:53 +0000 (10:00 -0700)
committerDaniel Wagner <wagi@monom.org>
Mon, 27 Nov 2023 12:29:48 +0000 (13:29 +0100)
Signed-off-by: leonardo.da.cunha <leonardo.da.cunha@solidigm.com>
plugins/solidigm/solidigm-nvme.c
plugins/solidigm/solidigm-nvme.h

index ecb515a07c97426c9a5d77b44e62fa3f9b8517a3..e144737ec8790f07b0f0ad118fd07f0b30eb0763 100644 (file)
@@ -60,6 +60,12 @@ static int clear_fw_update_history(int argc, char **argv, struct command *cmd,
        return ocp_clear_fw_update_history(argc, argv, cmd, plugin);
 }
 
+static int clear_pcie_corectable_error_counters(int argc, char **argv, struct command *cmd,
+                                               struct plugin *plugin)
+{
+       return ocp_clear_pcie_corectable_error_counters(argc, argv, cmd, plugin);
+}
+
 static int smart_cloud(int argc, char **argv, struct command *cmd,
                       struct plugin *plugin)
 {
index 895c6720ac6f15467bc64dd32a3f8340e51ac556..e4794a8065b9b6fc6249f415036865ed3466a202 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "cmd.h"
 
-#define SOLIDIGM_PLUGIN_VERSION "0.17"
+#define SOLIDIGM_PLUGIN_VERSION "0.18"
 
 PLUGIN(NAME("solidigm", "Solidigm vendor specific extensions", SOLIDIGM_PLUGIN_VERSION),
        COMMAND_LIST(
@@ -25,6 +25,7 @@ PLUGIN(NAME("solidigm", "Solidigm vendor specific extensions", SOLIDIGM_PLUGIN_V
                ENTRY("market-log", "Retrieve Market Log", get_market_log)
                ENTRY("latency-tracking-log", "Enable/Retrieve Latency tracking Log", get_latency_tracking_log)
                ENTRY("parse-telemetry-log", "Parse Telemetry Log binary", get_telemetry_log)
+               ENTRY("clear-pcie-correctable-errors ", "Clear PCIe Correctable Error Counters (redirects to ocp plug-in)", clear_pcie_corectable_error_counters)
                ENTRY("clear-fw-activate-history", "Clear firmware update history log (redirects to ocp plug-in)", clear_fw_update_history)
                ENTRY("vs-fw-activate-history", "Get firmware activation history log (redirects to ocp plug-in)", fw_activation_history)
                ENTRY("log-page-directory", "Retrieve log page directory", get_log_page_directory_log)