Panthor currently does not allow exporting BOs with an exclusive VM. However, VDRM (native context) drivers export BOs for import by the guest VM, which does not attempt to bind them to any GPU VM.
Allow these BOs to be exported and rely on panthor_vm_prepare_map_op_ctx() to reject attempts to bind them to a different GPU VM. Signed-off-by: Igor Torrente <[email protected]> --- drivers/gpu/drm/panthor/panthor_gem.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/panthor/panthor_gem.c b/drivers/gpu/drm/panthor/panthor_gem.c index 22b57ab6f929..7d028c773bee 100644 --- a/drivers/gpu/drm/panthor/panthor_gem.c +++ b/drivers/gpu/drm/panthor/panthor_gem.c @@ -573,10 +573,6 @@ panthor_gem_prime_export(struct drm_gem_object *obj, int flags) .resv = obj->resv, }; - /* We can't export GEMs that have an exclusive VM. */ - if (to_panthor_bo(obj)->exclusive_vm_root_gem) - return ERR_PTR(-EINVAL); - return drm_gem_dmabuf_export(dev, &exp_info); } -- 2.55.0
