[Skiboot] [PATCH 14/16] [PATCH 14/16] opencapi5: add opal functions
Stewart Smith
stewart at flamingspork.com
Tue Aug 24 12:25:08 AEST 2021
On Fri, Aug 20, 2021, at 2:45 AM, Christophe Lombard wrote:
> Add three OPAL API calls that are required by the ocxl driver.
>
> - OPAL_PAU_SPA_SETUP
>
> The Shared Process Area (SPA) is a table containing one entry (a
> "Process Element") per memory context which can be accessed by the
> OpenCAPI device.
>
> - OPAL_PAU_SPA_CLEAR_CACHE
>
> The PAU 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_PAU_TL_SET
>
> 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: Christophe Lombard <clombard at linux.vnet.ibm.com>
> ---
> hw/npu-opal.c | 8 +++
> hw/pau.c | 159 +++++++++++++++++++++++++++++++++++++++++++++
> include/pau-regs.h | 13 ++++
> include/pau.h | 9 +++
> 4 files changed, 189 insertions(+)
Probably want to add some documentation on the OPAL calls in doc/opal-api/
More information about the Skiboot
mailing list