mbox series

[0/2] Handle dma fences in dirtyfb ioctl

Message ID 20230418052221.593983-1-jouni.hogander@intel.com (mailing list archive)
Headers show
Series Handle dma fences in dirtyfb ioctl | expand

Message

Hogander, Jouni April 18, 2023, 5:22 a.m. UTC
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.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>

Jouni Högander (2):
  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       | 54 +++++++++++++++++--
 .../gpu/drm/i915/display/intel_frontbuffer.c  | 33 ++++++++++++
 .../gpu/drm/i915/display/intel_frontbuffer.h  |  4 ++
 3 files changed, 88 insertions(+), 3 deletions(-)