From 304636c27d35d57279e85e63caec71953471a03c Mon Sep 17 00:00:00 2001 From: Sreekant Somasekharan Date: Fri, 7 Jan 2022 23:04:26 -0500 Subject: [PATCH] Print ASD firmware version in hex instead of decimal format Change-Id: Idf113f63b79f2d2903ae795d272d232a43680516 [ROCm/amdsmi commit: cf2f0b05088515a6cbdbf49af4346109946c731e] --- projects/amdsmi/python_smi_tools/rocm_smi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/amdsmi/python_smi_tools/rocm_smi.py b/projects/amdsmi/python_smi_tools/rocm_smi.py index 05344cefe7..6f51358b06 100755 --- a/projects/amdsmi/python_smi_tools/rocm_smi.py +++ b/projects/amdsmi/python_smi_tools/rocm_smi.py @@ -1517,8 +1517,8 @@ def showFwInfo(deviceList, fwType): fw_name = fw_name.upper() ret = rocmsmi.rsmi_dev_firmware_version_get(device, fw_block_names_l.index(fw_name), byref(fw_ver)) if rsmi_ret_ok(ret, device, fw_name): - # The VCN, VCE, UVD, and SOS firmware's value needs to be in hexadecimal - if fw_name in ['VCN', 'VCE', 'UVD', 'SOS']: + # The VCN, VCE, UVD, SOS and ASD firmware's value needs to be in hexadecimal + if fw_name in ['VCN', 'VCE', 'UVD', 'SOS', 'ASD']: printLog(device, '%s firmware version' % (fw_name), '\t0x%s' % (str(hex(fw_ver.value))[2:].zfill(8))) # The TA XGMI, TA RAS, and SMC firmware's hex value looks like 0x12345678