summaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2018-11-13 10:58:54 +0530
committerStewart Smith <stewart@linux.ibm.com>2018-12-11 22:37:41 -0600
commit05dc67bf4f3d85fc6212d1644d46ce6d8bd71140 (patch)
tree5892320e08427be42e67a33379d1bfd10e0cd42a /external
parentf12bdee4d0b1409533a3c0dd12d867ad4acae8b7 (diff)
downloadblackbird-skiboot-05dc67bf4f3d85fc6212d1644d46ce6d8bd71140.tar.gz
blackbird-skiboot-05dc67bf4f3d85fc6212d1644d46ce6d8bd71140.zip
opal-prd: hservice: Enable hservice->wakeup() in BMC
This patch enables HBRT to use HYP special wakeup register in openBMC which until now was only used in FSP based machines. This patch also adds a capability check for opal-prd so that HBRT can decide if the host special wakeup register can be used. Fixes: 49999302251b("opal-prd: Add support for runtime OCC reset in ZZ") Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'external')
-rw-r--r--external/opal-prd/hostboot-interface.h1
-rw-r--r--external/opal-prd/opal-prd.c6
2 files changed, 3 insertions, 4 deletions
diff --git a/external/opal-prd/hostboot-interface.h b/external/opal-prd/hostboot-interface.h
index 41ffcbcb..9df68882 100644
--- a/external/opal-prd/hostboot-interface.h
+++ b/external/opal-prd/hostboot-interface.h
@@ -59,6 +59,7 @@ enum MemoryError_t
* Previous implementations may have incorrectly ignored failures.
*/
#define HBRT_CAPS_OPAL_HAS_XSCOM_RC (1ul << 0)
+#define HBRT_CAPS_OPAL_HAS_WAKEUP_SUPPORT (1ul << 1)
/**
* Load types for the load_pm_complex() interface
diff --git a/external/opal-prd/opal-prd.c b/external/opal-prd/opal-prd.c
index e3b4439c..1452a17f 100644
--- a/external/opal-prd/opal-prd.c
+++ b/external/opal-prd/opal-prd.c
@@ -747,7 +747,8 @@ int hservice_memory_error(uint64_t i_start_addr, uint64_t i_endAddr,
uint64_t hservice_get_interface_capabilities(uint64_t set)
{
if (set == HBRT_CAPS_SET1_OPAL)
- return HBRT_CAPS_OPAL_HAS_XSCOM_RC;
+ return HBRT_CAPS_OPAL_HAS_XSCOM_RC ||
+ HBRT_CAPS_OPAL_HAS_WAKEUP_SUPPORT;
return 0;
}
@@ -2196,9 +2197,6 @@ static int run_prd_daemon(struct opal_prd_ctx *ctx)
hinterface.pnor_write = NULL;
}
- if (!is_fsp_system())
- hinterface.wakeup = NULL;
-
ipmi_init(ctx);
pr_debug("HBRT: calling hservices_init");
OpenPOWER on IntegriCloud