]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 Mar 2009 21:55:32 +0000 (14:55 -0700)
commitb585daad36aff9d1c69c86e9e5c47252d47658da
treee63a3c5aee06c80046b3159cb70deb17d39abe00
parentdad40cc5910c2f211c2e9fcbbd27933cc1d491e6
drm/i915: Don't allow objects to get bound while VT switched.

commit 9bb2d6f94aeb9a185d69aedbd19421b6da4e3309 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_gem.c