[Skiboot] [PATCH RFC 1/2] opal-prd: Add get_ipoll_events HBRT callback

Jeremy Kerr jk at ozlabs.org
Thu May 4 15:36:58 AEST 2017

This change adds a get_ipoll_events callback, allowing the opal-prd
wrapper to query the set of events to enable in the INIT message.

RFC only at this stage, as we need to sync with the HBRT implementation.

Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
CC: Daniel M Crowell <dcrowell at us.ibm.com>
CC: Zane Shelley <zshelle at us.ibm.com>
CC: Brian Stegmiller <bjs at us.ibm.com>
CC: William G Hoffa <wghoffa at us.ibm.com>

Dan, Zane, Brian, Bill: this is the added callback for allowing HBRT to
specify the IPOLL events that we enable. I've modified the OPAL header
file here, but we'll need to make the actual change in the "official"

 external/opal-prd/hostboot-interface.h | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/external/opal-prd/hostboot-interface.h b/external/opal-prd/hostboot-interface.h
index 3e73ef8..633d1a8 100644
--- a/external/opal-prd/hostboot-interface.h
+++ b/external/opal-prd/hostboot-interface.h
@@ -491,6 +491,21 @@ struct runtime_interfaces {
 	int (*run_command)(int argc, const char **argv, char **o_outString);
+	/**
+	 * @brief	Query the IPOLL event mask supported by HBRT
+	 *
+	 * @details	This call allows the wrapper application to query
+	 * the ipoll event mask to set when the HBRT instance is running. Bits
+	 * that are *set* in this bitmask represent events that will be
+	 * forwarded to the handle_attn() callback.
+	 *
+	 * If this callback is not provided, the value 0xf000000000000000 will
+	 * be assumed.
+	 *
+	 * @param[out]	the IPOLL event bits to enable during HBRT execution
+	 */
+	uint64_t (*get_ipoll_events)(void);
 	/* Reserve some space for future growth. */
-	void (*reserved[29])(void);
+	void (*reserved[28])(void);

More information about the Skiboot mailing list