From 16f2ca3f24d305ff56694dd638afa355c4b8eacb Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Tue, 2 Oct 2018 15:01:46 -0500 Subject: wspoon: Start PSEQ monitor after power workarounds This witherspoon-pseq-monitor-pgood service launches an instance of witherspoon-pseq-monitor to run during a power on to monitor for power faults during that sequence. It needs the hwmon driver for the ucd90160 bound when it starts so that it can find the path to some sysfs files it needs to access on failures. However, the power-workarounds@.service was running at about the same time, and it unbinds that device driver while it runs, so the pseq-monitor code can't find what it's looking for, as can be seen by a "Unable to find hwmon directory in device base path" trace. The fix is to just wait for the power-workaround service to be complete before starting this service. (From meta-ibm rev: 65da05ba33ac3b4bc2b46f1a58e05d1714221335) Change-Id: I04209d8765a63ec89546708b6af87f761cc6f73d Signed-off-by: Matt Spinler Signed-off-by: Brad Bishop --- .../witherspoon-pfault-analysis/witherspoon-pseq-monitor-pgood.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor-pgood.service b/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor-pgood.service index f18efc1a6b..ff6bcd181b 100644 --- a/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor-pgood.service +++ b/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor-pgood.service @@ -2,6 +2,8 @@ Description=Witherspoon Power Sequencer Power-on Monitor Wants=op-power-start@0.service After=op-power-start@0.service +Wants=power-workarounds@0.service +After=power-workarounds@0.service Conflicts=obmc-chassis-poweroff@0.target ConditionPathExists=!/run/openbmc/chassis@0-on -- cgit v1.2.3