cxl: Add support for ASB_Notify on POWER9
The POWER9 core supports a new feature: ASB_Notify which requires the support of the Special Purpose Register: TIDR. The ASB_Notify command, generated by the AFU, will attempt to wake-up the host thread identified by the particular LPID:PID:TID. This patch assign a unique TIDR (thread id) for the current thread which will be used in the process element entry. Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com> Reviewed-by: Philippe Bergheaud <felix@linux.vnet.ibm.com> Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Reviewed-by: Vaibhav Jain <vaibhav@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:
committed by
Michael Ellerman
parent
074db39e00
commit
b1db551324
@@ -20,20 +20,22 @@ struct cxl_ioctl_start_work {
|
||||
__u64 work_element_descriptor;
|
||||
__u64 amr;
|
||||
__s16 num_interrupts;
|
||||
__s16 reserved1;
|
||||
__s32 reserved2;
|
||||
__u16 tid;
|
||||
__s32 reserved1;
|
||||
__u64 reserved2;
|
||||
__u64 reserved3;
|
||||
__u64 reserved4;
|
||||
__u64 reserved5;
|
||||
__u64 reserved6;
|
||||
};
|
||||
|
||||
#define CXL_START_WORK_AMR 0x0000000000000001ULL
|
||||
#define CXL_START_WORK_NUM_IRQS 0x0000000000000002ULL
|
||||
#define CXL_START_WORK_ERR_FF 0x0000000000000004ULL
|
||||
#define CXL_START_WORK_TID 0x0000000000000008ULL
|
||||
#define CXL_START_WORK_ALL (CXL_START_WORK_AMR |\
|
||||
CXL_START_WORK_NUM_IRQS |\
|
||||
CXL_START_WORK_ERR_FF)
|
||||
CXL_START_WORK_ERR_FF |\
|
||||
CXL_START_WORK_TID)
|
||||
|
||||
|
||||
/* Possible modes that an afu can be in */
|
||||
|
||||
Reference in New Issue
Block a user