Skip to content

drm/i915/frontbuffer: Fix the intel_frontbuffer lifetime mess

Ville Syrjala intel-gfx intel-xe 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 14 repliesIn review
  2. v110 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm/i915/overlay: Drop the DIRTYFB flushdrivers/gpu/drm/i915/display/intel_overlay.c+0 -20 replies
2/10drm/i915/overlay: Switch to intel_frontbuffer_flip()drivers/gpu/drm/i915/display/intel_overlay.c+1 -30 replies
3/10drm/i915/frontbuffer: Nuke intel_frontbuffer_flip_{prepare, complete}()drivers/gpu/drm/i915/display/intel_display_core.h drivers/gpu/drm/i915/display/intel_display_debugfs.c drivers/gpu/drm/i915/display/intel_frontbuffer.c +1 more+1 -562 replies
4/10drm/i915/frontbuffer: Turn intel_bo_flush_if_display() into a frontbuffer operationdrivers/gpu/drm/i915/display/intel_bo.c drivers/gpu/drm/i915/display/intel_bo.h drivers/gpu/drm/i915/display/intel_fb.c +2 more+12 -121 reply
5/10drm/i915/frontbuffer: Handle the dirtyfb cache flush inside intel_frontbuffer_flush()drivers/gpu/drm/i915/display/intel_fb.c drivers/gpu/drm/i915/display/intel_frontbuffer.c+3 -21 reply
6/10drm/i915/frontbuffef: Split fb_tracking.lock into twodrivers/gpu/drm/i915/display/intel_display_core.h drivers/gpu/drm/i915/display/intel_display_driver.c drivers/gpu/drm/i915/display/intel_frontbuffer.c +1 more+11 -61 reply
7/10drm/i915/frontbuffer: Extract intel_frontbuffer_ref()drivers/gpu/drm/i915/display/intel_frontbuffer.c+6 -11 reply
8/10drm/i915/frontbuffer: Add intel_frontbuffer::displaydrivers/gpu/drm/i915/display/intel_frontbuffer.c drivers/gpu/drm/i915/display/intel_frontbuffer.h+9 -112 replies
9/10drm/i915/frontbuffer: Fix intel_frontbuffer lifetime handlingdrivers/gpu/drm/i915/Makefile drivers/gpu/drm/i915/display/intel_bo.c drivers/gpu/drm/i915/display/intel_bo.h +13 more+227 -1495 replies
10/10drm/i915/gem: s/i915_gem_object_get_frontbuffer/i915_gem_object_frontbuffer_lookup/drivers/gpu/drm/i915/gem/i915_gem_object.c drivers/gpu/drm/i915/gem/i915_gem_object_frontbuffer.c drivers/gpu/drm/i915/gem/i915_gem_object_frontbuffer.h +1 more+7 -71 reply

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchJani Nikula
1/10A-b
2/10A-b
3/10A-b R-b
4/10A-b R-b
5/10A-b R-b
6/10A-b R-b
7/10A-b R-b
8/10A-b R-b
9/10A-b
10/10A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/10] drm/i915/frontbuffer: Fix the intel_frontbuffer lifetime mess

From: Ville Syrjälä <[email protected]>

The attempted piecemeal intel_frontbuffer split between i915 and xe is not good. Redo it with a bigger shovel.

v2: Rebase

Ville Syrjälä (10):
drm/i915/overlay: Drop the DIRTYFB flush
drm/i915/overlay: Switch to intel_frontbuffer_flip() drm/i915/frontbuffer: Nuke intel_frontbuffer_flip_{prepare,complete}() drm/i915/frontbuffer: Turn intel_bo_flush_if_display() into a
frontbuffer operation
drm/i915/frontbuffer: Handle the dirtyfb cache flush inside
intel_frontbuffer_flush()
drm/i915/frontbuffef: Split fb_tracking.lock into two drm/i915/frontbuffer: Extract intel_frontbuffer_ref() drm/i915/frontbuffer: Add intel_frontbuffer::display drm/i915/frontbuffer: Fix intel_frontbuffer lifetime handling drm/i915/gem:
s/i915_gem_object_get_frontbuffer/i915_gem_object_frontbuffer_lookup/

 drivers/gpu/drm/i915/Makefile                 |   1 +
 drivers/gpu/drm/i915/display/intel_bo.c       |  40 +++--
 drivers/gpu/drm/i915/display/intel_bo.h       |   8 +-
 .../gpu/drm/i915/display/intel_display_core.h |   5 +-
 .../drm/i915/display/intel_display_debugfs.c  |   3 -
 drivers/gpu/drm/i915/display/intel_fb.c       |   1 -
 .../gpu/drm/i915/display/intel_frontbuffer.c  | 155 +++---------------
 .../gpu/drm/i915/display/intel_frontbuffer.h  |  18 +-
 drivers/gpu/drm/i915/display/intel_overlay.c  |   6 +-
 drivers/gpu/drm/i915/gem/i915_gem_object.c    |  16 +-
 .../i915/gem/i915_gem_object_frontbuffer.c    | 103 ++++++++++++
 .../i915/gem/i915_gem_object_frontbuffer.h    |  54 ++----
 .../gpu/drm/i915/gem/i915_gem_object_types.h  |   2 +-
 drivers/gpu/drm/i915/i915_drv.h               |   2 +
 drivers/gpu/drm/i915/i915_gem.c               |   2 +
 drivers/gpu/drm/i915/i915_vma.c               |   8 +-
 .../gpu/drm/xe/compat-i915-headers/i915_vma.h |   2 -
 drivers/gpu/drm/xe/display/intel_bo.c         |  60 ++++++-
 18 files changed, 257 insertions(+), 229 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/gem/i915_gem_object_frontbuffer.c
Signature · 1 line
2.49.1