dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/2] drm: show "all" bridges in debugfs
@ 2025-02-26 21:23 Luca Ceresoli
  2025-02-26 21:23 ` [PATCH v8 1/2] drm/bridge: move bridges_show logic from drm_debugfs.c Luca Ceresoli
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Luca Ceresoli @ 2025-02-26 21:23 UTC (permalink / raw)
  To: Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
	Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: Jani Nikula, Dmitry Baryshkov, Thomas Petazzoni, dri-devel,
	linux-kernel, Luca Ceresoli

This series adds a /sys/kernel/debug/dri/bridges file showing all bridges
between drm_bridge_add() and drm_bridge_remove(), which might not be bound
to any encoder and thus not visible anywhere in debugfs.

It also cleans up the DRM bridge debugfs code by moving code to
drm_bridge.c.

Luca

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
---
Changes in v8:
- moved more code to drm_bridge.c, which makes adding '#if CONFIG_DEBUG_FS' unnecessary
- a small fix to a harmless bug
- Link to v7: https://lore.kernel.org/r/20250225-drm-debugfs-show-all-bridges-v7-0-8826037ada37@bootlin.com

This series was initially part of v6 of this other series:
- Link to v6: https://lore.kernel.org/dri-devel/20250206-hotplug-drm-bridge-v6-0-9d6f2c9c3058@bootlin.com/

---
Luca Ceresoli (2):
      drm/bridge: move bridges_show logic from drm_debugfs.c
      drm/debugfs: add top-level 'bridges' file showing all added bridges

 drivers/gpu/drm/drm_bridge.c  | 70 +++++++++++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/drm_debugfs.c | 38 +----------------------
 drivers/gpu/drm/drm_drv.c     |  2 ++
 include/drm/drm_bridge.h      |  3 ++
 4 files changed, 76 insertions(+), 37 deletions(-)
---
base-commit: b439ab75b6382f5c34aec6e87435cf7e58e72a35
change-id: 20250225-drm-debugfs-show-all-bridges-642e870b71e7

Best regards,
-- 
Luca Ceresoli <luca.ceresoli@bootlin.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-03-12  9:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26 21:23 [PATCH v8 0/2] drm: show "all" bridges in debugfs Luca Ceresoli
2025-02-26 21:23 ` [PATCH v8 1/2] drm/bridge: move bridges_show logic from drm_debugfs.c Luca Ceresoli
2025-02-27  8:56   ` Jani Nikula
2025-02-26 21:23 ` [PATCH v8 2/2] drm/debugfs: add top-level 'bridges' file showing all added bridges Luca Ceresoli
2025-02-27  8:59   ` Jani Nikula
2025-03-12  9:59 ` [PATCH v8 0/2] drm: show "all" bridges in debugfs Louis Chauvet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox