drm/i915: Disallow any pinning when kms is enabled
Subsystems (2)
PATCH 1/1 drm/i915: Disallow any pinning when kms is enabled
So apparently userspace managed to get itself into a corner with tricky tricks and the kernel can't work around because the batch buffer ends up being pinned. For simplicity let's just take the toys away.
References: http://mid.gmane.org/[email protected]
Cc Chris Wilson <[email protected]>
Signed-off-by Daniel Vetter <[email protected]>
--- drivers/gpu/drm/i915/i915_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_gem.c +1 -1
@@ -4149,7 +4149,7 @@ i915_gem_pin_ioctl(struct drm_device *dev, void *data,struct drm_i915_gem_object *obj;int ret; -if (INTEL_INFO (dev)->gen >=6 ) +if (drm_core_check_feature (dev,DRIVER_MODESET ))return -ENODEV ; ret =i915_mutex_lock_interruptible (dev);
Signature · 1 line
2.0.1
Quoted 4 lines · Daniel Vetter
So apparently userspace managed to get itself into a corner with tricky tricks and the kernel can't work around because the batch buffer ends up being pinned. For simplicity let's just take the toys away.
No. Same nak as for the last pin_ioctl change. But I don't think you are listening.
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre