Skip to content

Cursor Fault Fixes

Chaitanya Kumar Borah intel-gfx 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm: Add drm_vblank_work_flush_all().drivers/gpu/drm/drm_vblank_work.c include/drm/drm_vblank_work.h+24 -00 replies
2/6drm/i915: Use vblank worker to unpin old legacy cursor fb safelydrivers/gpu/drm/i915/display/intel_cursor.c drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_display_types.h+30 -20 replies
3/6drm/i915: Use the same vblank worker for atomic unpindrivers/gpu/drm/i915/display/intel_atomic_plane.c drivers/gpu/drm/i915/display/intel_atomic_plane.h drivers/gpu/drm/i915/display/intel_crtc.c +2 more+60 -20 replies
4/6drm/i915: do not destroy plane state if cursor unpin worker is scheduleddrivers/gpu/drm/i915/display/intel_atomic_plane.c drivers/gpu/drm/i915/display/intel_atomic_plane.h drivers/gpu/drm/i915/display/intel_cursor.c+22 -10 replies
5/6drm/i915: Add sanity checks before accessing fb buffer objectdrivers/gpu/drm/i915/display/intel_atomic_plane.c+7 -10 replies
6/6drm/i915: do not defer cleanup workdrivers/gpu/drm/i915/display/intel_display.c+3 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Cursor Fault Fixes

This series is based on top of [1] floated by Maarten.
To fix regressions seen in CI, following changes were made on top of the original series.

1. add a check in the plane state destroy hook to not move forward if the vblank worker is scheduled.
2. add checks before accessing frame buffer object (we are not sure yet how much this helps but we have found that this operation causes dump stacks)
3. do not defer the intel atomic cleanup into a work queue, instead execute it at the end of atomic commit tail.

While this series is in noway a complete or proper solution it is meant to trigger a discussion to arrive at one.

[1] https://patchwork.freedesktop.org/series/126934/

v2: Add missing patch

Chaitanya Kumar Borah (3):
drm/i915: do not destroy plane state if cursor unpin worker is
scheduled
drm/i915: Add sanity checks before accessing fb buffer object drm/i915: do not defer cleanup work

Maarten Lankhorst (2):
drm: Add drm_vblank_work_flush_all(). drm/i915: Use the same vblank worker for atomic unpin

Ville Syrjälä (1):
drm/i915: Use vblank worker to unpin old legacy cursor fb safely

 drivers/gpu/drm/drm_vblank_work.c             | 22 ++++++++
 .../gpu/drm/i915/display/intel_atomic_plane.c | 55 ++++++++++++++++++-
 .../gpu/drm/i915/display/intel_atomic_plane.h |  4 ++
 drivers/gpu/drm/i915/display/intel_crtc.c     | 27 +++++++++
 drivers/gpu/drm/i915/display/intel_cursor.c   | 26 ++++++++-
 drivers/gpu/drm/i915/display/intel_cursor.h   |  3 +
 drivers/gpu/drm/i915/display/intel_display.c  | 11 ++--
 .../drm/i915/display/intel_display_types.h    |  3 +
 include/drm/drm_vblank_work.h                 |  2 +
 9 files changed, 144 insertions(+), 9 deletions(-)
Signature · 1 line
2.25.1