commit | 8dac5fdbe854a5684664cd54f450094de0606a88 | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Tue Aug 22 14:11:18 2017 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Aug 30 19:46:11 2017 +0000 |
tree | 548e3655a195e8baa3c453d112c6a06862a7d2ef | |
parent | c99ab068784d737fa0cf547302270a0d30757509 [diff] |
Add service to monitor the UCD90160 at runtime This service starts the witherspoon-pseq-monitor application with the runtime-monitor argument (as opposed to the pgood-monitor argument). The service will start after PGOOD comes on. The application monitors for loss of PGOOD at runtime, in which case it will analyze the UCD90160 power sequencer chip for errors. It will also poll the chip for the errors that can only be detected that way. Resolves openbmc/openbmc#1724 Change-Id: Ieb456f56b6b4223cf9fe7a0635c5a3e725efcb29 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis-error-native.bb b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis-error-native.bb index 068d792..0ee635c 100644 --- a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis-error-native.bb +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis-error-native.bb
@@ -15,4 +15,5 @@ DEST=${yaml_dir}/xyz/openbmc_project/Power install -d ${DEST} install ${SRC}/Fault.errors.yaml ${DEST} + install ${SRC}/Fault.metadata.yaml ${DEST} }
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis.bb b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis.bb index 57ee0fe..f9b0e2a 100644 --- a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis.bb +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis.bb
@@ -24,8 +24,11 @@ " CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target" +SEQ_MONITOR_SVC = "witherspoon-pseq-monitor.service" +SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}" + SEQ_PGOOD_SVC = "witherspoon-pseq-monitor-pgood.service" SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}" -SYSTEMD_SERVICE_${PN} += "${SEQ_PGOOD_SVC}" -SYSTEMD_LINK_${PN} += "${SEQ_PGOOD_FMT}" +SYSTEMD_SERVICE_${PN} += "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}" +SYSTEMD_LINK_${PN} += "${SEQ_MONITOR_FMT} ${SEQ_PGOOD_FMT}"
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor.service b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor.service new file mode 100644 index 0000000..d0ba9a9 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor.service
@@ -0,0 +1,11 @@ +[Unit] +Description=Witherspoon Power Sequencer Runtime Monitor +Wants=obmc-host-start-pre@0.target +Before=obmc-host-start-pre@0.target +Wants=vcs_on@0.service +After=vcs_on@0.service +Conflicts=obmc-chassis-poweroff@0.target + +[Service] +ExecStart=/usr/bin/env witherspoon-pseq-monitor -a runtime-monitor -i 1 +SyslogIdentifier=witherspoon-pseq-monitor