]> 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)
commit3cdc958daf9ec68d6a8e597518f46ec86a0cfa69
tree94004dd820937068e9a7e00eae37df09cd994bfd
parent13295f0b5eca0f2416827138253e661c0bc4e9cd
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