|
@@ -184,6 +184,8 @@ static long afu_ioctl_start_work(struct cxl_context *ctx,
|
|
|
if (work.flags & CXL_START_WORK_AMR)
|
|
if (work.flags & CXL_START_WORK_AMR)
|
|
|
amr = work.amr & mfspr(SPRN_UAMOR);
|
|
amr = work.amr & mfspr(SPRN_UAMOR);
|
|
|
|
|
|
|
|
|
|
+ ctx->mmio_err_ff = !!(work.flags & CXL_START_WORK_ERR_FF);
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
* We grab the PID here and not in the file open to allow for the case
|
|
* We grab the PID here and not in the file open to allow for the case
|
|
|
* where a process (master, some daemon, etc) has opened the chardev on
|
|
* where a process (master, some daemon, etc) has opened the chardev on
|
|
@@ -538,7 +540,7 @@ int __init cxl_file_init(void)
|
|
|
* If these change we really need to update API. Either change some
|
|
* If these change we really need to update API. Either change some
|
|
|
* flags or update API version number CXL_API_VERSION.
|
|
* flags or update API version number CXL_API_VERSION.
|
|
|
*/
|
|
*/
|
|
|
- BUILD_BUG_ON(CXL_API_VERSION != 1);
|
|
|
|
|
|
|
+ BUILD_BUG_ON(CXL_API_VERSION != 2);
|
|
|
BUILD_BUG_ON(sizeof(struct cxl_ioctl_start_work) != 64);
|
|
BUILD_BUG_ON(sizeof(struct cxl_ioctl_start_work) != 64);
|
|
|
BUILD_BUG_ON(sizeof(struct cxl_event_header) != 8);
|
|
BUILD_BUG_ON(sizeof(struct cxl_event_header) != 8);
|
|
|
BUILD_BUG_ON(sizeof(struct cxl_event_afu_interrupt) != 8);
|
|
BUILD_BUG_ON(sizeof(struct cxl_event_afu_interrupt) != 8);
|