]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only switch to default context when evicting from GGTT
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Jun 2016 13:55:58 +0000 (14:55 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Jun 2016 14:03:32 +0000 (15:03 +0100)
commitb1908a33f008932d7bbd627d1e2552eeb461131b
tree94004dd820937068e9a7e00eae37df09cd994bfd
parentc2b6c04f7f2ce2ddbc27a9039008a7438b59f53f
drm/i915: Only switch to default context when evicting from GGTT

The contexts only pin space within the global GTT. Therefore forcing the
switch to the perma-pinned kernel context only has an effect when trying
to evict from and find room within the global GTT. We can then restrict
the switch to only when operating on the default context. This is mostly
a no-op as full-ppgtt only exists with execlists at present which skips
the context switch anyway.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466776558-21516-7-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_evict.c