Hello Simona, Maxime, Dmitry, On Tue, 17 Sep 2024 10:53:08 +0200 Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx> wrote: > This driver implements the point of a DRM pipeline where a connector allows > removal of all the following bridges up to the panel. This is a quick feedback of the discussions about hotpluggable DRM bridges I had with Maxime and Dmitry during the Linux Plumbers Conference last week, which happened during the discussion I led on Wednesday afternoon and even more in the hallway. It was clear that adding refcounting to DRM bridges and handling gracefully atomic modeset operations during device removal are prerequisites for a hotpluggable bridge in DRM. DSI host drivers that keep a pointer to their device also need to be fixed, but this is well known and was not discussed. Simona's proposal of letting removable bridges be owned by the hotplug connector was not seen as necessarily needed, especially after adding bridge refcounting. Also Maxime mentioned this idea might conflict with a use case that had been brought to his attention, involving bridges and DP MST. So I'm removing this idea from my roadmap -- it can be re-discussed and brought back if needed. There was no clear outcome about the question of whether the hotplug-bridge should still exist as a drm_bridge or rather the DRM core and the bridge drivers should be extended to handle everything. Dmitry seemed to think no hotplug bridge should exist at all, and all bridge drivers should be extended to cope with insertion and removal of the follofing bridge. Ripard's opinion was "I don't care". In her e-mail sent a few hours ago (in the v2 thread) Simona also appears as not having a strong position about this. There will be some time to clarify this as I'm addressing the previously mentioned issues. So by now the roadmap involves the following main steps: 1. add refcounting to DRM bridges (struct drm_bridge) 2. handle gracefully atomic updates during bridge removal 3. avoid DSI host drivers to have dangling pointers to DSI devices 4. finish the hotplug bridge work, moving code to the core and potentially removing the hotplug-bridge itself If you think any other major item is required to support hot-pluggable DRM bridges, don't hesitate to speak out. Best regards, Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com