From 38f59e353ad545234d204fe60735168aba970b9a Mon Sep 17 00:00:00 2001 From: Bindhiya Kanangot Balakrishnan Date: Tue, 24 Jun 2025 16:09:27 -0500 Subject: [PATCH] [SWDEV-540014] Correct topology link_type check Topology numa_bw checks for non-xgmi links to set as N/A. The recent change in link_type enum mapping caused this condition to check for PCIE instead of XGMI. Corrected the same. Signed-off-by: Bindhiya Kanangot Balakrishnan [ROCm/amdsmi commit: fa9ca21520ff7909d9e32d1ca1a704484371a252] --- projects/amdsmi/amdsmi_cli/amdsmi_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py index 4014e6b02f..5d0521947f 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py @@ -3914,7 +3914,7 @@ class AMDSMICommands(): try: link_type = amdsmi_interface.amdsmi_topo_get_link_type(src_gpu, dest_gpu)['type'] if isinstance(link_type, int): - if link_type != 2: + if link_type != amdsmi_interface.amdsmi_wrapper.AMDSMI_LINK_TYPE_XGMI: # non_xgmi = True src_gpu_link_type[dest_gpu_key] = "N/A" continue