[Skiboot] [PATCH] opal-api: Reserve 2 OPAL API calls for future OpenCAPI LPC use

Andrew Donnellan andrew.donnellan at au1.ibm.com
Wed Oct 31 18:32:13 AEDT 2018

OpenCAPI Lowest Point of Coherency (LPC) memory is going to require
some extra OPAL calls to set up NPU BARs. These calls will most likely be
called OPAL_NPU_LPC_ALLOC and OPAL_NPU_LPC_RELEASE, we're not quite ready
to upstream that code yet though.

Reserve 171 and 172 for this purpose.

Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>


This applies on top of Rashmica's patch

Alastair: rashmica's patch means we'll need to increment the call numbers
in our internal branch again unfortunately
 include/opal-api.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/opal-api.h b/include/opal-api.h
index c24838d24e63..c793ca432782 100644
--- a/include/opal-api.h
+++ b/include/opal-api.h
@@ -227,7 +227,9 @@
 #define OPAL_CLEAR_CACHE			170
-#define OPAL_LAST				170
+#define OPAL_NPU_RESERVED1			171
+#define OPAL_NPU_RESERVED2			172
+#define OPAL_LAST				172
 #define QUIESCE_HOLD			1 /* Spin all calls at entry */
 #define QUIESCE_REJECT			2 /* Fail all calls with OPAL_BUSY */

More information about the Skiboot mailing list