From: McAulay, Alistair Date: Fri, 15 Aug 2014 17:51:35 +0000 (+0100) Subject: drm/i915: Rework GPU reset sequence to match driver load & thaw X-Git-Tag: fixes-against-v3.18-rc2~73^2~32^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6689c167ae14c312972e89be1121e933e4de0001;p=pandora-kernel.git drm/i915: Rework GPU reset sequence to match driver load & thaw This patch is to address Daniels concerns over different code during reset: http://lists.freedesktop.org/archives/intel-gfx/2014-June/047758.html "The reason for aiming as hard as possible to use the exact same code for driver load, gpu reset and runtime pm/system resume is that we've simply seen too many bugs due to slight variations and unintended omissions." Tested using igt drv_hangman. V2: Cleaner way of preventing check_wedge returning -EAGAIN V3: Clean the last_context during reset, to ensure do_switch() does the MI_SET_CONTEXT. As per review. Signed-off-by: McAulay, Alistair Reviewed-by: Mika Kuoppala [danvet: Rebase over ctx->ppgtt rework and extend the comment in check_wedge a bit.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed