]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Always pin contexts into the high GGTT
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Feb 2017 10:14:22 +0000 (10:14 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Feb 2017 13:58:40 +0000 (13:58 +0000)
commit50da77895b4f8e130a99ec4834d25239a06b5aec
treed7217333ecd718259f330c341c8cec3cf705cda5
parentbf551de0a4835e499c4e0b15fce5cc3b9c5377c3
drm/i915: Always pin contexts into the high GGTT

Now that we have fast top-down insertion into the drm_mm, we can use it
for frequent runtime operations like insertion of the context object,
whereas before we limited it to the one-off insertion of the pinned
kernel context. Keeping the active context objects out of the mappable
region of the global GTT (except under memory pressure) improves our
ability to allocate mappable aperture region without triggering a GPU
stall.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170210101422.1598-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c