All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/2] drm/bridge: cdns-mhdp8546: order teardown against producers
@ 2026-11-15 11:48 Hongyan Xu
  2026-11-15 11:48 ` [RFC PATCH v2 1/2] drm/bridge: protect complete HPD helpers during unplug Hongyan Xu
  2026-11-15 11:48 ` [RFC PATCH v2 2/2] drm/bridge: cdns-mhdp8546: exclude producers before teardown Hongyan Xu
  0 siblings, 2 replies; 4+ messages in thread
From: Hongyan Xu @ 2026-11-15 11:48 UTC (permalink / raw)
  To: Andrzej Hajda, Neil Armstrong, Robert Foss
  Cc: Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
	Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	Simona Vetter, David Airlie, Luca Ceresoli, dri-devel,
	linux-kernel, stable

The bridge teardown cancelled work after the controller resources were
released, and the atomic hooks were not excluded from re-queuing it.
This RFC uses the current bridge unplug critical section for the whole
resource-facing hooks and work callbacks, keeps a reference for the
asynchronous firmware callback, and drains the IRQ and all work items
before the controller and PHY are stopped.

Patch 1 extends the HPD helpers so unplug also covers their mutexes and
clears the registered callback while the mutexes still exist.  Patch 2
applies the driver-side lifetime repair.


Hongyan Xu (2):
  drm/bridge: protect complete HPD helpers during unplug
  drm/bridge: cdns-mhdp8546: exclude producers before teardown

 .../drm/bridge/cadence/cdns-mhdp8546-core.c   | 333 ++++++++++++++----
 .../drm/bridge/cadence/cdns-mhdp8546-core.h   |   2 +-
 .../drm/bridge/cadence/cdns-mhdp8546-hdcp.c   |  76 +++-
 drivers/gpu/drm/drm_bridge.c                  |  41 +++
 4 files changed, 365 insertions(+), 87 deletions(-)

-- 
2.50.1.windows.1

Discovery: found by the author's in-house static analysis tool.

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

end of thread, other threads:[~2026-11-15 12:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-15 11:48 [RFC PATCH v2 0/2] drm/bridge: cdns-mhdp8546: order teardown against producers Hongyan Xu
2026-11-15 11:48 ` [RFC PATCH v2 1/2] drm/bridge: protect complete HPD helpers during unplug Hongyan Xu
2026-11-15 11:48 ` [RFC PATCH v2 2/2] drm/bridge: cdns-mhdp8546: exclude producers before teardown Hongyan Xu
2026-11-15 12:14   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.