]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Allow the GPU to cache stolen memory
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Aug 2013 13:41:06 +0000 (14:41 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 10 Aug 2013 09:24:18 +0000 (11:24 +0200)
commitb58f8be8b44b2c3773f85dab1b85195940f0d9fc
tree108839c739064c74491f993148a9049b59309676
parent0fe184e18fab19c2a9b756aaa1d6f0e3d973b8a6
drm/i915: Allow the GPU to cache stolen memory

As a corollary to reviewing the interaction between LLC and our cache
domains, the GPU PTE bits are independent of the CPU PAT bits. As such
we can set the cache level on stolen memory based on how we wish the GPU
to cache accesses to it. So we are free to set the same default cache
levels as for normal bo, i.e. enable LLC cacheing by default where
appropriate.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_stolen.c