drm/i915/ringbuffer: set FORCE_WAKE bit before reading ring register
authorZou Nan hai <nanhai.zou@intel.com>
Tue, 9 Nov 2010 09:17:32 +0000 (17:17 +0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 11 Nov 2010 17:45:54 +0000 (17:45 +0000)
Before reading ring register, set FORCE_WAKE bit to prevent GT core
power down to low power state, otherwise we may read stale values.

Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
[ickle: added a udelay which seemed to do the trick on my SNB]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

No differences found