From a6c8bab856f737bb9f7fb17e671ef1d846c177e4 Mon Sep 17 00:00:00 2001 From: "AL Musaffar, Yazen" Date: Sat, 8 Mar 2025 16:08:48 -0600 Subject: [PATCH] [SWDEV-491051] Fixed drm_card reference in python interface Update amdsmi_interface.py Typo at line 1744: was: "drm_card": _validate_if_max_uint(enumeration_info.drm_render, MaxUIntegerTypes.UINT32_T), changed to: "drm_card": _validate_if_max_uint(enumeration_info.drm_card, MaxUIntegerTypes.UINT32_T) changed from drm_render to drm_card Signed-off-by: AL Musaffar, Yazen --- 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 b5328dc08a..8912981ca3 100644 --- a/py-interface/amdsmi_interface.py +++ b/py-interface/amdsmi_interface.py @@ -1741,7 +1741,7 @@ def amdsmi_get_gpu_enumeration_info(processor_handle: amdsmi_wrapper.amdsmi_proc # Convert the struct fields into a dictionary and return enumeration_info = { "drm_render": _validate_if_max_uint(enumeration_info.drm_render, MaxUIntegerTypes.UINT32_T), - "drm_card": _validate_if_max_uint(enumeration_info.drm_render, MaxUIntegerTypes.UINT32_T), + "drm_card": _validate_if_max_uint(enumeration_info.drm_card, MaxUIntegerTypes.UINT32_T), "hsa_id": _validate_if_max_uint(enumeration_info.hsa_id, MaxUIntegerTypes.UINT32_T), "hip_id": _validate_if_max_uint(enumeration_info.hip_id, MaxUIntegerTypes.UINT32_T), "hip_uuid": enumeration_info.hip_uuid.decode('utf-8')