From: Chris Wilson Date: Sat, 5 Sep 2009 17:07:06 +0000 (+0100) Subject: drm/i915: Pad ringbuffer with NOOPs before wrapping X-Git-Tag: v2.6.32-rc1~52^2~71^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ef82af7253c1929a3995f271b8b0db462d1a0c3;p=pandora-kernel.git drm/i915: Pad ringbuffer with NOOPs before wrapping According to the docs, the ringbuffer is not allowed to wrap in the middle of an instruction. G45 PRM, Vol 1b, p101: While the “free space” wrap may allow commands to be wrapped around the end of the Ring Buffer, the wrap should only occur between commands. Padding (with NOP) may be required to follow this restriction. Do as commanded. [Having seen bug reports where there is evidence of split commands, but apparently the GPU has continued on merrily before a bizarre and untimely death, this may or may not fix a few random hangs.] Signed-off-by: Chris Wilson CC: Eric Anholt Signed-off-by: Eric Anholt --- Reading git-diff-tree failed