Skip to content

drm/atomic: Make drm_atomic_helper_swap_state waiting interruptible.

Maarten Lankhorst dri-devel intel-gfx linux-arm-kernel linux-arm-msm linux-mediatek linux-tegra lkml nouveau stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest9 of 12 patches 11 repliesIn review

9 of 12 patches are in this archive. The cover letter announces 12.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12drm/nouveau: Fix error handling in nv50_disp_atomic_commitdrivers/gpu/drm/nouveau/nv50_display.c+5 -21 reply
2/12drm/atomic: Change drm_atomic_helper_swap_state to return an error.drivers/gpu/drm/drm_atomic_helper.c include/drm/drm_atomic_helper.h+17 -82 replies
4/12drm/atmel-hlcdc: Handle drm_atomic_helper_swap_state failuredrivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c+7 -60 replies
5/12drm/i915: Handle drm_atomic_helper_swap_state failuredrivers/gpu/drm/i915/intel_display.c+9 -10 replies
6/12drm/mediatek: Handle drm_atomic_helper_swap_state failuredrivers/gpu/drm/mediatek/mtk_drm_drv.c+6 -11 reply
9/12drm/tilcdc: Handle drm_atomic_helper_swap_state failuredrivers/gpu/drm/tilcdc/tilcdc_drv.c+5 -12 replies
10/12drm/vc4: Handle drm_atomic_helper_swap_state failuredrivers/gpu/drm/vc4/vc4_kms.c+1 -11 reply
11/12drm/atomic: Add __must_check to drm_atomic_helper_swap_state.include/drm/drm_atomic_helper.h+2 -11 reply
12/12drm/atomic: Allow drm_atomic_helper_swap_state to faildrivers/gpu/drm/drm_atomic_helper.c+7 -81 reply

Reviews trailers per patch

5 of 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPhilipp ZabelDaniel VetterSean PaulJyri Sarha
SeriesR-b R-b R-b
1/12
2/12R-b R-b
4/12
5/12
6/12R-b
9/12A-b
10/12R-b
11/12
12/12R-b

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 v2 thread

Cover letter [PATCH v2 00/12] drm/atomic: Make drm_atomic_helper_swap_state waiting interruptible.

drm_atomic_helper_swap_state could previously never fail, in order to still continue it would set a limit of 10s on waiting for previous updates to complete, then it moved forward. This can be very bad when ignoring previous updates, because the hw state and sw state may get out of sync when for example a modeset is ignored.

By converting the swap_state to interruptible and handling the error in each driver, we fix this issue because if a update takes forever it can be aborted through signals.

Changes since first version:
- Split out driver conversions.
- Fix nouveau error handling first.

Maarten Lankhorst (12):
drm/nouveau: Fix error handling in nv50_disp_atomic_commit drm/atomic: Change drm_atomic_helper_swap_state to return an error. drm/nouveau: Handle drm_atomic_helper_swap_state failure drm/atmel-hlcdc: Handle drm_atomic_helper_swap_state failure drm/i915: Handle drm_atomic_helper_swap_state failure drm/mediatek: Handle drm_atomic_helper_swap_state failure drm/msm: Handle drm_atomic_helper_swap_state failure drm/tegra: Handle drm_atomic_helper_swap_state failure drm/tilcdc: Handle drm_atomic_helper_swap_state failure drm/vc4: Handle drm_atomic_helper_swap_state failure drm/atomic: Add __must_check to drm_atomic_helper_swap_state. drm/atomic: Allow drm_atomic_helper_swap_state to fail

 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 13 ++++++-----
 drivers/gpu/drm/drm_atomic_helper.c          | 35 +++++++++++++++++-----------
 drivers/gpu/drm/i915/intel_display.c         | 10 +++++++-
 drivers/gpu/drm/mediatek/mtk_drm_drv.c       |  7 +++++-
 drivers/gpu/drm/msm/msm_atomic.c             | 16 ++++++-------
 drivers/gpu/drm/nouveau/nv50_display.c       | 12 +++++++---
 drivers/gpu/drm/tegra/drm.c                  |  7 +++++-
 drivers/gpu/drm/tilcdc/tilcdc_drv.c          |  6 ++++-
 drivers/gpu/drm/vc4/vc4_kms.c                |  2 +-
 include/drm/drm_atomic_helper.h              |  4 ++--
 10 files changed, 75 insertions(+), 37 deletions(-)
Signature · 6 lines
2.11.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel