[SWDEV-554587] Added IFWI Version and boot_firmware API
- Changed amd-smi static --vbios to accept ifwi - Change population logic for vbios version API - Added IFWI boot_firmware to the CLI, C++, Rust, and Python API Signed-off-by: Maisam Arif <Maisam.Arif@amd.com> Change-Id: I4ea504d40a43cfb011ab38fc9a664ecf12d39c8a
This commit is contained in:
committed by
Arif, Maisam
parent
c708a7e11f
commit
cd21b5edcc
@@ -583,10 +583,12 @@ class AMDSMICommands():
|
||||
if isinstance(value, str):
|
||||
if value.strip() == '':
|
||||
vbios_info[key] = "N/A"
|
||||
static_dict['vbios'] = vbios_info
|
||||
static_dict['ifwi'] = vbios_info
|
||||
# Remove boot_firmware since it's not used
|
||||
del static_dict['ifwi']['boot_firmware']
|
||||
except amdsmi_exception.AmdSmiLibraryException as e:
|
||||
static_dict['vbios'] = "N/A"
|
||||
logging.debug("Failed to get vbios info for gpu %s | %s", gpu_id, e.get_error_info())
|
||||
static_dict['ifwi'] = "N/A"
|
||||
logging.debug("Failed to get vbios/ifwi info for gpu %s | %s", gpu_id, e.get_error_info())
|
||||
if 'limit' in current_platform_args:
|
||||
if args.limit:
|
||||
# Power limits
|
||||
|
||||
@@ -771,7 +771,7 @@ class AMDSMIParser(argparse.ArgumentParser):
|
||||
# Optional arguments help text
|
||||
asic_help = "All asic information"
|
||||
bus_help = "All bus information"
|
||||
vbios_help = "All video bios information (if available)"
|
||||
vbios_help = "All video bios/IFWI information (if available)"
|
||||
limit_help = "All limit metric values (i.e. power and thermal limits)"
|
||||
driver_help = "Displays driver version"
|
||||
vram_help = "All vram information"
|
||||
@@ -813,7 +813,9 @@ class AMDSMIParser(argparse.ArgumentParser):
|
||||
if self.helpers.is_amdgpu_initialized():
|
||||
static_parser.add_argument('-a', '--asic', action='store_true', required=False, help=asic_help)
|
||||
static_parser.add_argument('-b', '--bus', action='store_true', required=False, help=bus_help)
|
||||
static_parser.add_argument('-V', '--vbios', action='store_true', required=False, help=vbios_help)
|
||||
# Accept vbios args without displaying them
|
||||
static_parser.add_argument('-V', '--vbios', dest='vbios', action='store_true', required=False, help=argparse.SUPPRESS)
|
||||
static_parser.add_argument('-I', '--ifwi', dest='vbios', action='store_true', required=False, help=vbios_help)
|
||||
static_parser.add_argument('-d', '--driver', action='store_true', required=False, help=driver_help)
|
||||
static_parser.add_argument('-v', '--vram', action='store_true', required=False, help=vram_help)
|
||||
static_parser.add_argument('-c', '--cache', action='store_true', required=False, help=cache_help)
|
||||
|
||||
Reference in New Issue
Block a user