Skip to contentSkip to conversation

drm/atomic-helper: Add a note in drm_atomic_helper_reset_crtc() kernel-doc

PATCH In review Herve Codina 3 participants 3 messages Feb 20, 2025 – Feb 21, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/atomic-helper: Add a note in drm_atomic_helper_reset_crtc() kernel-doc

As suggested in [0], add a note indicating that drm_atomic_helper_reset_crtc() can be a no-op in some cases.

[0]:https://lore.kernel.org/all/[email protected]/

---
This patch applies on top of the following commit available in drm-misc
ab83b7f6a0c1 ("drm/atomic-helper: Introduce drm_atomic_helper_reset_crtc()")

 drivers/gpu/drm/drm_atomic_helper.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_atomic_helper.c +4 -0
index 0a636c398578..1f93b0a855de 100644
@@ -3371,6 +3371,10 @@ EXPORT_SYMBOL(drm_atomic_helper_disable_all);
  * This implies a reset of all active components available between the CRTC and
  * connectors.
  *
+ * NOTE: This relies on resetting &drm_crtc_state.connectors_changed.
+ * For drivers which optimize out unnecessary modesets this will result in
+ * a no-op commit, achieving nothing.
+ *
  * Returns:
  * 0 on success or a negative error code on failure.
  */
Signature · 1 line
2.48.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Herve Codina

As suggested in [0], add a note indicating that drm_atomic_helper_reset_crtc() can be a no-op in some cases.

[0]:https://lore.kernel.org/all/[email protected]/

I'm assuming you or someone else at bootling has commit rights? Otherwise I guess on Maxime to get that sorted.
-Sima

Quoted 25 lines

---
This patch applies on top of the following commit available in drm-misc
ab83b7f6a0c1 ("drm/atomic-helper: Introduce drm_atomic_helper_reset_crtc()")

 drivers/gpu/drm/drm_atomic_helper.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_atomic_helper.c +4 -0
index 0a636c398578..1f93b0a855de 100644
@@ -3371,6 +3371,10 @@ EXPORT_SYMBOL(drm_atomic_helper_disable_all);
  * This implies a reset of all active components available between the CRTC and
  * connectors.
  *
+ * NOTE: This relies on resetting &drm_crtc_state.connectors_changed.
+ * For drivers which optimize out unnecessary modesets this will result in
+ * a no-op commit, achieving nothing.
+ *
  * Returns:
  * 0 on success or a negative error code on failure.
  */
Signature · 1 line
2.48.1
Signature · 3 lines
Simona Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#2 lore raw

Le 21/02/2025 à 10:51, Simona Vetter a écrit :

Quoted 11 lines · Herve Codina
Quoted 6 lines

As suggested in [0], add a note indicating that drm_atomic_helper_reset_crtc() can be a no-op in some cases.

[0]:https://lore.kernel.org/all/[email protected]/

I'm assuming you or someone else at bootling has commit rights?

Yes, I have!

Quoted 3 lines

Otherwise
I guess on Maxime to get that sorted.
-Sima

Applied on drm-misc-next, thanks!

Louis Chauvet

Quoted 26 lines
Quoted 25 lines

---
This patch applies on top of the following commit available in drm-misc
ab83b7f6a0c1 ("drm/atomic-helper: Introduce drm_atomic_helper_reset_crtc()")

  drivers/gpu/drm/drm_atomic_helper.c | 4 ++++
  1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_atomic_helper.c +4 -0
index 0a636c398578..1f93b0a855de 100644
@@ -3371,6 +3371,10 @@ EXPORT_SYMBOL(drm_atomic_helper_disable_all);
   * This implies a reset of all active components available between the CRTC and
   * connectors.
   *
+ * NOTE: This relies on resetting &drm_crtc_state.connectors_changed.
+ * For drivers which optimize out unnecessary modesets this will result in
+ * a no-op commit, achieving nothing.
+ *
   * Returns:
   * 0 on success or a negative error code on failure.
   */
Signature · 1 line
2.48.1
Signature · 3 lines
Louis Chauvet, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com