drm/i915: fix rc6 initialization on Ironlake
authorBen Widawsky <ben@bwidawsk.net>
Sun, 20 Mar 2011 01:14:28 +0000 (18:14 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 10 May 2011 20:56:41 +0000 (13:56 -0700)
commit4a246cfc3c337ecb800d508ee5ed906534edb25c
tree3430259d8dc22c6b80904d98dbdba39d23e6a831
parent96f298aa9c9fc9b7c8a2ebaf8c195d178f570e09
drm/i915: fix rc6 initialization on Ironlake

There is a race condition between setting PWRCTXA and executing
MI_SET_CONTEXT. PWRCTXA must not be set until a valid context has been
written (or else the GPU could possible go into rc6, and return to an
invalid context).

Reported-and-Tested-by: Gu Rui <chaos.proton@gmail.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=28582
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_display.c