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)
commitcae5852dcaa1139b198e13ebd3aeb7f3c065f875
tree7a6789974c1e5d2f76cf21fb6c8fd1df8711c2ab
parent527f9e907c39f7e88abb57eaa8bccb43c8706a3d
drm/i915/ringbuffer: set FORCE_WAKE bit before reading ring register

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>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h