From: Chris Wilson Date: Mon, 2 Jul 2012 14:51:03 +0000 (-0300) Subject: drm/i915: Implement w/a for sporadic read failures on waking from rc6 X-Git-Tag: v3.6-rc1~83^2~39^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4de7b0ffda2bb4843fd7f1052d0a2bb90bd08a5;p=pandora-kernel.git drm/i915: Implement w/a for sporadic read failures on waking from rc6 As a w/a to prevent reads sporadically returning 0, we need to wait for the GT thread to return to TC0 before proceeding to read the registers. v2: adapt for Haswell changes (Eugeni). v3: use wait_for_atomic_us for thread status polling. v3: *really* use wait_for_atomic for polling. References: https://bugs.freedesktop.org/show_bug.cgi?id=50243 Signed-off-by: Chris Wilson Signed-off-by: Eugeni Dodonov Acked-by: Ben Widawsky Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed