Hello Luca,
Thank you very much for your review and suggestions.
> -----邮件原件-----
> 发件人: Luca Ceresoli <[email protected]>
> 发送时间: 2026年11月28日 1:05
> 收件人: Luo Liu <[email protected]>; Maarten Lankhorst
> <[email protected]>; Maxime Ripard <[email protected]>;
> Thomas Zimmermann <[email protected]>; Liviu Dudau
> <[email protected]>; Russell King <[email protected]>;
> [email protected]
> 抄送: Ayan Halder <[email protected]>; Andrzej Hajda
> <[email protected]>; Neil Armstrong <[email protected]>;
> Robert Foss <[email protected]>; Laurent Pinchart
> <[email protected]>; Jonas Karlman <[email protected]>;
> Jernej Skrabec <[email protected]>; Kory Maincent
> <[email protected]>; Luca Ceresoli <[email protected]>;
> David Airlie <[email protected]>; Simona Vetter <[email protected]>;
> [email protected]; cix-kernel-upstream
> <[email protected]>; Wuyi Shen (沈武义)
> <[email protected]>
> 主题: Re: [PATCH v3 0/4] drm/komeda: Use the bridge connector
>
> EXTERNAL EMAIL
>
> Hello Luo,
>
> On Tue Nov 24, 2026 at 10:41 AM CET, Luo Liu wrote:
> > The first patch converts komeda to the new DRM bridge model. Bridges
> > following that model no longer create a connector themselves, so the
> > display driver attaches them with DRM_BRIDGE_ATTACH_NO_CONNECTOR
> and
> > creates one connector for the whole chain with
> > drm_bridge_connector_init().
> >
> > The second patch fixes the teardown path that the conversion exposes.
> > drm_bridge_connector_init() creates the connector with
> > drmm_connector_init(), which provides no ->destroy hook and leaves the
> > cleanup to a managed action. The drm_mode_config_cleanup() call in
> > komeda_kms_detach(), and in the komeda_kms_attach() error paths, drops
> > the connector references directly, so drm_connector_free() ends up
> > calling the NULL ->destroy pointer.
> >
> > Switching to drmm_mode_config_init() lets the core release the mode
> > configuration after the connector cleanup actions have run. The komeda
> > private objects are then finalized by walking the pipelines instead of
> > mode_config.privobj_list, which also holds the bridges that the
> > encoder cleanup releases.
> >
> > The third patch fixes a latent interrupt race found in review. The IRQ
> > is still registered after komeda_kms_detach(), and the
> > komeda_kms_attach() error path, clear drm->dev_private, so a shared
> > interrupt can reach komeda_kms_irq_handler() and dereference a NULL
> > mdev. It is independent of the conversion.
> >
> > The fourth patch fixes the tda998x bridge, which accepts the
> > connector-less attach flag but keeps using its own connector. In that
> > mode the connector is never initialised, so the bridge reads an empty
> > display_info and ELD and stays in DVI mode without sending hotplug
> > events. Use the connector provided to the detect and EDID read
> > operations, report hotplug through drm_bridge_hpd_notify() and
> > advertise interlaced mode support through the bridge.
> >
> > Changes in v3:
> > - Add a fix for the tda998x bridge, which accepts
> > DRM_BRIDGE_ATTACH_NO_CONNECTOR but keeps using its own
> connector.
>
> There are two v3 series you've sent the same day. Which is the right one to
> review?
>
> Please reply to one of them saying "ignore this series, it was sent by
> mistake" or
> similar.
Sorry for the duplicate posting, that one was sent by mistake and can be
ignored — apologies if you already spent time on the earlier version.
Sashiko reported another high-severity issue, which I have fixed in v4;
the details are in the v4 changelog. Please review v4 only, the earlier
versions can be dropped. Thanks!
Best regards,
Luo
>
> Luca
>
> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
本邮件及其附件包含CIX公司的保密信息,受法律保护,仅供本邮件指定的收件人查阅。严禁任何未经授权的使用、传播、分发或复制本邮件及其任何内容。此限制适用于指定收件人以外的所有人员,包括未经明确授权处理此类信息的CIX公司员工或代理人。若您误收本邮件,请立即通知发件人,并永久删除邮件及所有附件。互联网传输无法保证及时性、安全性、完整性和无病毒性,CIX公司对任何传输错误或遗漏概不承担责任。