[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
Bu işleme şunda yer alıyor:
işlemeyi yapan:
Arif, Maisam
ebeveyn
c708a7e11f
işleme
cd21b5edcc
@@ -122,6 +122,7 @@ test_bdf_device_id (__main__.TestAmdSmiPythonInterface) ...
|
||||
vbios_info['build_date'] is: 2021/03/28 21:35
|
||||
vbios_info['version'] is: 020.001.000.060.000000
|
||||
vbios_info['name'] is: 113-MSITV395MH.132
|
||||
vbios_info['boot_firmware'] is: 01234567
|
||||
|
||||
###Test amdsmi_get_gpu_device_uuid
|
||||
|
||||
@@ -474,6 +475,7 @@ test_vbios_info (__main__.TestAmdSmiPythonInterface) ...
|
||||
vbios_info['build_date'] is: 2021/03/28 21:35
|
||||
vbios_info['name'] is: 113-MSITV395MH.132
|
||||
vbios_info['version'] is: 020.001.000.060.000000
|
||||
vbios_info['boot_firmware'] is: 01234567
|
||||
|
||||
ok
|
||||
test_vendor_name (__main__.TestAmdSmiPythonInterface) ...
|
||||
@@ -544,6 +546,7 @@ test_walkthrough (__main__.TestAmdSmiPythonInterface) ...
|
||||
vbios_info['build_date'] is: 2021/03/28 21:35
|
||||
vbios_info['name'] is: 113-MSITV395MH.132
|
||||
vbios_info['version'] is: 020.001.000.060.000000
|
||||
vbios_info['boot_firmware'] is: 01234567
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -60,6 +60,17 @@ class TestAmdSmiPythonInterface(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
amdsmi.amdsmi_shut_down()
|
||||
|
||||
def _print_vbios_info(self, vbios_info):
|
||||
print(f" vbios_info['part_number'] is: {vbios_info['part_number']}")
|
||||
print(f" vbios_info['build_date'] is: {vbios_info['build_date']}")
|
||||
print(f" vbios_info['name'] is: {vbios_info['name']}")
|
||||
print(f" vbios_info['version'] is: {vbios_info['version']}")
|
||||
if 'boot_firmware' in vbios_info:
|
||||
print(f" vbios_info['boot_firmware'] is: {vbios_info['boot_firmware']}")
|
||||
else:
|
||||
print(" vbios_info['boot_firmware'] is: N/A")
|
||||
return
|
||||
|
||||
def test_asic_kfd_info(self):
|
||||
processors = amdsmi.amdsmi_get_processor_handles()
|
||||
self.assertGreaterEqual(len(processors), 1)
|
||||
@@ -251,14 +262,7 @@ class TestAmdSmiPythonInterface(unittest.TestCase):
|
||||
except amdsmi.AmdSmiLibraryException as e:
|
||||
self._check_exception(e)
|
||||
continue
|
||||
print(" vbios_info['part_number'] is: {}".format(
|
||||
vbios_info['part_number']))
|
||||
print(" vbios_info['build_date'] is: {}".format(
|
||||
vbios_info['build_date']))
|
||||
print(" vbios_info['version'] is: {}".format(
|
||||
vbios_info['version']))
|
||||
print(" vbios_info['name'] is: {}".format(
|
||||
vbios_info['name']))
|
||||
self._print_vbios_info(vbios_info)
|
||||
try:
|
||||
print("\n###Test amdsmi_get_gpu_device_uuid \n")
|
||||
uuid = amdsmi.amdsmi_get_gpu_device_uuid(processor)
|
||||
@@ -1001,7 +1005,6 @@ class TestAmdSmiPythonInterface(unittest.TestCase):
|
||||
print(" Utilization count for {} is: {}".format(
|
||||
utilization_count[3]['type'], utilization_count[3]['value']))
|
||||
print("\n")
|
||||
|
||||
|
||||
def test_vbios_info(self):
|
||||
|
||||
@@ -1017,16 +1020,8 @@ class TestAmdSmiPythonInterface(unittest.TestCase):
|
||||
except amdsmi.AmdSmiLibraryException as e:
|
||||
self._check_exception(e)
|
||||
continue
|
||||
print(" vbios_info['part_number'] is: {}".format(
|
||||
vbios_info['part_number']))
|
||||
print(" vbios_info['build_date'] is: {}".format(
|
||||
vbios_info['build_date']))
|
||||
print(" vbios_info['name'] is: {}".format(
|
||||
vbios_info['name']))
|
||||
print(" vbios_info['version'] is: {}".format(
|
||||
vbios_info['version']))
|
||||
self._print_vbios_info(vbios_info)
|
||||
print("\n")
|
||||
|
||||
|
||||
def test_vendor_name(self):
|
||||
|
||||
@@ -1044,7 +1039,6 @@ class TestAmdSmiPythonInterface(unittest.TestCase):
|
||||
continue
|
||||
print(" Vendor name is: {}".format(vendor_name))
|
||||
print("\n")
|
||||
|
||||
|
||||
# @unittest.SkipTest
|
||||
def test_accelerator_partition_profile(self):
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle