mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
powerpc/powernv: Add opal calls for opencapi
Add opal calls to interact with the NPU: OPAL_NPU_SPA_SETUP: set the Shared Process Area (SPA) The SPA is a table containing one entry (Process Element) per memory context which can be accessed by the opencapi device. OPAL_NPU_SPA_CLEAR_CACHE: clear the context cache The NPU keeps a cache of recently accessed memory contexts. When a Process Element is removed from the SPA, the cache for the link must be cleared. OPAL_NPU_TL_SET: configure the Transaction Layer The Transaction Layer specification defines several templates for messages to be exchanged on the link. During link setup, the host and device must negotiate what templates are supported on both sides and at what rates those messages can be sent. Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
228c2f4103
commit
74d656d219
3 changed files with 13 additions and 1 deletions
|
@ -201,7 +201,10 @@
|
|||
#define OPAL_SET_POWER_SHIFT_RATIO 155
|
||||
#define OPAL_SENSOR_GROUP_CLEAR 156
|
||||
#define OPAL_PCI_SET_P2P 157
|
||||
#define OPAL_LAST 157
|
||||
#define OPAL_NPU_SPA_SETUP 159
|
||||
#define OPAL_NPU_SPA_CLEAR_CACHE 160
|
||||
#define OPAL_NPU_TL_SET 161
|
||||
#define OPAL_LAST 161
|
||||
|
||||
/* Device tree flags */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue