]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Permit contexts on all rings
authorBen Widawsky <ben@bwidawsk.net>
Fri, 6 Dec 2013 22:11:01 +0000 (14:11 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 14:27:53 +0000 (15:27 +0100)
commitf94b5b1a46c1c6041d1355e3b866e869f7ae403e
treed4fcbfc9f684991ee307fddc8d767e1637412d13
parentf1bf33e8f013f8000837f4b4e53ef70d2f35f72f
drm/i915: Permit contexts on all rings

If we want to use contexts in more abstract terms (specifically with
PPGTT in mind), we need to allow them to be specified for any ring.

Since the upcoming patches will bring about the use of multiple address
spaces, and each ring needs to have an address space programmed (which
we intend to do at context switch time), we can no longer only use RCS.

With multiple rings having a last context, we must now unreference these
contexts.

NOTE: This commit requires an update to intel-gpu-tools to make it not
fail.

v2: Rebased with some logical conflicts.
Squashed in the context fini refcount patch

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