[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
Cette révision appartient à :
Maisam Arif
2025-09-16 19:51:13 -05:00
révisé par Arif, Maisam
Parent c708a7e11f
révision cd21b5edcc
20 fichiers modifiés avec 185 ajouts et 72 suppressions
+5
Voir le fichier
@@ -2310,11 +2310,16 @@ def amdsmi_get_gpu_vbios_info(
processor_handle, ctypes.byref(vbios_info))
)
boot_firmware = vbios_info.boot_firmware.decode("utf-8")
if boot_firmware == "":
boot_firmware = "N/A"
return {
"name": vbios_info.name.decode("utf-8"),
"build_date": vbios_info.build_date.decode("utf-8"),
"part_number": vbios_info.part_number.decode("utf-8"),
"version": vbios_info.version.decode("utf-8"),
"boot_firmware": boot_firmware,
}