From cf0d5ef0adc93a714328de2180f8079401ad7792 Mon Sep 17 00:00:00 2001 From: Akshay Tondak Date: Tue, 4 Mar 2025 11:31:15 -0800 Subject: [PATCH 1/3] CR-1228350 fix Signed-off-by: Akshay Tondak --- src/runtime_src/core/common/smi.cpp | 30 ++++++++++++++--------------- src/runtime_src/core/common/smi.h | 1 + 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/runtime_src/core/common/smi.cpp b/src/runtime_src/core/common/smi.cpp index fb5bf09a1..d44412349 100644 --- a/src/runtime_src/core/common/smi.cpp +++ b/src/runtime_src/core/common/smi.cpp @@ -49,6 +49,20 @@ smi_base() examine_report_desc = { {"host", "Host information", "common"} }; + + configure_options = { + {"device", "d", "The Bus:Device.Function (e.g., 0000:d8:00.0) device of interest", "common", "", "string"}, + {"help", "h", "Help to use this sub-command", "common", "", "none"}, + {"daemon", "", "Update the device daemon configuration", "hidden", "", "none"}, + {"purge", "", "Remove the daemon configuration file", "hidden", "", "string"}, + {"host", "", "IP or hostname for device peer", "hidden", "", "string"}, + {"security", "", "Update the security level for the device", "hidden", "", "string"}, + {"clk_throttle", "", "Enable/disable the device clock throttling", "hidden", "", "string"}, + {"ct_threshold_power_override", "", "Update the power threshold in watts", "hidden", "", "string"}, + {"ct_threshold_temp_override", "", "Update the temperature threshold in celsius", "hidden", "", "string"}, + {"ct_reset", "", "Reset all throttling options", "hidden", "", "string"}, + {"showx", "", "Display the device configuration settings", "hidden", "", "string"} + }; } std::vector @@ -131,22 +145,8 @@ construct_configure_subcommand() const subcommand.put("type", "common"); subcommand.put("description", "Device and host configuration"); - std::vector