drm/i915: Prevent MI_DISPLAY_FLIP straddling two cachelines on IVB
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 11 Feb 2014 17:52:06 +0000 (19:52 +0200)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Mar 2014 16:13:39 +0000 (17:13 +0100)
commitb19c399da7b857c8d9fd899a42bee0144e03465a
tree99f4f419de8204bb61567766d17bb0451ac7ead9
parentaecc29f1f791b7fc0c9fb1b689b92a63732136eb
drm/i915: Prevent MI_DISPLAY_FLIP straddling two cachelines on IVB

commit f66fab8e1cd6b3127ba4c5c0d11539fbe1de1e36 upstream.

According to BSpec the entire MI_DISPLAY_FLIP packet must be contained
in a single cacheline. Make sure that happens.

v2: Use intel_ring_begin_cacheline_safe()
v3: Use intel_ring_cacheline_align() (Chris)

Cc: Bjoern C <lkml@call-home.ch>
Cc: Alexandru DAMIAN <alexandru.damian@intel.com>
Cc: Enrico Tagliavini <enrico.tagliavini@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74053
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/i915/intel_display.c