From ab17fca25ff19df6d44b25de6152ef8dbcf0222f Mon Sep 17 00:00:00 2001 From: Elena Date: Wed, 14 Apr 2021 21:18:05 -0400 Subject: [PATCH] Adding 4 new HBM temperature sensors. Signed-off-by: Elena Sakhnovitch Change-Id: Iaea04c38e8c2353e85d8aa2b871fdb82727157de [ROCm/amdsmi commit: 81c066350ff539160b845adc9815008c94e167db] --- projects/amdsmi/python_smi_tools/rsmiBindings.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/projects/amdsmi/python_smi_tools/rsmiBindings.py b/projects/amdsmi/python_smi_tools/rsmiBindings.py index bbac48b5a5..09bfa6eb10 100644 --- a/projects/amdsmi/python_smi_tools/rsmiBindings.py +++ b/projects/amdsmi/python_smi_tools/rsmiBindings.py @@ -227,11 +227,15 @@ class rsmi_temperature_type_t(c_int): RSMI_TEMP_TYPE_EDGE = RSMI_TEMP_TYPE_FIRST RSMI_TEMP_TYPE_JUNCTION = 1 RSMI_TEMP_TYPE_MEMORY = 2 - RSMI_TEMP_TYPE_LAST = RSMI_TEMP_TYPE_MEMORY + RSMI_TEMP_TYPE_HBM_0 = 3 + RSMI_TEMP_TYPE_HBM_1 = 4 + RSMI_TEMP_TYPE_HBM_2 = 5 + RSMI_TEMP_TYPE_HBM_3 = 6 + RSMI_TEMP_TYPE_LAST = RSMI_TEMP_TYPE_HBM_3 # temp_type_lst list correlates to rsmi_temperature_type_t -temp_type_lst = ['edge', 'junction', 'memory'] +temp_type_lst = ['edge', 'junction', 'memory', 'HBM 0', 'HBM 1', 'HBM 2', 'HBM 3'] class rsmi_power_profile_preset_masks_t(c_uint64):