drm/tegra: Atomic mode-setting conversion
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest36 patches 15 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/36 | clk: Introduce clk_try_parent()drivers/ include/ | +50 | 11 replies | |
| 2/36 | drm/plane: Make ->atomic_update() mandatorydrivers/ | +1 | 4 replies | |
| 3/36 | drm/plane: Add optional ->atomic_disable() callbackdrivers/ drivers/ include/ +1 more | +57 | 3 replies | |
| 4/36 | drm/atomic: Add ->atomic_check() to encoder helpersdrivers/ include/ | +22 | 1 reply | |
| 5/36 | drm/atomic: Add drm_atomic_plane_get_crtc_state()include/ | +21 | 2 replies | |
| 6/36 | drm/tegra: Use tegra_commit_dc() in output driversdrivers/ drivers/ drivers/ +3 more | +11 | 0 replies | |
| 7/36 | drm/tegra: Stop CRTC at CRTC disable timedrivers/ drivers/ drivers/ +2 more | +6 | 0 replies | |
| 8/36 | drm/tegra: dc: Wait for idle when disableddrivers/ | +65 | 0 replies | |
| 9/36 | drm/tegra: Move tegra_drm_mode_funcs to the coredrivers/ drivers/ drivers/ | +23 | 0 replies | |
| 10/36 | drm/tegra: dc: No longer disable planes at CRTC disabledrivers/ | +0 | 0 replies | |
| 11/36 | drm/tegra: Convert output midlayer to helpersdrivers/ drivers/ | +21 | 0 replies | |
| 12/36 | drm/tegra: output: Make ->setup_clock() optionaldrivers/ drivers/ | +9 | 0 replies | |
| 13/36 | drm/tegra: Add tegra_dc_setup_clock() helperdrivers/ drivers/ | +22 | 0 replies | |
| 14/36 | drm/tegra: rgb: Demidlayerdrivers/ drivers/ drivers/ +1 more | +161 | 0 replies | |
| 15/36 | drm/tegra: hdmi: Demidlayerdrivers/ drivers/ drivers/ | +147 | 0 replies | |
| 16/36 | drm/tegra: dsi: Demidlayerdrivers/ drivers/ drivers/ | +195 | 0 replies | |
| 17/36 | drm/tegra: sor: Demidlayerdrivers/ drivers/ drivers/ | +436 | 0 replies | |
| 18/36 | drm/tegra: debugfs cleanup cannot faildrivers/ drivers/ drivers/ | +9 | 0 replies | |
| 19/36 | drm/tegra: Remove remnants of the output midlayerdrivers/ drivers/ drivers/ +4 more | +32 | 0 replies | |
| 20/36 | drm/tegra: Output cleanup functions cannot faildrivers/ drivers/ drivers/ +3 more | +13 | 0 replies | |
| 21/36 | drm/tegra: dc: Do not needlessly deassert resetdrivers/ | +0 | 0 replies | |
| 22/36 | drm/tegra: Atomic conversion, phase 1drivers/ drivers/ drivers/ +4 more | +223 | 0 replies | |
| 23/36 | drm/tegra: Atomic conversion, phase 2drivers/ drivers/ drivers/ +3 more | +22 | 0 replies | |
| 24/36 | drm/tegra: Atomic conversion, phase 3, step 1drivers/ drivers/ | +10 | 0 replies | |
| 25/36 | drm/tegra: dc: Store clock setup in atomic statedrivers/ drivers/ | +77 | 0 replies | |
| 26/36 | drm/tegra: rgb: Implement ->atomic_check()drivers/ | +42 | 0 replies | |
| 27/36 | drm/tegra: dsi: Implement ->atomic_check()drivers/ | +196 | 0 replies | |
| 28/36 | drm/tegra: hdmi: Implement ->atomic_check()drivers/ | +22 | 0 replies | |
| 29/36 | drm/tegra: sor: Implement ->atomic_check()drivers/ | +22 | 0 replies | |
| 30/36 | drm/tegra: dc: Use atomic clock state in modesetdrivers/ | +37 | 0 replies | |
| 31/36 | drm/tegra: Atomic conversion, phase 3, step 2drivers/ | +1 | 0 replies | |
| 32/36 | drm/tegra: Atomic conversion, phase 3, step 3drivers/ drivers/ drivers/ | +100 | 0 replies | |
| 33/36 | drm/tegra: Remove unused ->mode_fixup() callbacksdrivers/ drivers/ drivers/ +1 more | +0 | 0 replies | |
| 34/36 | drm/tegra: Track active planes in CRTC statedrivers/ | +44 | 3 replies | |
| 35/36 | drm/tegra: Track tiling and format in plane statedrivers/ drivers/ | +101 | 0 replies | |
| 36/36 | drm/tegra: dc: Unify enabling the display controllerdrivers/ drivers/ drivers/ +2 more | +16 | 0 replies |
Reviews trailers per patch
4 of 36 patches have a Reviewed-by or Acked-by.
| Patch | Daniel Vetter | Stephen Boyd | Gustavo Padovan |
|---|---|---|---|
| 1/36 | R-b | ||
| 2/36 | R-b R-b | ||
| 3/36 | R-b R-b | R-b R-b | |
| 4/36 | R-b | ||
| 5/36 | |||
| 6/36 | |||
| 7/36 | |||
| 8/36 | |||
| 9/36 | |||
| 10/36 | |||
| 11/36 | |||
| 12/36 | |||
| 13/36 | |||
| 14/36 | |||
| 15/36 | |||
| 16/36 | |||
| 17/36 | |||
| 18/36 | |||
| 19/36 | |||
| 20/36 | |||
| 21/36 | |||
| 22/36 | |||
| 23/36 | |||
| 24/36 | |||
| 25/36 | |||
| 26/36 | |||
| 27/36 | |||
| 28/36 | |||
| 29/36 | |||
| 30/36 | |||
| 31/36 | |||
| 32/36 | |||
| 33/36 | |||
| 34/36 | |||
| 35/36 | |||
| 36/36 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 00/36] drm/tegra: Atomic mode-setting conversion
From: Thierry Reding <[email protected]>
This series converts the Tegra DRM driver to atomic mode-setting. The size of the is somewhat misleading, because a bunch of preparatory work is included.
The first patch adds a new function to the clk API that allows checking that setting a parent clock can succeed. This is needed to make sure an atomic state can be applied before actually making any changes to the hardware.
Patch 2 makes the plane's ->atomic_update() callback mandatory because there is no use-case in which it makes sense to omit it.
Patches 3 and 4 add additional callbacks for planes and encoders, which are needed by subsequent patches.
Patch 5 adds a helper to obtain the state of the CRTC that a plane is being attached to. This is non-trivial, so a new helper is warranted.
Patches 6 to 21 are preparatory work and cleanup needed to simplify the atomic mode-setting transition.
Patches 22 to 32 are the actual conversion to atomic mode-setting. This is followed-up by patch 33 removing now unused code. Patches 34 and 35 use the ->atomic_check() callbacks to store data that can be reused at the commit stage to avoid having to recompute it. Finally patch 36 can now move some duplicate code from the output drivers to the display controller.
Thierry
Thierry Reding (36):
clk: Introduce clk_try_parent()
drm/plane: Make ->atomic_update() mandatory drm/plane: Add optional ->atomic_disable() callback drm/atomic: Add ->atomic_check() to encoder helpers drm/atomic: Add drm_atomic_plane_get_crtc_state() drm/tegra: Use tegra_commit_dc() in output drivers drm/tegra: Stop CRTC at CRTC disable time drm/tegra: dc: Wait for idle when disabled drm/tegra: Move tegra_drm_mode_funcs to the core drm/tegra: dc: No longer disable planes at CRTC disable drm/tegra: Convert output midlayer to helpers drm/tegra: output: Make ->setup_clock() optional drm/tegra: Add tegra_dc_setup_clock() helper drm/tegra: rgb: Demidlayer
drm/tegra: hdmi: Demidlayer
drm/tegra: dsi: Demidlayer
drm/tegra: sor: Demidlayer
drm/tegra: debugfs cleanup cannot fail drm/tegra: Remove remnants of the output midlayer drm/tegra: Output cleanup functions cannot fail drm/tegra: dc: Do not needlessly deassert reset drm/tegra: Atomic conversion, phase 1 drm/tegra: Atomic conversion, phase 2 drm/tegra: Atomic conversion, phase 3, step 1 drm/tegra: dc: Store clock setup in atomic state drm/tegra: rgb: Implement ->atomic_check() drm/tegra: dsi: Implement ->atomic_check() drm/tegra: hdmi: Implement ->atomic_check() drm/tegra: sor: Implement ->atomic_check() drm/tegra: dc: Use atomic clock state in modeset drm/tegra: Atomic conversion, phase 3, step 2 drm/tegra: Atomic conversion, phase 3, step 3 drm/tegra: Remove unused ->mode_fixup() callbacks drm/tegra: Track active planes in CRTC state drm/tegra: Track tiling and format in plane state drm/tegra: dc: Unify enabling the display controller
drivers/clk/clk.c | 36 ++ drivers/gpu/drm/drm_atomic_helper.c | 34 +- drivers/gpu/drm/drm_plane_helper.c | 10 +- drivers/gpu/drm/tegra/dc.c | 916 +++++++++++++++++------------ drivers/gpu/drm/tegra/drm.c | 105 +++- drivers/gpu/drm/tegra/drm.h | 91 +-- drivers/gpu/drm/tegra/dsi.c | 516 ++++++++-------- drivers/gpu/drm/tegra/fb.c | 25 +- drivers/gpu/drm/tegra/hdmi.c | 291 +++++---- drivers/gpu/drm/tegra/output.c | 156 +---- drivers/gpu/drm/tegra/rgb.c | 218 +++---- drivers/gpu/drm/tegra/sor.c | 1105 ++++++++++++++++++----------------- include/drm/drm_atomic.h | 21 + include/drm/drm_atomic_helper.h | 37 ++ include/drm/drm_crtc_helper.h | 6 + include/drm/drm_plane_helper.h | 3 + include/linux/clk.h | 14 + 17 files changed, 1963 insertions(+), 1621 deletions(-)
Signature · 1 line
2.1.3