aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2014-11-14 13:25:49 +1030
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-11-14 16:07:44 +1100
commit7185393df6d7d806811b827fabce1d8ad3e05fff (patch)
treea65d4a665b1871780d9a7c4a22e576b38c0b8fd5 /platforms
parentf70a248f0bf8a77c988d5ba64a1b3cbd11ef3de7 (diff)
downloadskiboot-7185393df6d7d806811b827fabce1d8ad3e05fff.zip
skiboot-7185393df6d7d806811b827fabce1d8ad3e05fff.tar.gz
skiboot-7185393df6d7d806811b827fabce1d8ad3e05fff.tar.bz2
platforms/astbmc: Temporary reboot workaround
The BMC does not currently support the IPMI_RESET (03h) chassis power control command. In order to have reboot working in the interim, send a POWER_CYCLE (02h) instead. This should be reverted once the BMC has support for 03h to ensure we follow the specification. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/astbmc/common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index 250459a..0658543 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -73,7 +73,9 @@ int64_t astbmc_ipmi_power_down(uint64_t request)
int64_t astbmc_ipmi_reboot(void)
{
- return ipmi_chassis_control(IPMI_CHASSIS_HARD_RESET);
+ /* TODO: we should send a IPMI_CHASSIS_HARD_RESET, but the BMC
+ * doesn't respond to this command yet */
+ return ipmi_chassis_control(IPMI_CHASSIS_PWR_CYCLE);
}
static void astbmc_fixup_dt_bt(struct dt_node *lpc)