From 7b9294f17f1cea3a3f58b29ddaf0c383c7551a1e Mon Sep 17 00:00:00 2001 From: Lei YU Date: Thu, 29 Dec 2016 11:33:53 +0800 Subject: 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 --- .../host/op-pdbg-host-control/vcs_workaround@.service | 15 +++++++++++++++ .../recipes-phosphor/host/p9-vcs-workaround.bbappend | 1 + 2 files changed, 16 insertions(+) create mode 100644 meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/op-pdbg-host-control/vcs_workaround@.service create mode 100644 meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/p9-vcs-workaround.bbappend (limited to 'meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus') 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:" -- cgit v1.2.1