Skip to content

Commit

Permalink
opal-api: Reserve 2 OPAL API calls for future OpenCAPI LPC use
Browse files Browse the repository at this point in the history
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@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
ajdlinux authored and stewartsmith committed Apr 9, 2019
1 parent 4605048 commit 73cd109
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/opal-api.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2013-2018 IBM Corp.
/* Copyright 2013-2019 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -227,7 +227,9 @@
#define OPAL_NPU_SET_RELAXED_ORDER 168
#define OPAL_NPU_GET_RELAXED_ORDER 169
#define OPAL_XIVE_GET_VP_STATE 170 /* Get NVT state */
#define OPAL_LAST 170
#define OPAL_NPU_RESERVED1 171 /* LPC Allocate */
#define OPAL_NPU_RESERVED2 172 /* LPC Release */
#define OPAL_LAST 172

#define QUIESCE_HOLD 1 /* Spin all calls at entry */
#define QUIESCE_REJECT 2 /* Fail all calls with OPAL_BUSY */
Expand Down

0 comments on commit 73cd109

Please sign in to comment.