drm/i915: Don't allow objects to get bound while VT switched.
authorEric Anholt <eric@anholt.net>
Wed, 24 Dec 2008 02:42:32 +0000 (18:42 -0800)
committerDave Airlie <airlied@linux.ie>
Wed, 7 Jan 2009 01:49:39 +0000 (11:49 +1000)
commit9bb2d6f94aeb9a185d69aedbd19421b6da4e3309
treeaddc6ecaa172ccfca9273a94567a6e35248acece
parentc861ea2cb2c25c1698734d9b0540a09e253690a1
drm/i915: Don't allow objects to get bound while VT switched.

This avoids a BUG_ON in the enter_vt path due to objects being in the GTT
when we shouldn't have ever let them be (as we're not supposed to touch the
device during that time).

This was triggered by a change in the 2D driver to use the GTT mapping of
objects after pinning them to improve software fallback performance.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/i915/i915_gem.c