From 82667828505bac27c6706f541a5fdbf034fa26c2 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/rocm_smi_lib commit: cf2f0b05088515a6cbdbf49af4346109946c731e] --- projects/rocm-smi-lib/python_smi_tools/rocm_smi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py b/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py index 05344cefe7..6f51358b06 100755 --- a/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py +++ b/projects/rocm-smi-lib/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