[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 <Bindhiya.KanangotBalakrishnan@amd.com>


[ROCm/amdsmi commit: fa9ca21520]
Tá an tiomantas seo le fáil i:
Bindhiya Kanangot Balakrishnan údaraithe agus Arif, Maisam tiomanta 2025-06-30 14:01:19 -05:00
1 tuismitheoir 7b9ef0e406
tiomantas 38f59e353a
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -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