From: Chris Wilson Date: Tue, 13 Jan 2015 13:32:52 +0000 (+0000) Subject: drm/i915: Performed deferred clflush inside set-cache-level X-Git-Tag: fixes-v4.0-rc1~91^2~8^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f71979ab7fbd0c71c41c2798de3d33937915434;p=pandora-kernel.git drm/i915: Performed deferred clflush inside set-cache-level Currently we are hitting the WARN inside i915_gem_object_set_cache_level() as we can now have an unbound object in the GTT write domain (due to 43566dedde54f9 "drm/i915: Broaden application of set-domain(GTT)"). To avoid the warning, we need to track when we elided the clflush on a cacheable object and then evict the cache for the object when we move the object out of a cacheable domain. Reported-by: Jani Nikula Signed-off-by: Chris Wilson Cc: Jani Nikula Cc: Ville Syrjälä Tested-by: Jani Nikula Testcase: igt/gem_mmap_wc/set-cache-level Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88607 Tested-by: huax.lu@intel.com [danvet: Split if into nested if as discussion on the m-l.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed