Skip to content

Commit f534bc0

Browse files
committed
drm/i915: disallow gem init ioctl on ilk
Ums is already disabled, but on ilk we can additionally disable gem initialization when using user mode setting. Upstream never support ilk without kernel modesetting and not even the RHEL ilk ums backport needs gem - that driver is based on xf86-video-intel version 2.2, which is pre-gem. Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 26394d9 commit f534bc0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/i915/i915_gem.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ i915_gem_init_ioctl(struct drm_device *dev, void *data,
129129
(args->gtt_end | args->gtt_start) & (PAGE_SIZE - 1))
130130
return -EINVAL;
131131

132+
/* GEM with user mode setting was never supported on ilk and later. */
133+
if (INTEL_INFO(dev)->gen >= 5)
134+
return -ENODEV;
135+
132136
mutex_lock(&dev->struct_mutex);
133137
i915_gem_init_global_gtt(dev, args->gtt_start,
134138
args->gtt_end, args->gtt_end);

0 commit comments

Comments
 (0)