All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/i915: IVB MI_DISPLAY_FLIP cacheline trick v2
@ 2014-02-11 17:52 ville.syrjala
  2014-02-11 17:52 ` [PATCH 1/2] drm/i915: Add intel_ring_cachline_align() ville.syrjala
  2014-02-11 17:52 ` [PATCH v3 2/2] drm/i915: Prevent MI_DISPLAY_FLIP straddling two cachelines on IVB ville.syrjala
  0 siblings, 2 replies; 6+ messages in thread
From: ville.syrjala @ 2014-02-11 17:52 UTC (permalink / raw)
  To: intel-gfx; +Cc: Enrico Tagliavini, Bjoern C, Alexandru DAMIAN

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

BSpec tells us that the entire MI_DISPLAY_FLIP packet must be contained
within a single cacheline on IVB. This series achieves that.

Changes since my original patch [1]:
* Move the logic into a new intel_ring_begin_cacheline_safe() function
  (as suggested by Daniel).
* Actually handle the case when the ring would wrap due to the extra
  dwords. With the original patch, the MI_DISPLAY_FLIP packet might still
  end up straddling two cachelines in this case.

Changes since v1 [2]:
* Just do the simple cacheline alignment trick Chris suggested

[1] https://bugs.freedesktop.org/show_bug.cgi?id=74053#
[2] http://lists.freedesktop.org/archives/intel-gfx/2014-February/039921.html

Ville Syrjälä (2):
  drm/i915: Add intel_ring_cachline_align()
  drm/i915: Prevent MI_DISPLAY_FLIP straddling two cachelines on IVB

 drivers/gpu/drm/i915/intel_display.c    | 14 ++++++++++++++
 drivers/gpu/drm/i915/intel_ringbuffer.c | 21 +++++++++++++++++++++
 drivers/gpu/drm/i915/intel_ringbuffer.h |  1 +
 3 files changed, 36 insertions(+)

-- 
1.8.3.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-11 22:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-11 17:52 [PATCH 0/2] drm/i915: IVB MI_DISPLAY_FLIP cacheline trick v2 ville.syrjala
2014-02-11 17:52 ` [PATCH 1/2] drm/i915: Add intel_ring_cachline_align() ville.syrjala
2014-02-11 17:52 ` [PATCH v3 2/2] drm/i915: Prevent MI_DISPLAY_FLIP straddling two cachelines on IVB ville.syrjala
2014-02-11 20:19   ` Chris Wilson
2014-02-11 20:34     ` Ville Syrjälä
2014-02-11 22:01     ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.