aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/cxl/guest.c
diff options
context:
space:
mode:
authorAlastair D'Silva <alastair@d-silva.org>2018-06-28 12:05:00 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-07-02 23:54:30 +1000
commitc5828150067c47a97f30e690a472e0548d3ac97d (patch)
tree0057a133e3b09a65fb4ced567170e8f689075198 /drivers/misc/cxl/guest.c
parentpowerpc/powernv/memtrace: Remove memtrace mmap() (diff)
downloadlinux-dev-c5828150067c47a97f30e690a472e0548d3ac97d.tar.xz
linux-dev-c5828150067c47a97f30e690a472e0548d3ac97d.zip
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/guest.c')
-rw-r--r--drivers/misc/cxl/guest.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/misc/cxl/guest.c b/drivers/misc/cxl/guest.c
index 4644f16606a3..f5dc740fcd13 100644
--- a/drivers/misc/cxl/guest.c
+++ b/drivers/misc/cxl/guest.c
@@ -623,9 +623,6 @@ static int guest_attach_process(struct cxl_context *ctx, bool kernel, u64 wed, u
{
pr_devel("in %s\n", __func__);
- if (ctx->real_mode)
- return -EPERM;
-
ctx->kernel = kernel;
if (ctx->afu->current_mode == CXL_MODE_DIRECTED)
return attach_afu_directed(ctx, wed, amr);