summaryrefslogtreecommitdiffstats
path: root/meta-phosphor
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-02-01 16:25:56 -0600
committerPatrick Williams <patrick@stwcx.xyz>2017-02-02 03:19:31 +0000
commitbfd622e4a8405950dacb87eb45dc1bef04c97ab9 (patch)
treeb958736e2d40b9f59d26f0077a038b457bb00878 /meta-phosphor
parent42a851a2303efc3b524d5ac940ef5e96fb2fa8e4 (diff)
downloadtalos-openbmc-bfd622e4a8405950dacb87eb45dc1bef04c97ab9.tar.gz
talos-openbmc-bfd622e4a8405950dacb87eb45dc1bef04c97ab9.zip
openpower-p9: Add delay in a reboot so mbox-reload can run
A quick fix to ensure that mbox-reload.service has a chance to run after the power off and before the power on during a reboot. An upcoming refactoring will remove the need for this patch. Change-Id: Ieee0573e9bd4dec518361da9244d95a27357abd3 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'meta-phosphor')
-rw-r--r--meta-phosphor/common/recipes-phosphor/chassis/files/skeleton-0001-Quick-fix-to-ensure-we-run-mbx-workaround-on-reboots.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/chassis/files/skeleton-0001-Quick-fix-to-ensure-we-run-mbx-workaround-on-reboots.patch b/meta-phosphor/common/recipes-phosphor/chassis/files/skeleton-0001-Quick-fix-to-ensure-we-run-mbx-workaround-on-reboots.patch
new file mode 100644
index 000000000..b300234aa
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/chassis/files/skeleton-0001-Quick-fix-to-ensure-we-run-mbx-workaround-on-reboots.patch
@@ -0,0 +1,39 @@
+From 15d14532aa66108716d5ffb6bd8222277f9451ab Mon Sep 17 00:00:00 2001
+From: Andrew Geissler <andrewg@us.ibm.com>
+Date: Fri, 27 Jan 2017 16:29:28 -0600
+Subject: [PATCH] Quick fix to ensure we run mbx workaround on reboots
+
+See openbmc/openbmc#1045 for more details
+
+Change-Id: I55ce69a7cb05bc4274bc4af70cee5d387492f76e
+Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
+---
+ chassis_control.py | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/chassis_control.py b/chassis_control.py
+index 3637d82..eae7875 100644
+--- a/chassis_control.py
++++ b/chassis_control.py
+@@ -4,6 +4,7 @@ import gobject
+ import dbus
+ import dbus.service
+ import dbus.mainloop.glib
++import time
+ from obmc.dbuslib.bindings import get_dbus, DbusProperties, DbusObjectManager
+
+ DBUS_NAME = 'org.openbmc.control.Chassis'
+@@ -181,6 +182,10 @@ class ChassisControlObject(DbusProperties, DbusObjectManager):
+
+ if (state_name == "HOST_POWERED_OFF" and self.Get(DBUS_NAME,
+ "reboot") == 1):
++ # TODO - Hack to give time for mbx to reload during
++ # power off phase of a reboot
++ print "Sleeping to give mbx time to reload"
++ time.sleep(10)
+ self.powerOn()
+
+ def power_button_signal_handler(self):
+--
+2.11.0
+
OpenPOWER on IntegriCloud