aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/cxl/api.c
diff options
context:
space:
mode:
authorAlastair D'Silva <alastair@d-silva.org>2018-06-28 06:05:00 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2018-07-02 09:54:30 -0400
commitc5828150067c47a97f30e690a472e0548d3ac97d (patch)
tree0057a133e3b09a65fb4ced567170e8f689075198 /drivers/misc/cxl/api.c
parent7dea6f2f053599d90f7894216db0dd0bedeb3a1c (diff)
Revert "cxl: Add kernel API to allow a context to operate with relocate disabled"
Remove abandonned capi support for the Mellanox CX4. The symbol 'cxl_set_translation_mode' is never called, so ctx->real_mode is always false. This reverts commit 7a0d85d313c2066712e530e668bc02bb741a685c. 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 'drivers/misc/cxl/api.c')
-rw-r--r--drivers/misc/cxl/api.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/misc/cxl/api.c b/drivers/misc/cxl/api.c
index 753b1a698fc4..21d620e29fea 100644
--- a/drivers/misc/cxl/api.c
+++ b/drivers/misc/cxl/api.c
@@ -324,7 +324,6 @@ int cxl_start_context(struct cxl_context *ctx, u64 wed,
324 if (task) { 324 if (task) {
325 ctx->pid = get_task_pid(task, PIDTYPE_PID); 325 ctx->pid = get_task_pid(task, PIDTYPE_PID);
326 kernel = false; 326 kernel = false;
327 ctx->real_mode = false;
328 327
329 /* acquire a reference to the task's mm */ 328 /* acquire a reference to the task's mm */
330 ctx->mm = get_task_mm(current); 329 ctx->mm = get_task_mm(current);
@@ -388,24 +387,6 @@ void cxl_set_master(struct cxl_context *ctx)
388} 387}
389EXPORT_SYMBOL_GPL(cxl_set_master); 388EXPORT_SYMBOL_GPL(cxl_set_master);
390 389
391int cxl_set_translation_mode(struct cxl_context *ctx, bool real_mode)
392{
393 if (ctx->status == STARTED) {
394 /*
395 * We could potentially update the PE and issue an update LLCMD
396 * to support this, but it doesn't seem to have a good use case
397 * since it's trivial to just create a second kernel context
398 * with different translation modes, so until someone convinces
399 * me otherwise:
400 */
401 return -EBUSY;
402 }
403
404 ctx->real_mode = real_mode;
405 return 0;
406}
407EXPORT_SYMBOL_GPL(cxl_set_translation_mode);
408
409/* wrappers around afu_* file ops which are EXPORTED */ 390/* wrappers around afu_* file ops which are EXPORTED */
410int cxl_fd_open(struct inode *inode, struct file *file) 391int cxl_fd_open(struct inode *inode, struct file *file)
411{ 392{