From 7812b6d7ca6b885d1ff2b7d156e1021d0e14e0f1 Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Tue, 7 Feb 2017 09:37:17 -0600 Subject: Zaius.py: Fix sensor numbers Change the sensor numbers to match what hostboot is using. The correct BootProgressSensor is required for the checkstop reboot monitor to work. This also involved adding some new inventory objects for the additional cores on P9 so that all cores can have their presence property correctly set on their corresponding inventory objects. Change-Id: I509b14abcf6bf28ffb5b3d96b342394e159f3090 Signed-off-by: Matt Spinler --- configs/Zaius.py | 190 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 119 insertions(+), 71 deletions(-) (limited to 'configs/Zaius.py') diff --git a/configs/Zaius.py b/configs/Zaius.py index 1a3af4e..a44b24c 100644 --- a/configs/Zaius.py +++ b/configs/Zaius.py @@ -59,6 +59,18 @@ FRU_INSTANCES = { '/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, }, '/system/chassis/motherboard/cpu0/core10': { 'fru_type' : 'CORE', 'is_fru' : False, }, '/system/chassis/motherboard/cpu0/core11': { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core12' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core13' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core14' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core15' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core16' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core17' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core18' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core19' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core20' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core21' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core22': { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core23': { 'fru_type' : 'CORE', 'is_fru' : False, }, '/system/chassis/motherboard/cpu1/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, }, '/system/chassis/motherboard/cpu1/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, }, @@ -72,6 +84,18 @@ FRU_INSTANCES = { '/system/chassis/motherboard/cpu1/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, }, '/system/chassis/motherboard/cpu1/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, }, '/system/chassis/motherboard/cpu1/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core12' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core13' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core14' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core15' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core16' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core17' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core18' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core19' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core20' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core21' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core22' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu1/core23' : { 'fru_type' : 'CORE', 'is_fru' : False, }, '/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, '/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, @@ -192,74 +216,98 @@ ID_LOOKUP = { 'PRODUCT_47' : '/system/misc', }, 'SENSOR' : { - 0x04 : '/org/openbmc/sensors/host/HostStatus', - 0x05 : '/org/openbmc/sensors/host/BootProgress', - 0x0c : '/system/chassis/motherboard/cpu0', - 0x0e : '/system/chassis/motherboard/cpu1', - 0x1e : '/system/chassis/motherboard/dimm3', - 0x1f : '/system/chassis/motherboard/dimm2', - 0x20 : '/system/chassis/motherboard/dimm1', - 0x21 : '/system/chassis/motherboard/dimm0', - 0x22 : '/system/chassis/motherboard/dimm7', - 0x23 : '/system/chassis/motherboard/dimm6', - 0x24 : '/system/chassis/motherboard/dimm5', - 0x25 : '/system/chassis/motherboard/dimm4', - 0x26 : '/system/chassis/motherboard/dimm11', - 0x27 : '/system/chassis/motherboard/dimm10', - 0x28 : '/system/chassis/motherboard/dimm9', - 0x29 : '/system/chassis/motherboard/dimm8', - 0x2a : '/system/chassis/motherboard/dimm15', - 0x2b : '/system/chassis/motherboard/dimm14', - 0x2c : '/system/chassis/motherboard/dimm13', - 0x2d : '/system/chassis/motherboard/dimm12', - 0x2e : '/system/chassis/motherboard/dimm19', - 0x2f : '/system/chassis/motherboard/dimm18', - 0x30 : '/system/chassis/motherboard/dimm17', - 0x31 : '/system/chassis/motherboard/dimm16', - 0x32 : '/system/chassis/motherboard/dimm23', - 0x33 : '/system/chassis/motherboard/dimm22', - 0x34 : '/system/chassis/motherboard/dimm21', - 0x35 : '/system/chassis/motherboard/dimm20', - 0x36 : '/system/chassis/motherboard/dimm27', - 0x37 : '/system/chassis/motherboard/dimm26', - 0x38 : '/system/chassis/motherboard/dimm25', - 0x39 : '/system/chassis/motherboard/dimm24', - 0x3a : '/system/chassis/motherboard/dimm31', - 0x3b : '/system/chassis/motherboard/dimm30', - 0x3c : '/system/chassis/motherboard/dimm29', - 0x3d : '/system/chassis/motherboard/dimm28', - 0x3e : '/system/chassis/motherboard/cpu0/core0', - 0x3f : '/system/chassis/motherboard/cpu0/core1', - 0x40 : '/system/chassis/motherboard/cpu0/core2', - 0x41 : '/system/chassis/motherboard/cpu0/core3', - 0x42 : '/system/chassis/motherboard/cpu0/core4', - 0x43 : '/system/chassis/motherboard/cpu0/core5', - 0x44 : '/system/chassis/motherboard/cpu0/core6', - 0x45 : '/system/chassis/motherboard/cpu0/core7', - 0x46 : '/system/chassis/motherboard/cpu0/core8', - 0x47 : '/system/chassis/motherboard/cpu0/core9', - 0x48 : '/system/chassis/motherboard/cpu0/core10', - 0x49 : '/system/chassis/motherboard/cpu0/core11', - 0x4a : '/system/chassis/motherboard/cpu1/core0', - 0x4b : '/system/chassis/motherboard/cpu1/core1', - 0x4c : '/system/chassis/motherboard/cpu1/core2', - 0x4d : '/system/chassis/motherboard/cpu1/core3', - 0x4e : '/system/chassis/motherboard/cpu1/core4', - 0x4f : '/system/chassis/motherboard/cpu1/core5', - 0x50 : '/system/chassis/motherboard/cpu1/core6', - 0x51 : '/system/chassis/motherboard/cpu1/core7', - 0x52 : '/system/chassis/motherboard/cpu1/core8', - 0x53 : '/system/chassis/motherboard/cpu1/core9', - 0x54 : '/system/chassis/motherboard/cpu1/core10', - 0x55 : '/system/chassis/motherboard/cpu1/core11', - 0x5f : '/org/openbmc/sensors/host/BootCount', - 0x60 : '/system/chassis/motherboard', - 0x61 : '/system/systemevent', - 0x63 : '/system/chassis/motherboard/refclock', - 0x64 : '/system/chassis/motherboard/pcieclock', - 0xb1 : '/system/chassis/motherboard/todclock', - 0xb5 : '/org/openbmc/sensors/host/OperatingSystemStatus', - 0xb6 : '/system/chassis/motherboard/pcielink', + 0x02 : '/org/openbmc/sensors/host/HostStatus', + 0x03 : '/org/openbmc/sensors/host/BootProgress', + 0x21 : '/system/chassis/motherboard/cpu0', + 0x71 : '/system/chassis/motherboard/cpu1', + 0xc7 : '/system/chassis/motherboard/dimm3', + 0xc5 : '/system/chassis/motherboard/dimm2', + 0xc3 : '/system/chassis/motherboard/dimm1', + 0xc1 : '/system/chassis/motherboard/dimm0', + 0xcf : '/system/chassis/motherboard/dimm7', + 0xcd : '/system/chassis/motherboard/dimm6', + 0xcb : '/system/chassis/motherboard/dimm5', + 0xc9 : '/system/chassis/motherboard/dimm4', + 0xd7 : '/system/chassis/motherboard/dimm11', + 0xd5 : '/system/chassis/motherboard/dimm10', + 0xd3 : '/system/chassis/motherboard/dimm9', + 0xd1 : '/system/chassis/motherboard/dimm8', + 0xdf : '/system/chassis/motherboard/dimm15', + 0xdd : '/system/chassis/motherboard/dimm14', + 0xdb : '/system/chassis/motherboard/dimm13', + 0xd9 : '/system/chassis/motherboard/dimm12', + 0xe7 : '/system/chassis/motherboard/dimm19', + 0xe5 : '/system/chassis/motherboard/dimm18', + 0xe3 : '/system/chassis/motherboard/dimm17', + 0xe1 : '/system/chassis/motherboard/dimm16', + 0xef : '/system/chassis/motherboard/dimm23', + 0xed : '/system/chassis/motherboard/dimm22', + 0xeb : '/system/chassis/motherboard/dimm21', + 0xe9 : '/system/chassis/motherboard/dimm20', + 0xf7 : '/system/chassis/motherboard/dimm27', + 0xf5 : '/system/chassis/motherboard/dimm26', + 0xf3 : '/system/chassis/motherboard/dimm25', + 0xf1 : '/system/chassis/motherboard/dimm24', + 0xff : '/system/chassis/motherboard/dimm31', + 0xfd : '/system/chassis/motherboard/dimm30', + 0xfb : '/system/chassis/motherboard/dimm29', + 0xf9 : '/system/chassis/motherboard/dimm28', + 0x23 : '/system/chassis/motherboard/cpu0/core0', + 0x26 : '/system/chassis/motherboard/cpu0/core1', + 0x29 : '/system/chassis/motherboard/cpu0/core2', + 0x2c : '/system/chassis/motherboard/cpu0/core3', + 0x2f : '/system/chassis/motherboard/cpu0/core4', + 0x32 : '/system/chassis/motherboard/cpu0/core5', + 0x35 : '/system/chassis/motherboard/cpu0/core6', + 0x38 : '/system/chassis/motherboard/cpu0/core7', + 0x3b : '/system/chassis/motherboard/cpu0/core8', + 0x3e : '/system/chassis/motherboard/cpu0/core9', + 0x41 : '/system/chassis/motherboard/cpu0/core10', + 0x44 : '/system/chassis/motherboard/cpu0/core11', + 0x47 : '/system/chassis/motherboard/cpu0/core12', + 0x4a : '/system/chassis/motherboard/cpu0/core13', + 0x4d : '/system/chassis/motherboard/cpu0/core14', + 0x50 : '/system/chassis/motherboard/cpu0/core15', + 0x53 : '/system/chassis/motherboard/cpu0/core16', + 0x56 : '/system/chassis/motherboard/cpu0/core17', + 0x59 : '/system/chassis/motherboard/cpu0/core18', + 0x5c : '/system/chassis/motherboard/cpu0/core19', + 0x5f : '/system/chassis/motherboard/cpu0/core20', + 0x62 : '/system/chassis/motherboard/cpu0/core21', + 0x65 : '/system/chassis/motherboard/cpu1/core22', + 0x68 : '/system/chassis/motherboard/cpu1/core23', + 0x73 : '/system/chassis/motherboard/cpu1/core0', + 0x76 : '/system/chassis/motherboard/cpu1/core1', + 0x79 : '/system/chassis/motherboard/cpu1/core2', + 0x7c : '/system/chassis/motherboard/cpu1/core3', + 0x7f : '/system/chassis/motherboard/cpu1/core4', + 0x82 : '/system/chassis/motherboard/cpu1/core5', + 0x85 : '/system/chassis/motherboard/cpu1/core6', + 0x88 : '/system/chassis/motherboard/cpu1/core7', + 0x8b : '/system/chassis/motherboard/cpu1/core8', + 0x8e : '/system/chassis/motherboard/cpu1/core9', + 0x91 : '/system/chassis/motherboard/cpu1/core10', + 0x94 : '/system/chassis/motherboard/cpu1/core11', + 0x97 : '/system/chassis/motherboard/cpu1/core12', + 0x9a : '/system/chassis/motherboard/cpu1/core13', + 0x9d : '/system/chassis/motherboard/cpu1/core14', + 0xa0 : '/system/chassis/motherboard/cpu1/core15', + 0xa3 : '/system/chassis/motherboard/cpu1/core16', + 0xa6 : '/system/chassis/motherboard/cpu1/core17', + 0xa9 : '/system/chassis/motherboard/cpu1/core18', + 0xac : '/system/chassis/motherboard/cpu1/core19', + 0xaf : '/system/chassis/motherboard/cpu1/core20', + 0xb2 : '/system/chassis/motherboard/cpu1/core21', + 0xb5 : '/system/chassis/motherboard/cpu1/core22', + 0xb8 : '/system/chassis/motherboard/cpu1/core23', + 0x07 : '/org/openbmc/sensors/host/BootCount', + 0x10 : '/system/chassis/motherboard', + 0x01 : '/system/systemevent', + 0x11 : '/system/chassis/motherboard/refclock', + 0x12 : '/system/chassis/motherboard/pcieclock', + 0x13 : '/system/chassis/motherboard/todclock', + 0x02 : '/org/openbmc/sensors/host/OperatingSystemStatus', + 0x04 : '/system/chassis/motherboard/pcielink', }, 'GPIO_PRESENT' : {} } @@ -328,9 +376,9 @@ GPIO_CONFIGS = { # Miscellaneous non-poll sensor with system specific properties. # The sensor id is the same as those defined in ID_LOOKUP['SENSOR']. MISC_SENSORS = { - 0x5f : { 'class' : 'BootCountSensor' }, - 0x05 : { 'class' : 'BootProgressSensor' }, - 0xb5 : { 'class' : 'OperatingSystemStatusSensor' }, + 0x07 : { 'class' : 'BootCountSensor' }, + 0x03 : { 'class' : 'BootProgressSensor' }, + 0x02 : { 'class' : 'OperatingSystemStatusSensor' }, } # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 -- cgit v1.2.1