# System states # state can change to next state in 2 ways: # - a process emits a GotoSystemState signal with state name to goto # - objects specified in EXIT_STATE_DEPEND have started SYSTEM_STATES = [ "BASE_APPS", "BMC_STARTING", "BMC_READY", "HOST_POWERING_ON", "HOST_POWERED_ON", "HOST_BOOTING", "HOST_BOOTED", "HOST_POWERED_OFF", ] EXIT_STATE_DEPEND = { "BASE_APPS": { "/org/openbmc/sensors": 0, }, "BMC_STARTING": { "/org/openbmc/control/chassis0": 0, "/org/openbmc/control/power0": 0, "/org/openbmc/control/flash/bios": 0, }, } FRU_INSTANCES = { "/system": { "fru_type": "SYSTEM", "is_fru": True, "present": "True", }, "/system/bios": { "fru_type": "SYSTEM", "is_fru": True, "present": "True", }, "/system/misc": { "fru_type": "SYSTEM", "is_fru": False, }, "/system/chassis": { "fru_type": "SYSTEM", "is_fru": True, "present": "True", }, "/system/chassis/motherboard": { "fru_type": "MAIN_PLANAR", "is_fru": True, }, "/system/systemevent": { "fru_type": "SYSTEM_EVENT", "is_fru": False, }, "/system/chassis/motherboard/refclock": { "fru_type": "MAIN_PLANAR", "is_fru": False, }, "/system/chassis/motherboard/pcieclock": { "fru_type": "MAIN_PLANAR", "is_fru": False, }, "/system/chassis/motherboard/todclock": { "fru_type": "MAIN_PLANAR", "is_fru": False, }, "/system/chassis/fan0": { "fru_type": "FAN", "is_fru": True, }, "/system/chassis/fan1": { "fru_type": "FAN", "is_fru": True, }, "/system/chassis/fan2": { "fru_type": "FAN", "is_fru": True, }, "/system/chassis/motherboard/bmc": { "fru_type": "BMC", "is_fru": False, "manufacturer": "ASPEED", }, "/system/chassis/motherboard/cpu0": { "fru_type": "CPU", "is_fru": True, }, "/system/chassis/motherboard/cpu1": { "fru_type": "CPU", "is_fru": True, }, "/system/chassis/motherboard/cpu0/core0": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu0/core1": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu0/core2": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu0/core3": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu0/core4": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu0/core5": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu0/core6": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu0/core7": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu0/core8": { "fru_type": "CORE", "is_fru": False, }, "/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, }, "/system/chassis/motherboard/cpu1/core2": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu1/core3": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu1/core4": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu1/core5": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu1/core6": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu1/core7": { "fru_type": "CORE", "is_fru": False, }, "/system/chassis/motherboard/cpu1/core8": { "fru_type": "CORE", "is_fru": False, }, "/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, }, "/system/chassis/motherboard/dimm2": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm3": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm4": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm5": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm6": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm7": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm8": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm9": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm10": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm11": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm12": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm13": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm14": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm15": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm16": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm17": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm18": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm19": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm20": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm21": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm22": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm23": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm24": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm25": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm26": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm27": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm28": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm29": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm30": { "fru_type": "DIMM", "is_fru": True, }, "/system/chassis/motherboard/dimm31": { "fru_type": "DIMM", "is_fru": True, }, } ID_LOOKUP = { "FRU": { 0x01: "/system/chassis/motherboard/cpu0", 0x02: "/system/chassis/motherboard/cpu1", 0x03: "/system/chassis/motherboard", 0x04: "/system/chassis/motherboard/membuf0", 0x05: "/system/chassis/motherboard/membuf1", 0x06: "/system/chassis/motherboard/membuf2", 0x07: "/system/chassis/motherboard/membuf3", 0x08: "/system/chassis/motherboard/membuf4", 0x09: "/system/chassis/motherboard/membuf5", 0x0C: "/system/chassis/motherboard/dimm0", 0x0D: "/system/chassis/motherboard/dimm1", 0x0E: "/system/chassis/motherboard/dimm2", 0x0F: "/system/chassis/motherboard/dimm3", 0x10: "/system/chassis/motherboard/dimm4", 0x11: "/system/chassis/motherboard/dimm5", 0x12: "/system/chassis/motherboard/dimm6", 0x13: "/system/chassis/motherboard/dimm7", 0x14: "/system/chassis/motherboard/dimm8", 0x15: "/system/chassis/motherboard/dimm9", 0x16: "/system/chassis/motherboard/dimm10", 0x17: "/system/chassis/motherboard/dimm11", 0x18: "/system/chassis/motherboard/dimm12", 0x19: "/system/chassis/motherboard/dimm13", 0x1A: "/system/chassis/motherboard/dimm14", 0x1B: "/system/chassis/motherboard/dimm15", 0x1C: "/system/chassis/motherboard/dimm16", 0x1D: "/system/chassis/motherboard/dimm17", 0x1E: "/system/chassis/motherboard/dimm18", 0x1F: "/system/chassis/motherboard/dimm19", 0x20: "/system/chassis/motherboard/dimm20", 0x21: "/system/chassis/motherboard/dimm21", 0x22: "/system/chassis/motherboard/dimm22", 0x23: "/system/chassis/motherboard/dimm23", 0x24: "/system/chassis/motherboard/dimm24", 0x25: "/system/chassis/motherboard/dimm25", 0x26: "/system/chassis/motherboard/dimm26", 0x27: "/system/chassis/motherboard/dimm27", 0x28: "/system/chassis/motherboard/dimm28", 0x29: "/system/chassis/motherboard/dimm29", 0x2A: "/system/chassis/motherboard/dimm30", 0x2B: "/system/chassis/motherboard/dimm31", }, "FRU_STR": { "PRODUCT_0": "/system/bios", "BOARD_1": "/system/chassis/motherboard/cpu0", "BOARD_2": "/system/chassis/motherboard/cpu1", "CHASSIS_3": "/system/chassis/motherboard", "BOARD_3": "/system/misc", "PRODUCT_12": "/system/chassis/motherboard/dimm0", "PRODUCT_13": "/system/chassis/motherboard/dimm1", "PRODUCT_14": "/system/chassis/motherboard/dimm2", "PRODUCT_15": "/system/chassis/motherboard/dimm3", "PRODUCT_16": "/system/chassis/motherboard/dimm4", "PRODUCT_17": "/system/chassis/motherboard/dimm5", "PRODUCT_18": "/system/chassis/motherboard/dimm6", "PRODUCT_19": "/system/chassis/motherboard/dimm7", "PRODUCT_20": "/system/chassis/motherboard/dimm8", "PRODUCT_21": "/system/chassis/motherboard/dimm9", "PRODUCT_22": "/system/chassis/motherboard/dimm10", "PRODUCT_23": "/system/chassis/motherboard/dimm11", "PRODUCT_24": "/system/chassis/motherboard/dimm12", "PRODUCT_25": "/system/chassis/motherboard/dimm13", "PRODUCT_26": "/system/chassis/motherboard/dimm14", "PRODUCT_27": "/system/chassis/motherboard/dimm15", "PRODUCT_28": "/system/chassis/motherboard/dimm16", "PRODUCT_29": "/system/chassis/motherboard/dimm17", "PRODUCT_30": "/system/chassis/motherboard/dimm18", "PRODUCT_31": "/system/chassis/motherboard/dimm19", "PRODUCT_32": "/system/chassis/motherboard/dimm20", "PRODUCT_33": "/system/chassis/motherboard/dimm21", "PRODUCT_34": "/system/chassis/motherboard/dimm22", "PRODUCT_35": "/system/chassis/motherboard/dimm23", "PRODUCT_36": "/system/chassis/motherboard/dimm24", "PRODUCT_37": "/system/chassis/motherboard/dimm25", "PRODUCT_38": "/system/chassis/motherboard/dimm26", "PRODUCT_39": "/system/chassis/motherboard/dimm27", "PRODUCT_40": "/system/chassis/motherboard/dimm28", "PRODUCT_41": "/system/chassis/motherboard/dimm29", "PRODUCT_42": "/system/chassis/motherboard/dimm30", "PRODUCT_43": "/system/chassis/motherboard/dimm31", "PRODUCT_47": "/system/misc", }, "SENSOR": { 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": {}, } # Miscellaneous non-poll sensor with system specific properties. # The sensor id is the same as those defined in ID_LOOKUP['SENSOR']. MISC_SENSORS = {} # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4