All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Cursor Fault Fixes
@ 2024-02-05  6:48 Chaitanya Kumar Borah
  2024-02-05  6:48 ` [PATCH 1/6] drm: Add drm_vblank_work_flush_all() Chaitanya Kumar Borah
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Chaitanya Kumar Borah @ 2024-02-05  6:48 UTC (permalink / raw)
  To: intel-gfx
  Cc: uma.shankar, chaitanya.kumar.borah, maarten.lankhorst,
	ville.syrjala

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
v3: Remove misleading error log
    Change condition to access fb object

Chaitanya Kumar Borah (3):
  drm/i915: do not destroy plane state if cursor unpin worker is
    scheduled
  drm/i915: Add sanity check 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 | 53 ++++++++++++++++++-
 .../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, 142 insertions(+), 9 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 0/6] Cursor Fault Fixes
@ 2024-02-05 10:10 Chaitanya Kumar Borah
  0 siblings, 0 replies; 12+ messages in thread
From: Chaitanya Kumar Borah @ 2024-02-05 10:10 UTC (permalink / raw)
  To: intel-gfx
  Cc: uma.shankar, chaitanya.kumar.borah, maarten.lankhorst,
	ville.syrjala

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
v3: Remove misleading error log
    Change condition to access fb object
v4: Remove unused variables

Chaitanya Kumar Borah (3):
  drm/i915: do not destroy plane state if cursor unpin worker is
    scheduled
  drm/i915: Add sanity check 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 | 52 ++++++++++++++++++-
 .../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, 141 insertions(+), 9 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 0/6] Cursor Fault Fixes
@ 2024-02-05  4:31 Chaitanya Kumar Borah
  0 siblings, 0 replies; 12+ messages in thread
From: Chaitanya Kumar Borah @ 2024-02-05  4:31 UTC (permalink / raw)
  To: intel-gfx
  Cc: uma.shankar, chaitanya.kumar.borah, maarten.lankhorst,
	ville.syrjala

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(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-02-05 17:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-05  6:48 [PATCH 0/6] Cursor Fault Fixes Chaitanya Kumar Borah
2024-02-05  6:48 ` [PATCH 1/6] drm: Add drm_vblank_work_flush_all() Chaitanya Kumar Borah
2024-02-05  6:48 ` [PATCH 2/6] drm/i915: Use vblank worker to unpin old legacy cursor fb safely Chaitanya Kumar Borah
2024-02-05  6:48 ` [PATCH 3/6] drm/i915: Use the same vblank worker for atomic unpin Chaitanya Kumar Borah
2024-02-05  6:48 ` [PATCH 4/6] drm/i915: do not destroy plane state if cursor unpin worker is scheduled Chaitanya Kumar Borah
2024-02-05  6:48 ` [PATCH v2 5/6] drm/i915: Add sanity check before accessing fb buffer object Chaitanya Kumar Borah
2024-02-05  6:48 ` [PATCH 6/6] drm/i915: do not defer cleanup work Chaitanya Kumar Borah
2024-02-05  9:21 ` ✗ Fi.CI.BUILD: failure for Cursor Fault Fixes (rev3) Patchwork
2024-02-05 13:22 ` [PATCH 0/6] Cursor Fault Fixes Jani Nikula
2024-02-05 17:14   ` Borah, Chaitanya Kumar
  -- strict thread matches above, loose matches on Subject: below --
2024-02-05 10:10 Chaitanya Kumar Borah
2024-02-05  4:31 Chaitanya Kumar Borah

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.