]> Gentwo Git Trees - linux/.git/commit
drm/debugfs: show lingering bridges
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Mon, 15 Sep 2025 10:12:47 +0000 (12:12 +0200)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 23 Sep 2025 20:20:05 +0000 (22:20 +0200)
commit27312a8f24419b5fe544e30f75d692492790304c
tree151fd0712132e6ed21f353c1526b90bda953f6c8
parent17805a15d1751f5d6bb06f924f9bed216feb8db7
drm/debugfs: show lingering bridges

The usefulness of /sys/kernel/debug/dri/bridges is limited as it only shows
bridges between drm_bridge_add() and drm_bridge_remove(). However
refcounted bridges can stay allocated and lingering for a long time after
drm_bridge_remove(), and a memory leak due to a missing drm_bridge_put()
would not be visible in this debugfs file.

Add lingering bridges to the /sys/kernel/debug/dri/bridges output.

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250915-drm-bridge-debugfs-removed-v9-2-6e5c0aff5de9@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/drm_bridge.c