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

Andrew Donnellan andrew.donnellan at au1.ibm.com
Wed Mar 20 15:16:36 AEDT 2019


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>

---

v1->v2:
- rebase on mainline
- add explanatory comment

The LPC allocator code is coming once I get a chance to work on it
again after finishing my current OpenCAPI work. We have a trivial allocator
that we've been using internally for testing, and Alastair wants to start
getting the kernel side of this ready.
---
 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 73f86f9a5ccf..acf05746f01f 100644
--- a/include/opal-api.h
+++ b/include/opal-api.h
@@ -226,7 +226,9 @@
 #define OPAL_NX_COPROC_INIT			167
 #define OPAL_NPU_SET_RELAXED_ORDER		168
 #define OPAL_NPU_GET_RELAXED_ORDER		169
-#define OPAL_LAST				169
+#define OPAL_NPU_RESERVED1			170  /* LPC Allocate */
+#define OPAL_NPU_RESERVED2			171  /* LPC Release */
+#define OPAL_LAST				171
 
 #define QUIESCE_HOLD			1 /* Spin all calls at entry */
 #define QUIESCE_REJECT			2 /* Fail all calls with OPAL_BUSY */
-- 
2.11.0



More information about the Skiboot mailing list