Skip to content

Don't use stolen memory or BAR mappings for ring buffers

[email protected] dri-devel intel-gfx stable 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesIn review
  2. v22 patches 0 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/i915: Don't use stolen memory for ring buffers with LLCdrivers/gpu/drm/i915/gt/intel_ring.c+1 -11 reply
2/2drm/i915: Don't use BAR mappings for ring buffers with LLCdrivers/gpu/drm/i915/gt/intel_ring.c+2 -21 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJouni HöganderDaniele Ceraolo SpurioTvrtko Ursulin
SeriesT-b A-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] Don't use stolen memory or BAR mappings for ring buffers

From: John Harrison <[email protected]>

Instruction from hardware arch is that stolen memory and BAR mappings are unsafe for use as ring buffers. There can be issues with cache aliasing due to the CPU access going to memory via the BAR. So, don't do it.

v2: Dont use BAR mappings either.
Make conditional on LLC so as not to change platforms that don't need to change (Daniele).
Add 'Fixes' tags (Tvrtko).
v3: Fix dumb typo.

John Harrison (2):
drm/i915: Don't use stolen memory for ring buffers with LLC drm/i915: Don't use BAR mappings for ring buffers with LLC

 drivers/gpu/drm/i915/gt/intel_ring.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.39.1