Skip to content

drm/i915/display: All patches to make PREEMPT_RT work on i915 + xe.

Maarten Lankhorst dri-devel intel-gfx intel-xe 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest30 patches 1 replyIn review
  2. v930 patches 0 repliesSuperseded
  3. v827 patches 0 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v726 patches6 repliesSuperseded
v624 patches17 repliesSuperseded
v521 patches10 repliesSuperseded
v420 patches3 repliesSuperseded
v316 patches0 repliesSuperseded
v216 patches1 replySuperseded
v116 patches0 repliesSuperseded

Changes since previous version from the cover letter

- Hopefully finally fix all i915 pmu bugs.

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/30drm/vblank_work: Add methods to schedule vblank_work in 2 stagesdrivers/gpu/drm/drm_vblank_work.c include/drm/drm_vblank_work.h+96 -260 replies
2/30drm/vblank: Add a 2-stage version of drm_crtc_arm_vblank_eventdrivers/gpu/drm/drm_vblank.c include/drm/drm_vblank.h+76 -20 replies
3/30drm/intel/display: Make intel_crtc_arm_vblank_event staticdrivers/gpu/drm/i915/display/intel_crtc.c drivers/gpu/drm/i915/display/intel_crtc.h+1 -20 replies
4/30drm/intel/display: Convert vblank event handling to 2-stage armingdrivers/gpu/drm/i915/display/intel_crtc.c+44 -400 replies
5/30drm/i915/display: Move vblank put until after critical sectiondrivers/gpu/drm/i915/display/intel_cursor.c+6 -20 replies
6/30drm/i915/display: Remove locking from intel_vblank_evade critical sectiondrivers/gpu/drm/i915/display/intel_crtc.c drivers/gpu/drm/i915/display/intel_vblank.c drivers/gpu/drm/i915/display/intel_vblank.h+15 -180 replies
7/30drm/i915/display: Handle vlv dsi workaround in scanline_in_safe_range toodrivers/gpu/drm/i915/display/intel_vblank.c+18 -180 replies
8/30drm/i915: Use preempt_disable/enable_rt() where recommendeddrivers/gpu/drm/i915/display/intel_vblank.c+33 -100 replies
9/30drm/i915/display: Make get_vblank_counter use intel_de_read_fw()drivers/gpu/drm/i915/display/intel_vblank.c+1 -10 replies
10/30drm/i915/display: Do not take uncore lock in i915_get_vblank_counterdrivers/gpu/drm/i915/display/intel_de.h drivers/gpu/drm/i915/display/intel_vblank.c drivers/gpu/drm/i915/intel_uncore.h +1 more+35 -100 replies
11/30drm/i915/display: Make icl_dsi_frame_update use _fw toodrivers/gpu/drm/i915/display/icl_dsi.c+2 -20 replies
12/30drm/i915/display: Use intel_de_read/write_fw in coloropsdrivers/gpu/drm/i915/display/intel_color.c+3 -30 replies
13/30drm/i915/display: Use intel_de_write_fw in intel_pipe_fastsetdrivers/gpu/drm/i915/display/intel_cmtg.c drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_vrr.c+33 -330 replies
14/30drm/i915/display: Make set_pipeconf use the fw variantsdrivers/gpu/drm/i915/display/intel_display.c+6 -40 replies
15/30drm/i915/gt: Use spin_lock_irq() instead of local_irq_disable() + spin_lock()drivers/gpu/drm/i915/gt/intel_execlists_submission.c+5 -120 replies
16/30drm/i915: Drop the irqs_disabled() checkdrivers/gpu/drm/i915/i915_request.c+0 -20 replies
17/30drm/i915/guc: Consider also RCU depth in busy loop.drivers/gpu/drm/i915/gt/uc/intel_guc.h+1 -10 replies
18/30drm/i915/gt: Fix selftests on PREEMPT_RTdrivers/gpu/drm/i915/gt/selftest_engine_pm.c+4 -40 replies
19/30drm/i915/gt: Set stop_timeout() correctly on PREEMPT-RTdrivers/gpu/drm/i915/gt/intel_engine_cs.c+1 -10 replies
20/30drm/i915/display: Remove uncore lock from vlv_atomic_update_fifodrivers/gpu/drm/i915/display/i9xx_wm.c+0 -40 replies
21/30drm/i915: Use sleeping selftests for igt_atomic on PREEMPT_RTdrivers/gpu/drm/i915/selftests/igt_atomic.c+7 -00 replies
22/30Revert "drm/i915: Depend on !PREEMPT_RT."drivers/gpu/drm/i915/Kconfig+0 -10 replies
23/30PREEMPT_RT injectionkernel/Kconfig.preempt+2 -20 replies
24/30FOR-CI: bump MAX_STACK_TRACE_ENTRIESlib/Kconfig.debug+2 -30 replies
25/30drm/i915/gt: Add a spinlock to prevent starvation of irq_work.drivers/gpu/drm/i915/gt/intel_breadcrumbs.c drivers/gpu/drm/i915/gt/intel_breadcrumbs_types.h+8 -10 replies
26/30drm/xe: Avoid using stolen memory for DPT.drivers/gpu/drm/xe/display/xe_fb_pin.c+8 -250 replies
27/30drm/xe/display: Avoid using stolen memory for framebuffer when media gt exists.drivers/gpu/drm/xe/display/xe_display_bo.c+7 -00 replies
28/30drm/xe/display: Do not allocate into stolen for new framebuffers.drivers/gpu/drm/xe/display/xe_display_bo.c+6 -270 replies
29/30drm/i915/pmu: Convert to raw spinlockdrivers/gpu/drm/i915/i915_pmu.c drivers/gpu/drm/i915/i915_pmu.h+12 -120 replies
30/30drm/i915: Disable "busy" pmu event on CONFIG_PREEMPT_RTdrivers/gpu/drm/i915/i915_pmu.c+4 -00 replies

Reviews trailers per patch

9 of 30 patches have a Reviewed-by or Acked-by.

PatchUma ShankarMaarten LankhorstTvrtko UrsulinRodrigo Vivi
1/30
2/30
3/30
4/30
5/30R-b
6/30
7/30R-b
8/30R-b
9/30
10/30
11/30R-b
12/30R-b
13/30
14/30
15/30R-b
16/30A-b
17/30R-b
18/30
19/30
20/30
21/30
22/30A-b
23/30
24/30
25/30
26/30
27/30
28/30
29/30
30/30

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v10 thread

Cover letter [PATCH v10 00/30] drm/i915/display: All patches to make PREEMPT_RT work on i915 + xe.

Still waiting for feedback on the vblank approach, and check to see if there are some bugs left.

Changes since previous version:
- Hopefully finally fix all i915 pmu bugs.

For Xe, we also prohibit the use of DSM when CONFIG_PREEMPT_RT is enabled, and avoid the use of DSM if we cannot take over the framebuffer from the firmware.

Ideally we copy the framebuffer after intel_fbdev_init_bios(), when we decide to preserve the framebuffer and the hardware is completely initialized.

At that point we can use the migration engine to copy the contents over, this can potentially be used for preserving the initial framebuffer in the other cases where we cannot not use the initial FB too.

Maarten Lankhorst (24):
drm/vblank_work: Add methods to schedule vblank_work in 2 stages drm/vblank: Add a 2-stage version of drm_crtc_arm_vblank_event drm/intel/display: Make intel_crtc_arm_vblank_event static drm/intel/display: Convert vblank event handling to 2-stage arming drm/i915/display: Move vblank put until after critical section drm/i915/display: Remove locking from intel_vblank_evade critical
section
drm/i915/display: Handle vlv dsi workaround in scanline_in_safe_range
too
drm/i915/display: Make get_vblank_counter use intel_de_read_fw() drm/i915/display: Do not take uncore lock in i915_get_vblank_counter drm/i915/display: Make icl_dsi_frame_update use _fw too drm/i915/display: Use intel_de_read/write_fw in colorops drm/i915/display: Use intel_de_write_fw in intel_pipe_fastset drm/i915/display: Make set_pipeconf use the fw variants drm/i915/gt: Fix selftests on PREEMPT_RT
drm/i915/gt: Set stop_timeout() correctly on PREEMPT-RT drm/i915/display: Remove uncore lock from vlv_atomic_update_fifo drm/i915: Use sleeping selftests for igt_atomic on PREEMPT_RT PREEMPT_RT injection
FOR-CI: bump MAX_STACK_TRACE_ENTRIES
drm/xe: Avoid using stolen memory for DPT.
drm/xe/display: Avoid using stolen memory for framebuffer when media
gt exists.
drm/xe/display: Do not allocate into stolen for new framebuffers. drm/i915/pmu: Convert to raw spinlock
drm/i915: Disable "busy" pmu event on CONFIG_PREEMPT_RT

Mike Galbraith (1):
drm/i915: Use preempt_disable/enable_rt() where recommended

Sebastian Andrzej Siewior (5):
drm/i915/gt: Use spin_lock_irq() instead of local_irq_disable() +

    spin_lock()

drm/i915: Drop the irqs_disabled() check drm/i915/guc: Consider also RCU depth in busy loop. Revert "drm/i915: Depend on !PREEMPT_RT." drm/i915/gt: Add a spinlock to prevent starvation of irq_work.

 drivers/gpu/drm/drm_vblank.c                  |  64 +++++++++-
 drivers/gpu/drm/drm_vblank_work.c             | 110 +++++++++++++----
 drivers/gpu/drm/i915/Kconfig                  |   1 -
 drivers/gpu/drm/i915/display/i9xx_wm.c        |   4 -
 drivers/gpu/drm/i915/display/icl_dsi.c        |   4 +-
 drivers/gpu/drm/i915/display/intel_cmtg.c     |   6 +-
 drivers/gpu/drm/i915/display/intel_color.c    |   6 +-
 drivers/gpu/drm/i915/display/intel_crtc.c     |  86 ++++++-------
 drivers/gpu/drm/i915/display/intel_crtc.h     |   1 -
 drivers/gpu/drm/i915/display/intel_cursor.c   |   8 +-
 drivers/gpu/drm/i915/display/intel_de.h       |   8 ++
 drivers/gpu/drm/i915/display/intel_display.c  |  52 ++++----
 drivers/gpu/drm/i915/display/intel_vblank.c   | 115 ++++++++++--------
 drivers/gpu/drm/i915/display/intel_vblank.h   |   1 +
 drivers/gpu/drm/i915/display/intel_vrr.c      |  18 +--
 drivers/gpu/drm/i915/gt/intel_breadcrumbs.c   |   8 +-
 .../gpu/drm/i915/gt/intel_breadcrumbs_types.h |   1 +
 drivers/gpu/drm/i915/gt/intel_engine_cs.c     |   2 +-
 .../drm/i915/gt/intel_execlists_submission.c  |  17 +--
 drivers/gpu/drm/i915/gt/selftest_engine_pm.c  |   8 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc.h        |   2 +-
 drivers/gpu/drm/i915/i915_pmu.c               |  26 ++--
 drivers/gpu/drm/i915/i915_pmu.h               |   2 +-
 drivers/gpu/drm/i915/i915_request.c           |   2 -
 drivers/gpu/drm/i915/intel_uncore.h           |  26 ++--
 drivers/gpu/drm/i915/selftests/igt_atomic.c   |   7 ++
 .../drm/xe/compat-i915-headers/intel_uncore.h |   7 ++
 drivers/gpu/drm/xe/display/xe_display_bo.c    |  40 ++----
 drivers/gpu/drm/xe/display/xe_fb_pin.c        |  33 ++---
 include/drm/drm_vblank.h                      |  14 ++-
 include/drm/drm_vblank_work.h                 |  12 ++
 kernel/Kconfig.preempt                        |   4 +-
 lib/Kconfig.debug                             |   5 +-
 33 files changed, 435 insertions(+), 265 deletions(-)
Signature · 1 line
2.53.0