drm: Revert and fix enable/disable sequence
Subsystems (7)
Tomi Valkeinen
maintainercover drm: Revert and fix enable/disable sequence
Changing the enable/disable sequence in commit c9b1150a68d9 ("drm/atomic-helper: Re-order bridge chain pre-enable and post-disable") has caused regressions on multiple platforms: R-Car, MCDE, Rockchip.
This is an alternate series to Linus' series:
https://lore.kernel.org/all/20251202-mcde-drm-regression-thirdfix-v6-0-f1bffd4ec0fa%40kernel.org/
This series first reverts the original commit and reverts a fix for mediatek which is no longer needed. It then exposes helper functions from DRM core, and finally implements the new sequence only in the tidss driver.
There is one more fix in upstream for the original commit, commit 5d91394f2361 ("drm/exynos: fimd: Guard display clock control with runtime PM calls"), but I have not reverted that one as it looks like a valid patch in its own.
I added Cc stable v6.17+ to all patches, but I didn't add Fixes tags, as I wasn't sure what should they point to. But I could perhaps add Fixes:
<original commit> to all of these.
---
Linus Walleij (1):
drm/atomic-helper: Export and namespace some functions
Tomi Valkeinen (3):
Revert "drm/atomic-helper: Re-order bridge chain pre-enable and post-disable" Revert "drm/mediatek: dsi: Fix DSI host and panel bridge pre-enable order" drm/tidss: Fix enable/disable order
drivers/gpu/drm/drm_atomic_helper.c | 122 ++++++++++++++---- drivers/gpu/drm/mediatek/mtk_dsi.c | 6 - drivers/gpu/drm/tidss/tidss_kms.c | 30 ++++- include/drm/drm_atomic_helper.h | 22 ++++ include/drm/drm_bridge.h | 249 ++++++++++-------------------------- 5 files changed, 214 insertions(+), 215 deletions(-)
---
base-commit: 88e721ab978a86426aa08da520de77430fa7bb84
change-id: 20251205-drm-seq-fix-b4ed1f56604b
Best regards,
Signature · 1 line
Tomi Valkeinen <[email protected]>
Tomi Valkeinen
maintainerPATCH 1/4 Revert "drm/atomic-helper: Re-order bridge chain pre-enable and post-disable"
This reverts commit c9b1150a68d9362a0827609fc0dc1664c0d8bfe1.
Changing the enable/disable sequence has caused regressions on multiple
platforms: R-Car, MCDE, Rockchip. A series (see link below) was sent to fix these, but it was decided that it's better to revert the original patch and change the enable/disable sequence only in the tidss driver.
Reverting this commit breaks tidss's DSI and OLDI outputs, which will be fixed in the following commits.
--- drivers/gpu/drm/drm_atomic_helper.c | 8 +- include/drm/drm_bridge.h | 249 ++++++++++-------------------------- 2 files changed, 70 insertions(+), 187 deletions(-)
drivers/gpu/drm/drm_atomic_helper.c +4 -4
@@ -1341,9 +1341,9 @@ disable_outputs(struct drm_device *dev, struct drm_atomic_state *state) {encoder_bridge_disable (dev, state); -crtc_disable (dev, state); -encoder_bridge_post_disable (dev, state); + +crtc_disable (dev, state); }/**
@@ -1682,10 +1682,10 @@ encoder_bridge_enable(struct drm_device *dev, struct drm_atomic_state *state)void drm_atomic_helper_commit_modeset_enables (struct drm_device *dev,struct drm_atomic_state *state) { -encoder_bridge_pre_enable (dev, state); -crtc_enable (dev, state); +encoder_bridge_pre_enable (dev, state); +encoder_bridge_enable (dev, state);drm_atomic_helper_commit_writebacks (dev, state);
include/drm/drm_bridge.h +66 -183
321 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH 1/4] Revert "drm/atomic-helper: Re-order bridge chain pre-enable and post-disable"
Hi Tomi,
Thank you for posting this series.
It makes sense to change the order in tidss _commit_tail(), than to undo the order changes in the regressed drivers.
Quoted 10 lines · Tomi Valkeinen
This reverts commit
c9b1150a68d9362a0827609fc0dc1664c0d8bfe1.Changing the enable/disable sequence has caused regressions on multiple
platforms: R-Car, MCDE, Rockchip. A series (see link below) was sent to fix these, but it was decided that it's better to revert the original patch and change the enable/disable sequence only in the tidss driver.Reverting this commit breaks tidss's DSI and OLDI outputs, which will be fixed in the following commits.
Quoted 9 lines
Signed-off-by Tomi Valkeinen <[email protected]>Link https://lore.kernel.org/all/20251202-mcde-drm-regression-thirdfix-v6-0-f1bffd4ec0fa%40kernel.org/ open hereFixes c9b1150a68d9 ("drm/atomic-helper: Re-order bridge chain pre-enable and post-disable")Cc [email protected] # v6.17+--- drivers/gpu/drm/drm_atomic_helper.c | 8 +- include/drm/drm_bridge.h | 249 ++++++++++-------------------------- 2 files changed, 70 insertions(+), 187 deletions(-)
Tomi Valkeinen
maintainerPATCH 2/4 Revert "drm/mediatek: dsi: Fix DSI host and panel bridge pre-enable order"
In reply to Tomi ValkeinenThis reverts commit f5b1819193667bf62c3c99d3921b9429997a14b2.
As the original commit (c9b1150a68d9 ("drm/atomic-helper: Re-order bridge chain pre-enable and post-disable")) causing the issue has been reverted, let's revert the fix for mediatek.
--- drivers/gpu/drm/mediatek/mtk_dsi.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/gpu/drm/mediatek/mtk_dsi.c +0 -6
@@ -1002,12 +1002,6 @@ static int mtk_dsi_host_attach(struct mipi_dsi_host *host,return PTR_ERR (dsi->next_bridge); } -/* -* set flag to request the DSI host bridge be pre-enabled before device bridge -* in the chain, so the DSI host is ready when the device bridge is pre-enabled -*/ - dsi->next_bridge->pre_enable_prev_first = true; -drm_bridge_add (&dsi->bridge); ret =component_add (host->dev, &mtk_dsi_component_ops);
Signature · 1 line
2.43.0
Tomi Valkeinen
maintainerPATCH 3/4 drm/atomic-helper: Export and namespace some functions
In reply to Tomi ValkeinenFrom: Linus Walleij <[email protected]>
Export and namespace those not prefixed with drm_* so it becomes possible to write custom commit tail functions in individual drivers using the helper infrastructure.
--- drivers/gpu/drm/drm_atomic_helper.c | 122 +++++++++++++++++++++++++++++------- include/drm/drm_atomic_helper.h | 22 +++++++ 2 files changed, 121 insertions(+), 23 deletions(-)
drivers/gpu/drm/drm_atomic_helper.c +99 -23
@@ -1162,8 +1162,18 @@ crtc_needs_disable(struct drm_crtc_state *old_state, new_state->self_refresh_active; } -static void -encoder_bridge_disable (struct drm_device *dev,struct drm_atomic_state *state) +/** +* drm_atomic_helper_commit_encoder_bridge_disable - disable bridges and encoder +* @dev: DRM device +* @state: the driver state object +* +* Loops over all connectors in the current state and if the CRTC needs +* it, disables the bridge chain all the way, then disables the encoder +* afterwards. +*/ +void +drm_atomic_helper_commit_encoder_bridge_disable (struct drm_device *dev, +struct drm_atomic_state *state) {struct drm_connector *connector;struct drm_connector_state *old_conn_state, *new_conn_state;
@@ -1229,9 +1239,18 @@ encoder_bridge_disable(struct drm_device *dev, struct drm_atomic_state *state) } } } +EXPORT_SYMBOL (drm_atomic_helper_commit_encoder_bridge_disable); -static void -crtc_disable (struct drm_device *dev,struct drm_atomic_state *state) +/** +* drm_atomic_helper_commit_crtc_disable - disable CRTSs +* @dev: DRM device +* @state: the driver state object +* +* Loops over all CRTCs in the current state and if the CRTC needs +* it, disables it. +*/ +void +drm_atomic_helper_commit_crtc_disable (struct drm_device *dev,struct drm_atomic_state *state) {struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state, *new_crtc_state;
@@ -1282,9 +1301,18 @@ crtc_disable(struct drm_device *dev, struct drm_atomic_state *state)drm_crtc_vblank_put (crtc); } } +EXPORT_SYMBOL (drm_atomic_helper_commit_crtc_disable); -static void -encoder_bridge_post_disable (struct drm_device *dev,struct drm_atomic_state *state) +/** +* drm_atomic_helper_commit_encoder_bridge_post_disable - post-disable encoder bridges +* @dev: DRM device +* @state: the driver state object +* +* Loops over all connectors in the current state and if the CRTC needs +* it, post-disables all encoder bridges. +*/ +void +drm_atomic_helper_commit_encoder_bridge_post_disable (struct drm_device *dev,struct drm_atomic_state *state) {struct drm_connector *connector;struct drm_connector_state *old_conn_state, *new_conn_state;
@@ -1335,15 +1363,16 @@ encoder_bridge_post_disable(struct drm_device *dev, struct drm_atomic_state *stadrm_bridge_put (bridge); } } +EXPORT_SYMBOL (drm_atomic_helper_commit_encoder_bridge_post_disable);static void disable_outputs (struct drm_device *dev,struct drm_atomic_state *state) { -encoder_bridge_disable (dev, state); +drm_atomic_helper_commit_encoder_bridge_disable (dev, state); -encoder_bridge_post_disable (dev, state); +drm_atomic_helper_commit_encoder_bridge_post_disable (dev, state); -crtc_disable (dev, state); +drm_atomic_helper_commit_crtc_disable (dev, state); }/**
@@ -1446,8 +1475,17 @@ void drm_atomic_helper_calc_timestamping_constants(struct drm_atomic_state *stat }EXPORT_SYMBOL (drm_atomic_helper_calc_timestamping_constants); -static void -crtc_set_mode (struct drm_device *dev,struct drm_atomic_state *state) +/** +* drm_atomic_helper_commit_crtc_set_mode - set the new mode +* @dev: DRM device +* @state: the driver state object +* +* Loops over all connectors in the current state and if the mode has +* changed, change the mode of the CRTC, then call down the bridge +* chain and change the mode in all bridges as well. +*/ +void +drm_atomic_helper_commit_crtc_set_mode (struct drm_device *dev,struct drm_atomic_state *state) {struct drm_crtc *crtc;struct drm_crtc_state *new_crtc_state;
@@ -1508,6 +1546,7 @@ crtc_set_mode(struct drm_device *dev, struct drm_atomic_state *state)drm_bridge_put (bridge); } } +EXPORT_SYMBOL (drm_atomic_helper_commit_crtc_set_mode);/** * drm_atomic_helper_commit_modeset_disables - modeset commit to disable outputs
@@ -1531,12 +1570,21 @@ void drm_atomic_helper_commit_modeset_disables(struct drm_device *dev,drm_atomic_helper_update_legacy_modeset_state (dev, state);drm_atomic_helper_calc_timestamping_constants (state); -crtc_set_mode (dev, state); +drm_atomic_helper_commit_crtc_set_mode (dev, state); }EXPORT_SYMBOL (drm_atomic_helper_commit_modeset_disables); -static void drm_atomic_helper_commit_writebacks (struct drm_device *dev, -struct drm_atomic_state *state) +/** +* drm_atomic_helper_commit_writebacks - issue writebacks +* @dev: DRM device +* @state: atomic state object being committed +* +* This loops over the connectors, checks if the new state requires +* a writeback job to be issued and in that case issues an atomic +* commit on each connector. +*/ +void drm_atomic_helper_commit_writebacks (struct drm_device *dev, +struct drm_atomic_state *state) {struct drm_connector *connector;struct drm_connector_state *new_conn_state;
@@ -1555,9 +1603,18 @@ static void drm_atomic_helper_commit_writebacks(struct drm_device *dev, } } } +EXPORT_SYMBOL (drm_atomic_helper_commit_writebacks); -static void -encoder_bridge_pre_enable (struct drm_device *dev,struct drm_atomic_state *state) +/** +* drm_atomic_helper_commit_encoder_bridge_pre_enable - pre-enable bridges +* @dev: DRM device +* @state: atomic state object being committed +* +* This loops over the connectors and if the CRTC needs it, pre-enables +* the entire bridge chain. +*/ +void +drm_atomic_helper_commit_encoder_bridge_pre_enable (struct drm_device *dev,struct drm_atomic_state *state) {struct drm_connector *connector;struct drm_connector_state *new_conn_state;
@@ -1588,9 +1645,18 @@ encoder_bridge_pre_enable(struct drm_device *dev, struct drm_atomic_state *statedrm_bridge_put (bridge); } } +EXPORT_SYMBOL (drm_atomic_helper_commit_encoder_bridge_pre_enable); -static void -crtc_enable (struct drm_device *dev,struct drm_atomic_state *state) +/** +* drm_atomic_helper_commit_crtc_enable - enables the CRTCs +* @dev: DRM device +* @state: atomic state object being committed +* +* This loops over CRTCs in the new state, and of the CRTC needs +* it, enables it. +*/ +void +drm_atomic_helper_commit_crtc_enable (struct drm_device *dev,struct drm_atomic_state *state) {struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state;
@@ -1619,9 +1685,18 @@ crtc_enable(struct drm_device *dev, struct drm_atomic_state *state) } } } +EXPORT_SYMBOL (drm_atomic_helper_commit_crtc_enable); -static void -encoder_bridge_enable (struct drm_device *dev,struct drm_atomic_state *state) +/** +* drm_atomic_helper_commit_encoder_bridge_enable - enables the bridges +* @dev: DRM device +* @state: atomic state object being committed +* +* This loops over all connectors in the new state, and of the CRTC needs +* it, enables the entire bridge chain. +*/ +void +drm_atomic_helper_commit_encoder_bridge_enable (struct drm_device *dev,struct drm_atomic_state *state) {struct drm_connector *connector;struct drm_connector_state *new_conn_state;
@@ -1664,6 +1739,7 @@ encoder_bridge_enable(struct drm_device *dev, struct drm_atomic_state *state)drm_bridge_put (bridge); } } +EXPORT_SYMBOL (drm_atomic_helper_commit_encoder_bridge_enable);/** * drm_atomic_helper_commit_modeset_enables - modeset commit to enable outputs
@@ -1682,11 +1758,11 @@ encoder_bridge_enable(struct drm_device *dev, struct drm_atomic_state *state)void drm_atomic_helper_commit_modeset_enables (struct drm_device *dev,struct drm_atomic_state *state) { -crtc_enable (dev, state); +drm_atomic_helper_commit_crtc_enable (dev, state); -encoder_bridge_pre_enable (dev, state); +drm_atomic_helper_commit_encoder_bridge_pre_enable (dev, state); -encoder_bridge_enable (dev, state); +drm_atomic_helper_commit_encoder_bridge_enable (dev, state);drm_atomic_helper_commit_writebacks (dev, state); }
include/drm/drm_atomic_helper.h +22 -0
@@ -60,6 +60,12 @@ int drm_atomic_helper_check_plane_state(struct drm_plane_state *plane_state,int drm_atomic_helper_check_planes (struct drm_device *dev,struct drm_atomic_state *state);int drm_atomic_helper_check_crtc_primary_plane (struct drm_crtc_state *crtc_state); +void drm_atomic_helper_commit_encoder_bridge_disable (struct drm_device *dev, +struct drm_atomic_state *state); +void drm_atomic_helper_commit_crtc_disable (struct drm_device *dev, +struct drm_atomic_state *state); +void drm_atomic_helper_commit_encoder_bridge_post_disable (struct drm_device *dev, +struct drm_atomic_state *state);int drm_atomic_helper_check (struct drm_device *dev,struct drm_atomic_state *state);void drm_atomic_helper_commit_tail (struct drm_atomic_state *state);
@@ -89,8 +95,24 @@ drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev,void drm_atomic_helper_calc_timestamping_constants (struct drm_atomic_state *state); +void drm_atomic_helper_commit_crtc_set_mode (struct drm_device *dev, +struct drm_atomic_state *state); +void drm_atomic_helper_commit_modeset_disables (struct drm_device *dev,struct drm_atomic_state *state); + +void drm_atomic_helper_commit_writebacks (struct drm_device *dev, +struct drm_atomic_state *state); + +void drm_atomic_helper_commit_encoder_bridge_pre_enable (struct drm_device *dev, +struct drm_atomic_state *state); + +void drm_atomic_helper_commit_crtc_enable (struct drm_device *dev, +struct drm_atomic_state *state); + +void drm_atomic_helper_commit_encoder_bridge_enable (struct drm_device *dev, +struct drm_atomic_state *state); +void drm_atomic_helper_commit_modeset_enables (struct drm_device *dev,struct drm_atomic_state *old_state);
Signature · 1 line
2.43.0
Re: [PATCH 3/4] drm/atomic-helper: Export and namespace some functions
Quoted 12 lines · Tomi Valkeinen
From: Linus Walleij <[email protected]>
Export and namespace those not prefixed with drm_* so it becomes possible to write custom commit tail functions in individual drivers using the helper infrastructure.
Tested-by Marek Vasut <[email protected]>Reviewed-by Maxime Ripard <[email protected]>Signed-off-by Linus Walleij <[email protected]>[Tomi: Resolved conflicts, fixed indentation]Signed-off-by Tomi Valkeinen <[email protected]>Cc [email protected] # v6.17+
Quoted 5 lines
--- drivers/gpu/drm/drm_atomic_helper.c | 122 +++++++++++++++++++++++++++++------- include/drm/drm_atomic_helper.h | 22 +++++++ 2 files changed, 121 insertions(+), 23 deletions(-)
Tomi Valkeinen
maintainerPATCH 4/4 drm/tidss: Fix enable/disable order
In reply to Tomi ValkeinenTI's OLDI and DSI encoders need to be set up before the crtc is enabled, but the DRM helpers will enable the crtc first. This causes various issues on TI platforms, like visual artifacts or crtc sync lost warnings.
Thus drm_atomic_helper_commit_modeset_enables() and drm_atomic_helper_commit_modeset_disables() cannot be used, as they enable the crtc before bridges' pre-enable, and disable the crtc after bridges' post-disable.
Open code the drm_atomic_helper_commit_modeset_enables() and drm_atomic_helper_commit_modeset_disables(), and first call the bridges' pre-enables, then crtc enable, then bridges' post-enable (and vice versa for disable).
--- drivers/gpu/drm/tidss/tidss_kms.c | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-)
drivers/gpu/drm/tidss/tidss_kms.c +27 -3
@@ -26,9 +26,33 @@ static void tidss_atomic_commit_tail(struct drm_atomic_state *old_state)tidss_runtime_get (tidss); -drm_atomic_helper_commit_modeset_disables (ddev, old_state); -drm_atomic_helper_commit_planes (ddev, old_state,DRM_PLANE_COMMIT_ACTIVE_ONLY ); -drm_atomic_helper_commit_modeset_enables (ddev, old_state); +/* +* TI's OLDI and DSI encoders need to be set up before the crtc is +* enabled. Thus drm_atomic_helper_commit_modeset_enables() and +* drm_atomic_helper_commit_modeset_disables() cannot be used here, as +* they enable the crtc before bridges' pre-enable, and disable the crtc +* after bridges' post-disable. +* +* Open code the functions here and first call the bridges' pre-enables, +* then crtc enable, then bridges' post-enable (and vice versa for +* disable). +*/ + +drm_atomic_helper_commit_encoder_bridge_disable (ddev, old_state); +drm_atomic_helper_commit_crtc_disable (ddev, old_state); +drm_atomic_helper_commit_encoder_bridge_post_disable (ddev, old_state); + +drm_atomic_helper_update_legacy_modeset_state (ddev, old_state); +drm_atomic_helper_calc_timestamping_constants (old_state); +drm_atomic_helper_commit_crtc_set_mode (ddev, old_state); + +drm_atomic_helper_commit_planes (ddev, old_state, +DRM_PLANE_COMMIT_ACTIVE_ONLY ); + +drm_atomic_helper_commit_encoder_bridge_pre_enable (ddev, old_state); +drm_atomic_helper_commit_crtc_enable (ddev, old_state); +drm_atomic_helper_commit_encoder_bridge_enable (ddev, old_state); +drm_atomic_helper_commit_writebacks (ddev, old_state);drm_atomic_helper_commit_hw_done (old_state);drm_atomic_helper_wait_for_flip_done (ddev, old_state);
Signature · 1 line
2.43.0
Re: [PATCH 4/4] drm/tidss: Fix enable/disable order
Quoted 15 lines · Tomi Valkeinen
TI's OLDI and DSI encoders need to be set up before the crtc is enabled, but the DRM helpers will enable the crtc first. This causes various issues on TI platforms, like visual artifacts or crtc sync lost warnings.
Thus
drm_atomic_helper_commit_modeset_enables()anddrm_atomic_helper_commit_modeset_disables()cannot be used, as they enable the crtc before bridges' pre-enable, and disable the crtc after bridges' post-disable.Open code the
drm_atomic_helper_commit_modeset_enables()anddrm_atomic_helper_commit_modeset_disables(), and first call the bridges' pre-enables, then crtc enable, then bridges' post-enable (and vice versa for disable).
Quoted 6 lines
Signed-off-by Tomi Valkeinen <[email protected]>Cc [email protected] # v6.17+--- drivers/gpu/drm/tidss/tidss_kms.c | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-)
Quoted 18 lines · Tomi Valkeinen
Changing the enable/disable sequence in commit
c9b1150a68d9("drm/atomic-helper: Re-order bridge chain pre-enable and post-disable") has caused regressions on multiple platforms: R-Car, MCDE, Rockchip.This is an alternate series to Linus' series:
https://lore.kernel.org/all/20251202-mcde-drm-regression-thirdfix-v6-0-f1bffd4ec0fa%40kernel.org/
This series first reverts the original commit and reverts a fix for mediatek which is no longer needed. It then exposes helper functions from DRM core, and finally implements the new sequence only in the tidss driver.
There is one more fix in upstream for the original commit, commit
5d91394f2361("drm/exynos: fimd: Guard display clock control with runtime PM calls"), but I have not reverted that one as it looks like a valid patch in its own.
Quoted 5 lines
I added Cc stable v6.17+ to all patches, but I didn't add Fixes tags, as I wasn't sure what should they point to. But I could perhaps add Fixes:
<original commit> to all of these.Signed-off-by Tomi Valkeinen <[email protected]>
The series:
In my opinion Laurent is the more senior maintainer and my trust level in him is the highest of all the maintainers, so I think we should apply this revert series if Laurent ACKs that this is what he thinks is best for DRI.
Yours,
Linus Walleij
Quoted 13 lines · Tomi Valkeinen
Changing the enable/disable sequence in commit
c9b1150a68d9("drm/atomic-helper: Re-order bridge chain pre-enable and post-disable") has caused regressions on multiple platforms: R-Car, MCDE, Rockchip.This is an alternate series to Linus' series:
https://lore.kernel.org/all/20251202-mcde-drm-regression-thirdfix-v6-0-f1bffd4ec0fa%40kernel.org/
This series first reverts the original commit and reverts a fix for mediatek which is no longer needed. It then exposes helper functions from DRM core, and finally implements the new sequence only in the tidss driver.
Quoted 4 lines
There is one more fix in upstream for the original commit, commit
5d91394f2361("drm/exynos: fimd: Guard display clock control with runtime PM calls"), but I have not reverted that one as it looks like a valid patch in its own.
Right, that patch is a fix on its own, the changes in the atomic sequence just revealed the issue.
Quoted 20 lines
I added Cc stable v6.17+ to all patches, but I didn't add Fixes tags, as I wasn't sure what should they point to. But I could perhaps add Fixes:
<original commit> to all of these.Signed-off-by Tomi Valkeinen <[email protected]>---
Linus Walleij (1):
drm/atomic-helper: Export and namespace some functionsTomi Valkeinen (3):
Revert "drm/atomic-helper: Re-order bridge chain pre-enable and post-disable" Revert "drm/mediatek: dsi: Fix DSI host and panel bridge pre-enable order" drm/tidss: Fix enable/disable orderdrivers/gpu/drm/drm_atomic_helper.c | 122 ++++++++++++++---- drivers/gpu/drm/mediatek/mtk_dsi.c | 6 - drivers/gpu/drm/tidss/tidss_kms.c | 30 ++++- include/drm/drm_atomic_helper.h | 22 ++++ include/drm/drm_bridge.h | 249 ++++++++++-------------------------- 5 files changed, 214 insertions(+), 215 deletions(-)
Quoted 3 lines
---
base-commit:88e721ab978a86426aa08da520de77430fa7bb84
change-id: 20251205-drm-seq-fix-b4ed1f56604b
Best regards
Signature · 2 lines
Marek Szyprowski, PhD Samsung R&D Institute Poland
Quoted 7 lines · Tomi Valkeinen
Changing the enable/disable sequence in commit
c9b1150a68d9("drm/atomic-helper: Re-order bridge chain pre-enable and post-disable") has caused regressions on multiple platforms: R-Car, MCDE, Rockchip.This is an alternate series to Linus' series:
[ ... ]
Thanks!
Maxime
Tomi Valkeinen
maintainerHi,
Quoted 13 lines · Tomi Valkeinen
Changing the enable/disable sequence in commit
c9b1150a68d9("drm/atomic-helper: Re-order bridge chain pre-enable and post-disable") has caused regressions on multiple platforms: R-Car, MCDE, Rockchip.This is an alternate series to Linus' series:
https://lore.kernel.org/all/20251202-mcde-drm-regression-thirdfix-v6-0-f1bffd4ec0fa%40kernel.org/
This series first reverts the original commit and reverts a fix for mediatek which is no longer needed. It then exposes helper functions from DRM core, and finally implements the new sequence only in the tidss driver.
Quoted 8 lines
There is one more fix in upstream for the original commit, commit
5d91394f2361("drm/exynos: fimd: Guard display clock control with runtime PM calls"), but I have not reverted that one as it looks like a valid patch in its own.I added Cc stable v6.17+ to all patches, but I didn't add Fixes tags, as I wasn't sure what should they point to. But I could perhaps add Fixes:
<original commit> to all of these.
There has been no comments, so I assume this is the way to go.
Should we merge this series as a fix for 6.18 rcs?
Tomi
Quoted 19 lines · Tomi Valkeinen
Quoted 18 lines · Tomi Valkeinen
Changing the enable/disable sequence in commit
c9b1150a68d9("drm/atomic-helper: Re-order bridge chain pre-enable and post-disable") has caused regressions on multiple platforms: R-Car, MCDE, Rockchip.This is an alternate series to Linus' series:
https://lore.kernel.org/all/20251202-mcde-drm-regression-thirdfix-v6-0-f1bffd4ec0fa%40kernel.org/
This series first reverts the original commit and reverts a fix for mediatek which is no longer needed. It then exposes helper functions from DRM core, and finally implements the new sequence only in the tidss driver.
There is one more fix in upstream for the original commit, commit
5d91394f2361("drm/exynos: fimd: Guard display clock control with runtime PM calls"), but I have not reverted that one as it looks like a valid patch in its own.
Quoted 7 lines
Quoted 3 lines
I added Cc stable v6.17+ to all patches, but I didn't add Fixes tags, as I wasn't sure what should they point to. But I could perhaps add Fixes:
<original commit> to all of these.There has been no comments, so I assume this is the way to go.
Should we merge this series as a fix for 6.18 rcs?
Too late now, so let's merge it as a fix for v6.19 rcs!
Yours,
Linus Walleij
Tomi Valkeinen
maintainerHi,
Quoted 25 lines · Linus Walleij
Quoted 22 lines · Tomi Valkeinen
Quoted 21 lines · Tomi Valkeinen
Changing the enable/disable sequence in commit
c9b1150a68d9("drm/atomic-helper: Re-order bridge chain pre-enable and post-disable") has caused regressions on multiple platforms: R-Car, MCDE, Rockchip.This is an alternate series to Linus' series:
https://lore.kernel.org/all/20251202-mcde-drm-regression-thirdfix-v6-0-f1bffd4ec0fa%40kernel.org/
This series first reverts the original commit and reverts a fix for mediatek which is no longer needed. It then exposes helper functions from DRM core, and finally implements the new sequence only in the tidss driver.
There is one more fix in upstream for the original commit, commit
5d91394f2361("drm/exynos: fimd: Guard display clock control with runtime PM calls"), but I have not reverted that one as it looks like a valid patch in its own.I added Cc stable v6.17+ to all patches, but I didn't add Fixes tags, as I wasn't sure what should they point to. But I could perhaps add Fixes:
<original commit> to all of these.
Quoted 5 lines
Quoted 3 lines
There has been no comments, so I assume this is the way to go.
Should we merge this series as a fix for 6.18 rcs?
Too late now, so let's merge it as a fix for v6.19 rcs!
Ah, right. Indeed, I meant v6.19 rcs.
Tomi
Quoted 5 lines · Tomi Valkeinen
Quoted 3 lines
Quoted 1 line
Should we merge this series as a fix for 6.18 rcs?
Too late now, so let's merge it as a fix for v6.19 rcs!
Ah, right. Indeed, I meant v6.19 rcs.
Are you applying it or should I?
Not sure if you want some special timing, like outside of holidays.
Yours,
Linus Walleij
Tomi Valkeinen
maintainerHi,
Quoted 5 lines · Linus Walleij
Quoted 2 lines · Tomi Valkeinen
Quoted 2 lines
Quoted 1 line
Should we merge this series as a fix for 6.18 rcs?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Too late now, so let's merge it as a fix for v6.19 rcs!
Ah, right. Indeed, I meant v6.19 rcs.
Are you applying it or should I?
Not sure if you want some special timing, like outside of holidays.
Oh. No, I'm not a DRM maintainer, so I was waiting for someone to merge this. From my point of view it's ready for merging.
Tomi
Quoted 8 lines · Tomi Valkeinen
Quoted 7 lines · Linus Walleij
Quoted 4 lines · Tomi Valkeinen
Quoted 3 lines
Quoted 1 line
Should we merge this series as a fix for 6.18 rcs?
Too late now, so let's merge it as a fix for v6.19 rcs!
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Ah, right. Indeed, I meant v6.19 rcs.
Are you applying it or should I?
Not sure if you want some special timing, like outside of holidays.Oh. No, I'm not a DRM maintainer, so I was waiting for someone to merge this. From my point of view it's ready for merging.
Aha OK, I applied and pushed it now. I added the same Fixes: tag as on patch 1/4 to all 4 patches in the process.
Yours,
Linus Walleij
Quoted 16 lines · Linus Walleij
Quoted 14 lines · Tomi Valkeinen
Quoted 12 lines · Linus Walleij
Quoted 5 lines · Tomi Valkeinen
Quoted 3 lines
Quoted 1 line
Should we merge this series as a fix for 6.18 rcs?
Too late now, so let's merge it as a fix for v6.19 rcs!
Ah, right. Indeed, I meant v6.19 rcs.
Are you applying it or should I?
Not sure if you want some special timing, like outside of holidays.
Quoted 5 lines
Quoted 2 lines
Oh. No, I'm not a DRM maintainer, so I was waiting for someone to merge this. From my point of view it's ready for merging.
Aha OK, I applied and pushed it now. I added the same Fixes: tag as on patch 1/4 to all 4 patches in the process.
Thank you !