aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-07-12 16:47:51 +0530
committerOliver O'Halloran <oohall@gmail.com>2019-08-15 17:53:39 +1000
commit166eda4e0aa886658280956b479a92bfc0d1c572 (patch)
tree7d66f055fdccc570f886dbc1b223481d010e7c16 /include
parent8d0c8ae579e2b9802546f4bfd9c757d630645600 (diff)
downloadskiboot-166eda4e0aa886658280956b479a92bfc0d1c572.zip
skiboot-166eda4e0aa886658280956b479a92bfc0d1c572.tar.gz
skiboot-166eda4e0aa886658280956b479a92bfc0d1c572.tar.bz2
SBE: Send OPAL relocated base address to SBE
OPAL relocates itself during boot. During memory preserving IPL hostboot needs to access relocated OPAL base address to get MDST, MDDT tables. Hence send relocated base address to SBE via 'stash MPIPL config' chip-op. During next IPL SBE will send stashed data to hostboot... so that hostboot can access these data. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> [oliver: rebased] Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbe-p9.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sbe-p9.h b/include/sbe-p9.h
index 779c799..768d1a5 100644
--- a/include/sbe-p9.h
+++ b/include/sbe-p9.h
@@ -146,6 +146,9 @@
#define CONTROL_TIMER_START 0x0001
#define CONTROL_TIMER_STOP 0x0002
+/* Stash MPIPL config */
+#define SBE_STASH_KEY_SKIBOOT_BASE 0x03
+
/* SBE message state */
enum p9_sbe_msg_state {
sbe_msg_unused = 0, /* Free */
@@ -224,4 +227,7 @@ extern bool p9_sbe_timer_ok(void);
/* Update SBE timer expiry */
extern void p9_sbe_update_timer_expiry(uint64_t new_target);
+/* Send skiboot relocated base address to SBE */
+extern void p9_sbe_send_relocated_base(uint64_t reloc_base);
+
#endif /* __SBE_P9_H */