]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/i915: Use page coloring to provide the guard page at the end of the GTT
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Feb 2017 08:45:47 +0000 (08:45 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Feb 2017 13:46:40 +0000 (13:46 +0000)
commita6508ded2a6601fea903185034adc3622d94da0b
treea5820c98e76ee2ae89fb025bce15ca574349e66d
parent47db922fa1c8498c61cbcae4e5faba84713cae70
drm/i915: Use page coloring to provide the guard page at the end of the GTT

As we now mark the reserved hole (drm_mm.head_node) with the special
UNEVICTABLE color, we can use the page coloring to avoid prefetching of
the CS beyond the end of the GTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170206084547.27921-3-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/i915_gem_evict.c
drivers/gpu/drm/i915/i915_gem_gtt.c