[Intel-xe] [PATCH 0/7] Frontbuffer tracking and dirtyfb

Jouni Högander jouni.hogander at intel.com
Fri Sep 15 07:48:11 UTC 2023


Generic dirtyfb implementation which Xe is currently using is doing atomic
commit which is inefficient. We have now dma fence handling in our dirtyfb
implementation. This works with Xe and CPU/GPU frontbuffer rendering as
long as sync objects are imported by userspace
(dma_buf_import_sync_file).

This patch set is backporting dirtyfb dma fence handling into our
custom dirtyfb implementation and switching to that on Xe as well.

Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Cc: Jani Nikula <jani.nikula at intel.com>
Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
Cc: Uma Shankar <uma.shankar at intel.com>

Jouni Högander (7):
  drm/xe: Add empty def for i915_gem_object_flush_if_display
  fixup! FIXME: drm/i915/display: Remaining changes to make xe compile
  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
  drm/i915/display: Use intel_bo_to_drm_bo instead of obj->base

 drivers/gpu/drm/i915/display/intel_fb.c       | 66 ++++++++++++++++---
 drivers/gpu/drm/i915/display/intel_fbc.c      |  6 +-
 .../gpu/drm/i915/display/intel_frontbuffer.c  | 29 ++++++++
 .../gpu/drm/i915/display/intel_frontbuffer.h  |  4 ++
 drivers/gpu/drm/i915/display/intel_psr.c      |  6 ++
 drivers/gpu/drm/xe/xe_bo.h                    |  1 +
 6 files changed, 99 insertions(+), 13 deletions(-)

-- 
2.34.1



More information about the Intel-xe mailing list