]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: set GFX_MODE to pre-Ivybridge default value even on Ivybridge
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 12 Aug 2011 22:28:32 +0000 (15:28 -0700)
committerGuangyu Sun <guangyu.sun@oracle.com>
Thu, 8 Nov 2012 19:30:14 +0000 (11:30 -0800)
commit681fe2dd54c5ea53d18a7c80369e90f8eda6b236
tree8f92038a4cedb69ced333ef5c1f7ca7e22e6d830
parent79a65135aeac1f9e17a9a78fd9889321f7e69db5
drm/i915: set GFX_MODE to pre-Ivybridge default value even on Ivybridge

Orabug: 15851255

Prior to Ivybridge, the GFX_MODE would default to 0x800, meaning that
MI_FLUSH would flush the TLBs in addition to the rest of the caches
indicated in the MI_FLUSH command.  However starting with Ivybridge, the
register defaults to 0x2800 out of reset, meaning that to invalidate the
TLB we need to use PIPE_CONTROL.  Since we're not doing that yet, go
back to the old default so things work.

v2: don't forget to actually *clear* the new bit

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_ringbuffer.c