Fix: CPU sensors count on MQM8700 system

Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
This commit is contained in:
Oleksandr Shamray
2018-07-31 18:57:57 +00:00
parent acc69bfa90
commit 9c649d16e1
2 changed files with 4 additions and 11 deletions

View File

@@ -36,8 +36,7 @@ enum onlp_thermal_id
THERMAL_RESERVED = 0,
THERMAL_CPU_CORE_0,
THERMAL_CPU_CORE_1,
THERMAL_CPU_CORE_2,
THERMAL_CPU_CORE_3,
THERMAL_CPU_PACK,
THERMAL_ASIC,
THERMAL_BOARD_AMB,
THERMAL_PORT,
@@ -50,8 +49,7 @@ static char* thermal_fnames[] = /* must map with onlp_thermal_id */
"reserved",
"cpu_core0",
"cpu_core1",
"cpu_core2",
"cpu_core3",
"cpu_pack",
"asic",
"board_amb",
"port_amb",
@@ -71,12 +69,7 @@ static onlp_thermal_info_t tinfo[] = {
ONLP_THERMAL_CAPS_ALL, 0, CPU_THERMAL_THRESHOLD_INIT_DEFAULTS
},
{ { ONLP_THERMAL_ID_CREATE(THERMAL_CPU_CORE_0), "CPU Core 2", 0},
ONLP_THERMAL_STATUS_PRESENT,
ONLP_THERMAL_CAPS_ALL, 0, CPU_THERMAL_THRESHOLD_INIT_DEFAULTS
},
{ { ONLP_THERMAL_ID_CREATE(THERMAL_CPU_CORE_1), "CPU Core 3", 0},
{ { ONLP_THERMAL_ID_CREATE(THERMAL_CPU_PACK), "CPU pack", 0},
ONLP_THERMAL_STATUS_PRESENT,
ONLP_THERMAL_CAPS_ALL, 0, CPU_THERMAL_THRESHOLD_INIT_DEFAULTS
},

View File

@@ -5,7 +5,7 @@ class OnlPlatform_x86_64_mlnx_mqm8700_r0(OnlPlatformMellanox,
OnlPlatformPortConfig_32x100):
PLATFORM='x86-64-mlnx-mqm8700-r0'
MODEL="MQM8700"
SYS_OBJECT_ID=".700.1"
SYS_OBJECT_ID=".8700.1"
def baseconfig(self):
# load modules