]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Allow the user to set bo into the DISPLAY cache domain
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Aug 2013 13:41:11 +0000 (14:41 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 12 Aug 2013 16:54:00 +0000 (18:54 +0200)
commitb8a1868b10bb4fe7fb7d283da5d56064b1a189f4
tree434c4d58819fe4c77fcc1e56c8572f2302fce1f9
parent51f00ee44cc819b329fb31386125a1c96ee453a9
drm/i915: Allow the user to set bo into the DISPLAY cache domain

This is primarily for the benefit of the create2 ioctl so that the
caller can avoid the later step of rebinding the bo with new PTE bits.
After introducing WT (and possibly GFDT) cacheing for display targets,
not everything in the display is earmarked as UC, and more importantly
what is is controlled by the kernel.

Note that set_cache_level/get_cache_level for DISPLAY is not necessarily
idempotent; get_cache_level may return UC for architectures that have no
special cache domain for the display engine.

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.c