projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c60fef
)
drm/i915: Reject the pin ioctl on gen6+
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 15:30:22 +0000
(16:30 +0100)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 15:30:22 +0000
(16:30 +0100)
Especially with ppgtt this kinda stopped making sense. And if we
indeed need this to hack around an issue, we need something that also
works for non-root.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem.c
b/drivers/gpu/drm/i915/i915_gem.c
index f3b0025998db1310580f39df245253c384a8b115..9ff3509657530b175198d359b9e2e0c10d19f395 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem.c
+++ b/
drivers/gpu/drm/i915/i915_gem.c
@@
-3916,6
+3916,9
@@
i915_gem_pin_ioctl(struct drm_device *dev, void *data,
struct drm_i915_gem_object *obj;
int ret;
+ if (INTEL_INFO(dev)->gen >= 6)
+ return -ENODEV;
+
ret = i915_mutex_lock_interruptible(dev);
if (ret)
return ret;