From 7543a058ea2ba4129fcd271206cb27f0938c3adc Mon Sep 17 00:00:00 2001 From: Charis Poag Date: Sun, 8 Dec 2024 22:14:19 -0600 Subject: [PATCH] [SWDEV-475712] Fix MI2x target_graphics_version Removed correcting target_graphics_version by product name. Instead detected target_graphics_version which needs to be corrected -> populate accordingly. Change-Id: Ie9240a049313d9338f831ef47be973cd5c228612 Signed-off-by: Charis Poag --- py-interface/amdsmi_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-interface/amdsmi_interface.py b/py-interface/amdsmi_interface.py index 5d3db14d34..95abd19238 100644 --- a/py-interface/amdsmi_interface.py +++ b/py-interface/amdsmi_interface.py @@ -1653,7 +1653,7 @@ def amdsmi_get_gpu_asic_info( market_name = _pad_hex_value(asic_info_struct.market_name.decode("utf-8"), 4) target_graphics_version = str(asic_info_struct.target_graphics_version) - if len(target_graphics_version) == 4 and ("Instinct MI2" in market_name): + if target_graphics_version == "9010": hex_part = str(hex(int(str(asic_info_struct.target_graphics_version)[2:]))).replace("0x", "") target_graphics_version = str(asic_info_struct.target_graphics_version)[:2] + hex_part asic_info = {