summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2016-12-29 11:33:53 +0800
committerPatrick Williams <patrick@stwcx.xyz>2017-02-24 16:55:32 +0000
commit7b9294f17f1cea3a3f58b29ddaf0c383c7551a1e (patch)
tree987895ada73c78a8cab258140675d30ab5c317ac
parentb24fb1ff30a58d5a862dde912289cf5f161d9dd2 (diff)
downloadtalos-openbmc-7b9294f17f1cea3a3f58b29ddaf0c383c7551a1e.tar.gz
talos-openbmc-7b9294f17f1cea3a3f58b29ddaf0c383c7551a1e.zip
meta-romulus: Make vcs_workaround execute after avsbus-enable
This is a workaround for Romulus, that pgood will not be ready before CPLD triggers it, and vcs_workaround is expected to be done before CPLD trigger. The common vcs_workaround is executed after pgood is asserted, so on Romulus it will not get executed since pgood won't be asserted. This commit moves vcs_workaround after avsbus-enable and before CPLD trigger, so it will be executed in a proper step. Change-Id: I3899153023070a995393e7c8554c37b7f1b86996 Signed-off-by: Lei YU <mine260309@gmail.com>
-rw-r--r--meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/op-pdbg-host-control/vcs_workaround@.service15
-rw-r--r--meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/p9-vcs-workaround.bbappend1
2 files changed, 16 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/op-pdbg-host-control/vcs_workaround@.service b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/op-pdbg-host-control/vcs_workaround@.service
new file mode 100644
index 000000000..cf02d2519
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/op-pdbg-host-control/vcs_workaround@.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Run VCS workaround on host%i
+Wants=obmc-host-start-pre@%i.target
+Before=obmc-host-start-pre@%i.target
+Wants=avsbus-enable@%i.service
+After=avsbus-enable@%i.service
+Conflicts=obmc-chassis-stop@%i.target
+
+[Service]
+ExecStart={bindir}/vcs_workaround.sh {MACHINE}
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=obmc-chassis-start@%i.target
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/p9-vcs-workaround.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/p9-vcs-workaround.bbappend
new file mode 100644
index 000000000..8e1072c3f
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/p9-vcs-workaround.bbappend
@@ -0,0 +1 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/op-pdbg-host-control:"
OpenPOWER on IntegriCloud