Skip to content

Handle dma fences in dirtyfb ioctl

Jouni Högander intel-gfx 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 6 repliesIn review
  2. v34 patches 0 repliesSuperseded
  3. v24 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Move invalidate back being done before cb is added

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/i915/fbc: Clear frontbuffer busy bits on flipdrivers/gpu/drm/i915/display/intel_fbc.c+2 -43 replies
2/4drm/i915/psr: Clear frontbuffer busy bits on flipdrivers/gpu/drm/i915/display/intel_psr.c+6 -00 replies
3/4drm/i915: Add new frontbuffer tracking interface to queue flushdrivers/gpu/drm/i915/display/intel_frontbuffer.c drivers/gpu/drm/i915/display/intel_frontbuffer.h+32 -00 replies
4/4drm/i915: Handle dma fences in dirtyfb callbackdrivers/gpu/drm/i915/display/intel_fb.c+57 -30 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchVille SyrjäläLuca Coelho
SeriesR-b
1/4R-b
2/4
3/4
4/4

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

Read the v4 thread

Cover letter [Intel-gfx] [PATCH v4 0/4] Handle dma fences in dirtyfb ioctl

Currently i915 dirtyfb ioctl is not taking dma fences into account. This works with features like FBC, PSR, DRRS because our gem code is triggering flush again when rendering completes. We are targeting in getting rid of frontbuffer tracking code: Flusing hook from gem code will be removed as well.

This patch set is adding dma fence handling into i915 dirtyfb ioctl.

v4:
- Move invalidate back being done before cb is added
v3:
- Check frontbuffer bits before adding any fence fb
- Invalidate only when adding fence cb succeeds
- Check schedule work success rather than work being pending
- Init flush work when frontbuffer struct is initialized
v2:
- Clear fbc and psr busy bits on flip
- Check if flush work is already pending
- Use dma_resv_get_singleton

Cc Ville Syrjälä <[email protected]>
Cc Maarten Lankhorst <[email protected]>

Jouni Högander (4):
drm/i915/fbc: Clear frontbuffer busy bits on flip drm/i915/psr: Clear frontbuffer busy bits on flip drm/i915: Add new frontbuffer tracking interface to queue flush drm/i915: Handle dma fences in dirtyfb callback

 drivers/gpu/drm/i915/display/intel_fb.c       | 60 ++++++++++++++++++-
 drivers/gpu/drm/i915/display/intel_fbc.c      |  6 +-
 .../gpu/drm/i915/display/intel_frontbuffer.c  | 28 +++++++++
 .../gpu/drm/i915/display/intel_frontbuffer.h  |  4 ++
 drivers/gpu/drm/i915/display/intel_psr.c      |  6 ++
 5 files changed, 97 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1