From: Chris Wilson Date: Mon, 26 Mar 2012 08:10:27 +0000 (+0200) Subject: drm/i915: Avoid using mappable space for relocation processing through the CPU X-Git-Tag: v3.5-rc1~83^2~140^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dabdfe021ab1e985e6566009c774fb03f14b568e;p=pandora-kernel.git drm/i915: Avoid using mappable space for relocation processing through the CPU We try to avoid writing the relocations through the uncached GTT, if the buffer is currently in the CPU write domain and so will be flushed out to main memory afterwards anyway. Also on SandyBridge we can safely write to the pages in cacheable memory, so long as the buffer is LLC mapped. In either of these cases, we therefore do not need to force the reallocation of the buffer into the mappable region of the GTT, reducing the aperture pressure. Signed-off-by: Chris Wilson Reviewed-by: Daniel Vetter Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed