OSDN Git Service

drm/i915: Pin the ring high
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 May 2018 08:21:31 +0000 (09:21 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 May 2018 14:04:36 +0000 (15:04 +0100)
commit2edd4e698dc8a0c497a502c75561c87be0e8a9a6
tree29e1eedb1d2b6e99b30806a6fcab3432dffe7354
parenteb479f86397923cdb82dabae4ca33dc4fec18968
drm/i915: Pin the ring high

If we can use an unmappable ring, try to pin it out of the mappable
aperture. This simple layout preference is to try and keep the mappable
aperture reserved and available to handle GGTT mmapping requests from
userspace without causing evictions and GPU stalls.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180521082131.13744-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c