summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-12-18 10:52:45 +1030
committerStewart Smith <stewart@linux.ibm.com>2019-01-18 16:36:54 +1100
commitbd9839684d482417e8c60449592f4308e9a91dac (patch)
treea4835171335c323ff228b837079fa7e84f02d211 /hw
parentec65b9ab4c4c3cea80849a071615dd9def629201 (diff)
downloadblackbird-skiboot-bd9839684d482417e8c60449592f4308e9a91dac.tar.gz
blackbird-skiboot-bd9839684d482417e8c60449592f4308e9a91dac.zip
astbmc: Try IPMI HIOMAP for P8
The HIOMAP protocol was developed after the release of P8 in preparation for P9. As a consequence P9 always uses it, but it has rarely been enabled for P8. P8DTU has recently added IPMI HIOMAP support to its BMC firmware, so enable its use in skiboot with P8 machines. Doing so requires some rework to ensure fallback works correctly as in the past the fallback was to mbox, which will only work for P9. Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/ast-bmc/ast-io.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/ast-bmc/ast-io.c b/hw/ast-bmc/ast-io.c
index 38ca86c4..11cc084c 100644
--- a/hw/ast-bmc/ast-io.c
+++ b/hw/ast-bmc/ast-io.c
@@ -360,7 +360,12 @@ bool ast_io_init(void)
return ast_io_is_rw();
}
-bool ast_lpc_fw_needs_hiomap(void)
+bool ast_lpc_fw_ipmi_hiomap(void)
+{
+ return platform.bmc->sw->ipmi_oem_hiomap_cmd != 0;
+}
+
+bool ast_lpc_fw_mbox_hiomap(void)
{
struct dt_node *n;
OpenPOWER on IntegriCloud