From: Daniel Vetter Date: Mon, 26 Mar 2012 07:45:42 +0000 (+0200) Subject: drm/i915: clear the entire gtt when using gem X-Git-Tag: v3.5-rc1~83^2~140^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1dd20a96524ac462ed4f28dae168b9637f079e5;p=pandora-kernel.git drm/i915: clear the entire gtt when using gem We've lost our guard page somewhere in the gtt rewrite, this patch here will restore it. Exercised by i-g-t/tests/gem_cs_prefetch. v2: Substract the guard page from the range we're supposed to manage with gem. Suggested by Chris Wilson to increase the odds of old ums + gem userspace not blowing up. To compensate for the loss of a page, don't substract the guard page in the modeset init code any longer. Tested-by: Chris Wilson Reviewed-by: Chris Wilson Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44748 Signed-Off-by: Daniel Vetter --- Reading git-diff-tree failed