[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
Tento commit je obsažen v:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1028,7 +1028,8 @@ struct_amdsmi_vbios_info_t._fields_ = [
|
||||
('build_date', ctypes.c_char * 256),
|
||||
('part_number', ctypes.c_char * 256),
|
||||
('version', ctypes.c_char * 256),
|
||||
('reserved', ctypes.c_uint64 * 68),
|
||||
('boot_firmware', ctypes.c_char * 256),
|
||||
('reserved', ctypes.c_uint64 * 36),
|
||||
]
|
||||
|
||||
amdsmi_vbios_info_t = struct_amdsmi_vbios_info_t
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele