From: Arun Siluvery Date: Fri, 19 Jun 2015 17:37:11 +0000 (+0100) Subject: drm/i915/gen8: Re-order init pipe_control in lrc mode X-Git-Tag: omap-for-v4.3/fixes-rc1~89^2~36^2~236 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4db7599194248214b343d1ef1a1bc53d6cff187;p=pandora-kernel.git drm/i915/gen8: Re-order init pipe_control in lrc mode Some of the WA applied using WA batch buffers perform writes to scratch page. In the current flow WA are initialized before scratch obj is allocated. This patch reorders intel_init_pipe_control() to have a valid scratch obj before we initialize WA. v2: Check for valid scratch page before initializing WA as some of them perform writes to it. Cc: Chris Wilson Cc: Dave Gordon Signed-off-by: Michel Thierry Signed-off-by: Arun Siluvery Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed