]> git.karo-electronics.de Git - linux-beck.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)
commit883445d43e45ddc5ef19274a169a1aa603428ab6
tree94004dd820937068e9a7e00eae37df09cd994bfd
parent6e5a5beb8e344b1ab929de0c8446a61a70ed94ba
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