]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: don't clflush gem objects in stolen memory
authorImre Deak <imre.deak@intel.com>
Wed, 13 Feb 2013 19:56:05 +0000 (21:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 19 Feb 2013 23:21:43 +0000 (00:21 +0100)
commit159b695e4124a32068814e184abdf80c39c7f857
tree4169bb20e669a36af5c51f80168551aa8da7d669
parent1415a01f85f022d3430f68959df99e8f594807fe
drm/i915: don't clflush gem objects in stolen memory

As explained by Chris Wilson gem objects in stolen memory are always
coherent with the GPU so we don't need to ever flush the CPU caches for
these.

This fixes a breakage - at least with the compact sg patches applied -
during the resume/restore gtt mappings path, when we tried to clflush an
FB object in stolen memory, but since stolen objects don't have backing
pages we passed an invalid page pointer to drm_clflush_page().

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c