[Skiboot] [PATCH 14/16] [PATCH 14/16] opencapi5: add opal functions
Christophe Lombard
clombard at linux.vnet.ibm.com
Wed Aug 25 19:14:38 AEST 2021
Le 24/08/2021 à 04:25, Stewart Smith a écrit :
> 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/
> _______________________________________________
> Skiboot mailing list
> Skiboot at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/skiboot
right. Thanks.
More information about the Skiboot
mailing list