Add Asserted property for mem thermtrip
Add "Asserted" property in dbus to make phosphor-ipmi-host could know
whether the memory thermaltrip error is asserted or not.
Tested:
1.
Add in startMonitors:
'''
mem1ThermtripMonitor = std::make_unique<
host_error_monitor::mem_thermtrip_monitor::MemThermtripMonitor>(
io, conn, "CPU1_MEM_THERM_EVENT", 1, "CPU0_MEMTrip");
'''
Result:
'''
root@qbmc:~# busctl get-property xyz.openbmc_project.HostErrorMonitor \
> /xyz/openbmc_project/host_error_monitor/processor/CPU0_MEMTrip \
> xyz.openbmc_project.HostErrorMonitor.Processor.ThermalTrip Asserted
b false
'''
2.
Add in startMonitors:
'''
mem1ThermtripMonitor = std::make_unique<
host_error_monitor::mem_thermtrip_monitor::MemThermtripMonitor>(
io, conn, "CPU1_MEM_THERM_EVENT", 1);
'''
and the objectPath is
"/xyz/openbmc_project/host_error_monitor/processor/CPU1_MEM_THERM_EVENT"
Signed-off-by: JinFuLin <JeffLin2@quantatw.com>
Change-Id: I351b4379cf0f67ba667c72fa3046f5d96dc18096
1 file changed