mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
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
This commit is contained in:
parent
eb479f8639
commit
2edd4e698d
@ -1034,6 +1034,8 @@ int intel_ring_pin(struct intel_ring *ring,
|
||||
flags |= PIN_OFFSET_BIAS | offset_bias;
|
||||
if (vma->obj->stolen)
|
||||
flags |= PIN_MAPPABLE;
|
||||
else
|
||||
flags |= PIN_HIGH;
|
||||
|
||||
if (!(vma->flags & I915_VMA_GLOBAL_BIND)) {
|
||||
if (flags & PIN_MAPPABLE || map == I915_MAP_WC)
|
||||
|
Loading…
Reference in New Issue
Block a user