]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Create a per file_priv default context
authorBen Widawsky <ben@bwidawsk.net>
Fri, 6 Dec 2013 22:11:19 +0000 (14:11 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 14:44:29 +0000 (15:44 +0100)
commit28187f1a2b2c88e95082de6a9b20fb876e387b57
tree1e5b43070fa58b0cef12007e6e5897761e09e04a
parent5121fc04129788f8848f3af52b6c43a0bc2c271a
drm/i915: Create a per file_priv default context

Every file will get it's own context, and we use this context instead of
the default context. The default context still exists for future
shrinker usage as well as reset handling.

v2: Updated to address Mika's recent context guilty changes
Some more changes around this come up in later patches as well.

v3: Use a fake context to avoid allocation for the !HAS_HW_CONTEXT case.
I've tried the alternatives. This looks the best to me.
Removed hangstat stuff from v2 - for a separate patch
Demote failed PPGTT set to DRM_DEBUG_DRIVER since it can now be invoked
easily from userspace.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c