From 491ce167cb9751ba9911c91fa6c1361ddce6d88e Mon Sep 17 00:00:00 2001 From: Maisam Arif Date: Thu, 28 Sep 2023 19:08:37 -0500 Subject: [PATCH] Sync commands w/ Host Added ucode as alias to firmware Changed pcie_width to pcie_lanes Signed-off-by: Maisam Arif Change-Id: Ia95a13d937c8e1b7bf092b5001de38ea9c008606 [ROCm/amdsmi commit: f7d631b9cd5b9bdd396759d487396cc95b532b85] --- projects/amdsmi/amdsmi_cli/amdsmi_commands.py | 4 ++-- projects/amdsmi/amdsmi_cli/amdsmi_parser.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py index a4f2aee64c..f9f74cbf5c 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py @@ -1013,7 +1013,7 @@ class AMDSMICommands(): values_dict['ecc_block'] = "N/A" logging.debug("Failed to get ecc block features for gpu %s | %s", gpu_id, e.get_error_info()) if args.pcie: - pcie_dict = {'current_width': "N/A", + pcie_dict = {'current_lanes': "N/A", 'current_speed': "N/A", 'replay_count' : "N/A", 'current_bandwith_sent': "N/A", @@ -1029,7 +1029,7 @@ class AMDSMICommands(): pcie_speed_GTs_value = round(pcie_link_status['pcie_speed'] / 1000) pcie_dict['current_speed'] = pcie_speed_GTs_value - pcie_dict['current_width'] = pcie_link_status['pcie_lanes'] + pcie_dict['current_lanes'] = pcie_link_status['pcie_lanes'] if self.logger.is_human_readable_format(): unit = 'GT/s' diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_parser.py b/projects/amdsmi/amdsmi_cli/amdsmi_parser.py index 54cba3081e..af95a8641f 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_parser.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_parser.py @@ -348,7 +348,7 @@ class AMDSMIParser(argparse.ArgumentParser): err_records_help = "All error records information" # Create firmware subparser - firmware_parser = subparsers.add_parser('firmware', help=firmware_help, description=firmware_subcommand_help) + firmware_parser = subparsers.add_parser('firmware', help=firmware_help, description=firmware_subcommand_help, aliases=['ucode']) firmware_parser._optionals.title = firmware_optionals_title firmware_parser.formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, max_help_position=80, width=90) firmware_parser.set_defaults(func=func)