drm/i915: refuse to load on gen6+ without kms
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 26 Mar 2012 19:33:18 +0000 (21:33 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 9 Apr 2012 16:04:07 +0000 (18:04 +0200)
commit26394d9251879231b85e6c8cf899fa43e75c68f1
treebedc4bc58e05b38bb0a0bc38e40ac46cba3cd1ef
parente7b4c6b122443254bc7cab0f17fd67871dbe0a19
drm/i915: refuse to load on gen6+ without kms

Spurred by an irc discussion, let's start to clear up which parts of
our kms + ums/gem + ums/dri1 + vbios/dri1 kernel driver pieces
userspace in the wild actually uses.

The idea is that we introduce checks at entry-points (module load
time, ioctls, ...) first and then reap any obviously dead code in a
second step.

As a first step refuse to load without kms on chips where userspace
never supported ums. Now upstream hasn't supported ums on ilk, ever.
But RHEL had the great idea to backport the kms support to their ums
driver.

Cc: Dave Airlie <airlied@gmail.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c