diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2018-08-24 15:40:24 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2018-09-05 07:56:44 -0500 |
commit | 4bff76ae17a525ce3459361d72e09999e6b0a2d4 (patch) | |
tree | 94ef2aada6dcf01899b5126507c84dd498d7724d /src/include/runtime/interface.h | |
parent | e82098f4237a0f0fd6c00dc206b581d4d0d0156f (diff) | |
download | talos-hostboot-4bff76ae17a525ce3459361d72e09999e6b0a2d4.tar.gz talos-hostboot-4bff76ae17a525ce3459361d72e09999e6b0a2d4.zip |
Check capability bit before using wakeup for OPAL in OpenPOWER
A recent change switched out special wakeup handling over to use
the host interface instead of the internal HWP calls. However,
we just discovered that the opal-prd application was not allowing
those calls on non-FSP systems. The opal-prd code is being
updated, but since that is delivered as part of the Linux distro
(not firmware) we need to handle the situation where newer
Hostboot is running on top of the older opal-prd.
This commit adds a check for a new OPAL-specific capability bit
that will ensure we only use the wakeup interface if the opal-prd
hosting us supports it.
Change-Id: Ib9b99a4549a023d466572c19c2f7208e1c26d8f8
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/65208
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/runtime/interface.h')
-rw-r--r-- | src/include/runtime/interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/runtime/interface.h b/src/include/runtime/interface.h index de00eb271..21e596ab5 100644 --- a/src/include/runtime/interface.h +++ b/src/include/runtime/interface.h @@ -166,6 +166,7 @@ enum HbrtRcPiberr_t /* OPAL fixes */ #define HBRT_CAPS_SET1_OPAL 1 #define HBRT_CAPS_OPAL_HAS_XSCOM_RC (1ul << 0) +#define HBRT_CAPS_OPAL_HAS_WAKEUP (1ul << 1) /* PHYP fixes */ #define HBRT_CAPS_SET2_PHYP 2 |