Sync commands w/ Host
Added ucode as alias to firmware Changed pcie_width to pcie_lanes Signed-off-by: Maisam Arif <maisarif@amd.com> Change-Id: Ia95a13d937c8e1b7bf092b5001de38ea9c008606
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user