[SWDEV-545342] Fixed amdsmi_link_type_t enumeration (#560)
Signed-off-by: Pham, Gabriel <Gabriel.Pham@amd.com>
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>
[ROCm/amdsmi commit: e2eac98496]
This commit is contained in:
@@ -3154,14 +3154,12 @@ def amdsmi_topo_get_link_type(
|
||||
)
|
||||
|
||||
hops = ctypes.c_uint64()
|
||||
#type = AmdSmiIoLinkType()
|
||||
type = ctypes.c_uint32()
|
||||
|
||||
_check_res(
|
||||
amdsmi_wrapper.amdsmi_topo_get_link_type(
|
||||
#processor_handle_src, processor_handle_dst, ctypes.byref(hops), type
|
||||
processor_handle_src, processor_handle_dst, ctypes.byref(
|
||||
hops), ctypes.byref(type)
|
||||
processor_handle_src, processor_handle_dst,
|
||||
ctypes.byref(hops), ctypes.byref(type)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -1127,14 +1127,14 @@ amdsmi_accelerator_partition_profile_config_t = struct_amdsmi_accelerator_partit
|
||||
# values for enumeration 'amdsmi_link_type_t'
|
||||
amdsmi_link_type_t__enumvalues = {
|
||||
0: 'AMDSMI_LINK_TYPE_INTERNAL',
|
||||
1: 'AMDSMI_LINK_TYPE_XGMI',
|
||||
2: 'AMDSMI_LINK_TYPE_PCIE',
|
||||
1: 'AMDSMI_LINK_TYPE_PCIE',
|
||||
2: 'AMDSMI_LINK_TYPE_XGMI',
|
||||
3: 'AMDSMI_LINK_TYPE_NOT_APPLICABLE',
|
||||
4: 'AMDSMI_LINK_TYPE_UNKNOWN',
|
||||
}
|
||||
AMDSMI_LINK_TYPE_INTERNAL = 0
|
||||
AMDSMI_LINK_TYPE_XGMI = 1
|
||||
AMDSMI_LINK_TYPE_PCIE = 2
|
||||
AMDSMI_LINK_TYPE_PCIE = 1
|
||||
AMDSMI_LINK_TYPE_XGMI = 2
|
||||
AMDSMI_LINK_TYPE_NOT_APPLICABLE = 3
|
||||
AMDSMI_LINK_TYPE_UNKNOWN = 4
|
||||
amdsmi_link_type_t = ctypes.c_uint32 # enum
|
||||
|
||||
Reference in New Issue
Block a user