summaryrefslogtreecommitdiffstats
path: root/include/misc
diff options
context:
space:
mode:
authorAlastair D'Silva <alastair@d-silva.org>2018-05-11 02:13:01 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2018-06-03 06:40:32 -0400
commite948e06fc63a1c1e36ec4c8e5c510b881ff19c26 (patch)
tree59a49968a3211c2708b135d6c79f97af3c9b2cb1 /include/misc
parent19df39581ce99eb1fcfb119945810c9c5bc3f8d4 (diff)
ocxl: Expose the thread_id needed for wait on POWER9
In order to successfully issue as_notify, an AFU needs to know the TID to notify, which in turn means that this information should be available in userspace so it can be communicated to the AFU. Signed-off-by: Alastair D'Silva <alastair@d-silva.org> Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'include/misc')
-rw-r--r--include/misc/ocxl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/misc/ocxl.h b/include/misc/ocxl.h
index 51ccf76db293..9ff6ddc28e22 100644
--- a/include/misc/ocxl.h
+++ b/include/misc/ocxl.h
@@ -188,6 +188,15 @@ extern int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr,
188 void (*xsl_err_cb)(void *data, u64 addr, u64 dsisr), 188 void (*xsl_err_cb)(void *data, u64 addr, u64 dsisr),
189 void *xsl_err_data); 189 void *xsl_err_data);
190 190
191/**
192 * Update values within a Process Element
193 *
194 * link_handle: the link handle associated with the process element
195 * pasid: the PASID for the AFU context
196 * tid: the new thread id for the process element
197 */
198extern int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid);
199
191/* 200/*
192 * Remove a Process Element from the Shared Process Area for a link 201 * Remove a Process Element from the Shared Process Area for a link
193 */ 202 */