[Intel-gfx] [PATCH 02/10] drm/i915: Implement w/a for sporadic read failures on waking from rc6

2012-07-02 Thread Eugeni Dodonov
From: Chris Wilson ch...@chris-wilson.co.uk 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*

Re: [Intel-gfx] [PATCH 02/10] drm/i915: Implement w/a for sporadic read failures on waking from rc6

2012-07-02 Thread Ben Widawsky
On Mon, 2 Jul 2012 11:51:03 -0300 Eugeni Dodonov eugeni.dodo...@intel.com wrote: From: Chris Wilson ch...@chris-wilson.co.uk 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