[Intel-gfx] [RFC PATCH 0/3] Interruptible pinning for atomic commit.

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Mon Sep 14 04:18:14 PDT 2015


This patch series depends on
  "[PATCH 2/2] drm/i915: Make plane fb tracking work correctly."
and also on the series
  "[PATCH 0/2] Preserve framebuffer during rmfb / drm fd close.".

With the changes to DPMS to allow -EAGAIN semantics and to drm/core to
preserve framebuffers on fd close there are no more places where
uninterruptible waits are required. Copying the wait request to the
plane state also allows us to acquire struct_mutex only once in the
success case, and do the waiting unlocked.

Waiting for object idle for modeset disable is still done with lock
held, but that's not a performance sensitive path.

Maarten Lankhorst (3):
  drm/i915: Make wait_for_flips interruptible.
  drm/i915: Change locking for struct_mutex.
  drm/i915: Wait for object idle without locks in atomic_commit.

 drivers/gpu/drm/i915/i915_drv.h           |   2 -
 drivers/gpu/drm/i915/i915_gem.c           |   6 -
 drivers/gpu/drm/i915/intel_atomic.c       |   2 -
 drivers/gpu/drm/i915/intel_atomic_plane.c |   2 +
 drivers/gpu/drm/i915/intel_display.c      | 204 ++++++++++++++++++++----------
 drivers/gpu/drm/i915/intel_drv.h          |   9 +-
 drivers/gpu/drm/i915/intel_fbdev.c        |   2 +-
 drivers/gpu/drm/i915/intel_overlay.c      |   6 +-
 8 files changed, 151 insertions(+), 82 deletions(-)

-- 
2.1.0



More information about the Intel-gfx mailing list