* Re: [PATCH v3 00/22] drm: convert all bridges to devm_drm_bridge_alloc()
2025-05-21 14:22 ` [PATCH v3 00/22] drm: convert all bridges to devm_drm_bridge_alloc() Luca Ceresoli
@ 2025-05-22 3:20 ` Liu Ying
2025-05-22 7:28 ` Luca Ceresoli
2025-05-22 15:01 ` Maxime Ripard
2025-05-22 14:57 ` Maxime Ripard
2025-05-22 15:11 ` Inki Dae
2 siblings, 2 replies; 12+ messages in thread
From: Liu Ying @ 2025-05-22 3:20 UTC (permalink / raw)
To: Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Jagan Teki, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, Douglas Anderson,
Chun-Kuang Hu, Krzysztof Kozlowski
Cc: Anusha Srivatsa, Paul Kocialkowski, Dmitry Baryshkov, Hui Pu,
Thomas Petazzoni, dri-devel, asahi, linux-kernel, chrome-platform,
imx, linux-arm-kernel, linux-mediatek, linux-amlogic,
linux-renesas-soc, platform-driver-x86, linux-samsung-soc,
linux-arm-msm, freedreno, linux-stm32, Louis Chauvet, Alim Akhtar,
Inki Dae, Kyungmin Park, Seung-Woo Kim, Manikandan Muralidharan,
Adam Ford, Adrien Grassein, Aleksandr Mishin, Andy Yan,
AngeloGioacchino Del Regno, Benson Leung, Biju Das,
Christoph Fritz, Cristian Ciocaltea, Detlev Casanova,
Dharma Balasubiramani, Guenter Roeck, Heiko Stuebner, Jani Nikula,
Janne Grunau, Jerome Brunet, Jesse Van Gavere, Kevin Hilman,
Kieran Bingham, Martin Blumenstingl, Matthias Brugger,
Philipp Zabel, Phong LE, Sasha Finkelstein, Sugar Zhang,
Sui Jingfeng, Tomi Valkeinen, Vitalii Mordan, Rob Herring (Arm),
Hsin-Te Yuan, Pin-yen Lin, Xin Ji, Aradhya Bhatia, Tomi Valkeinen,
Ian Ray, Martyn Welch, Peter Senna Tschudin, Helge Deller,
Kuninori Morimoto, Laurent Pinchart, Alexandre Torgue,
Maxime Coquelin, Philippe Cornu, Raphael Gallais-Pou,
Yannick Fertre, Alain Volmat, Raphael Gallais-Pou, Michal Simek,
Jonathan Corbet, linux-doc
On 05/21/2025, Luca Ceresoli wrote:
> Hello Maxime, Shawn, Liu, all,
>
> On Fri, 09 May 2025 15:53:26 +0200
> Luca Ceresoli <luca.ceresoli@bootlin.com> wrote:
>
>> devm_drm_bridge_alloc() [0] is the new API to allocate and initialize a DRM
>> bridge, and the only one supported from now on. It is the first milestone
>> towards removal of bridges from a still existing DRM pipeline without
>> use-after-free.
>
> I applied on drm-misc-next patches 3-17,20-21 as they match all the
> criteria:
> - At least a Acked-by (or R-by maintainers)
> - patch is for drm-misc
>
> Being my very first commits to drm-misc, I tried to be careful, and
> double checked all the patches with Louis (thanks!).
>
> Here are the pending questions and plan for the remaining patches.
>
>> Revert "drm/exynos: mic: convert to devm_drm_bridge_alloc() API"
>
> This reverts the commit applied my mistake:
> https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/91c5c7b5bb2dd09b43b025bce6d790d3c79f4518
>
> Neither the original patch nor the revert has been reviewed/acked.
>
> As the commit was a mistake, I'm applying the revert by the end of this
> week (i.e. on Friday) unless there are better instructions.
>
>> drm: convert many bridge drivers from devm_kzalloc() to devm_drm_bridge_alloc() API
>
> This patch affects multiple drivers. Running get_maintainers.pl
> points at Shawn Guo's repository. After reviewing the MAINTAINERS file,
> this looks like due to the 'N:' line in:
>
> ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
> M: Shawn Guo <shawnguo@kernel.org>
> M: Sascha Hauer <s.hauer@pengutronix.de>
> R: Pengutronix Kernel Team <kernel@pengutronix.de>
> ...
> T: git git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git
> N: imx
> ...
>
> (https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/MAINTAINERS?ref_type=heads#L2511-2528)
>
> Here 'imx' matches the 'drivers/gpu/drm/bridge/imx/imx-legacy-bridge.c'
> file that is touched by the patch. That regexp appears overly generic to me.
>
> Shawn, can it be fixed by making it less generic?
>
> If not, can we at least add a band-aid 'X:' entry for
> drivers/gpu/drm/bridge/imx?
>
> I think the other matching entry is the one to consider:
>
> DRM DRIVERS FOR FREESCALE IMX BRIDGE
> M: Liu Ying <victor.liu@nxp.com>
> L: dri-devel@lists.freedesktop.org
> S: Maintained
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-ldb.yaml
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pxl2dpi.yaml
> F: drivers/gpu/drm/bridge/imx/
>
> (https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/MAINTAINERS?ref_type=heads#L7940-7948)
>
> However it does not list any trees. I _guess_ drm-misc applies here as
> a fallback as well as common sense.
>
> Liu, should this entry have a 'T:' line for drm/misc?
These bridge drivers also don't have a 'T:' line:
DRM DRIVER FOR CHIPONE ICN6211 MIPI-DSI to RGB CONVERTER BRIDGE
DRM DRIVER FOR PARADE PS8640 BRIDGE CHIP
DRM DRIVER FOR TI DLPC3433 MIPI DSI TO DMD BRIDGE
DRM DRIVER FOR TI SN65DSI86 BRIDGE CHIP
LONTIUM LT8912B MIPI TO HDMI BRIDGE
MEGACHIPS STDPXXXX-GE-B850V3-FW LVDS/DP++ BRIDGES
MICROCHIP SAM9x7-COMPATIBLE LVDS CONTROLLER
I think that they fallback to drm-misc since "DRM DRIVERS FOR BRIDGE CHIPS"
covers them. I don't have strong opinion on adding a "T" line to them, at
least to "DRM DRIVERS FOR FREESCALE IMX BRIDGE". Anyway, it would be good
to know comments from maintainers for "DRM DRIVERS FOR BRIDGE CHIPS" and
"DRM DRIVERS".
>
>> drm/bridge: imx8qxp-pixel-combiner: convert to devm_drm_bridge_alloc() API
>
> Not acked/reviewed, some discussion happened. I am resending it in v4,
> possibly with updates based on the discussion.
I still think the main structures in imx8qxp-pixel-combiner.c and imx*-ldb.c
should have the same lifetime with the allocated bridges. I added a new
comment on this driver in v2 just now.
>
> But it has the same issue discussed above, with get_maintiners.pl
> pointing at Shawn Guo's tree, so in the future I'm assuming this goes
> to drm-misc unless there are news about that.
>
>> drm/bridge: tc358767: convert to devm_drm_bridge_alloc() API
>
> No feedback, resending in v4.
>
>> drm/todo: add entry to remove devm_drm_put_bridge()
>
> This involves documentation maintained on another tree. Where should it
> be applied? There are two matching entries in MAINTAINERS:
>
> * DRM DRIVERS -> the drm tree
> * DRM DRIVERS AND MISC GPU PATCHES -> the drm-misc tree
>
> To me it looks like the second is obviously the closest match as we are
> dealing with DRM bridges, so I'm applying this as well on Friday unless
> there are better instructions.
>
> Best regards,
> Luca
>
--
Regards,
Liu Ying
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 00/22] drm: convert all bridges to devm_drm_bridge_alloc()
2025-05-22 3:20 ` Liu Ying
@ 2025-05-22 7:28 ` Luca Ceresoli
2025-05-22 15:01 ` Maxime Ripard
1 sibling, 0 replies; 12+ messages in thread
From: Luca Ceresoli @ 2025-05-22 7:28 UTC (permalink / raw)
To: Liu Ying
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec, Jagan Teki,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Douglas Anderson, Chun-Kuang Hu, Krzysztof Kozlowski,
Anusha Srivatsa, Paul Kocialkowski, Dmitry Baryshkov, Hui Pu,
Thomas Petazzoni, dri-devel, asahi, linux-kernel, chrome-platform,
imx, linux-arm-kernel, linux-mediatek, linux-amlogic,
linux-renesas-soc, platform-driver-x86, linux-samsung-soc,
linux-arm-msm, freedreno, linux-stm32, Louis Chauvet, Alim Akhtar,
Inki Dae, Kyungmin Park, Seung-Woo Kim, Manikandan Muralidharan,
Adam Ford, Adrien Grassein, Aleksandr Mishin, Andy Yan,
AngeloGioacchino Del Regno, Benson Leung, Biju Das,
Christoph Fritz, Cristian Ciocaltea, Detlev Casanova,
Dharma Balasubiramani, Guenter Roeck, Heiko Stuebner, Jani Nikula,
Janne Grunau, Jerome Brunet, Jesse Van Gavere, Kevin Hilman,
Kieran Bingham, Martin Blumenstingl, Matthias Brugger,
Philipp Zabel, Phong LE, Sasha Finkelstein, Sugar Zhang,
Sui Jingfeng, Tomi Valkeinen, Vitalii Mordan, Rob Herring (Arm),
Hsin-Te Yuan, Pin-yen Lin, Xin Ji, Aradhya Bhatia, Tomi Valkeinen,
Ian Ray, Martyn Welch, Peter Senna Tschudin, Helge Deller,
Kuninori Morimoto, Laurent Pinchart, Alexandre Torgue,
Maxime Coquelin, Philippe Cornu, Raphael Gallais-Pou,
Yannick Fertre, Alain Volmat, Raphael Gallais-Pou, Michal Simek,
Jonathan Corbet, linux-doc
Hello Liu,
On Thu, 22 May 2025 11:20:17 +0800
Liu Ying <victor.liu@nxp.com> wrote:
> > If not, can we at least add a band-aid 'X:' entry for
> > drivers/gpu/drm/bridge/imx?
> >
> > I think the other matching entry is the one to consider:
> >
> > DRM DRIVERS FOR FREESCALE IMX BRIDGE
> > M: Liu Ying <victor.liu@nxp.com>
> > L: dri-devel@lists.freedesktop.org
> > S: Maintained
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-ldb.yaml
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pxl2dpi.yaml
> > F: drivers/gpu/drm/bridge/imx/
> >
> > (https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/MAINTAINERS?ref_type=heads#L7940-7948)
> >
> > However it does not list any trees. I _guess_ drm-misc applies here as
> > a fallback as well as common sense.
> >
> > Liu, should this entry have a 'T:' line for drm/misc?
>
> These bridge drivers also don't have a 'T:' line:
>
> DRM DRIVER FOR CHIPONE ICN6211 MIPI-DSI to RGB CONVERTER BRIDGE
> DRM DRIVER FOR PARADE PS8640 BRIDGE CHIP
> DRM DRIVER FOR TI DLPC3433 MIPI DSI TO DMD BRIDGE
> DRM DRIVER FOR TI SN65DSI86 BRIDGE CHIP
> LONTIUM LT8912B MIPI TO HDMI BRIDGE
> MEGACHIPS STDPXXXX-GE-B850V3-FW LVDS/DP++ BRIDGES
> MICROCHIP SAM9x7-COMPATIBLE LVDS CONTROLLER
>
> I think that they fallback to drm-misc since "DRM DRIVERS FOR BRIDGE CHIPS"
> covers them. I don't have strong opinion on adding a "T" line to them, at
> least to "DRM DRIVERS FOR FREESCALE IMX BRIDGE". Anyway, it would be good
> to know comments from maintainers for "DRM DRIVERS FOR BRIDGE CHIPS" and
> "DRM DRIVERS".
I agree the fallback seems OK for this MAINTAINERS entry.
The other entry (ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) is another
story.
> >> drm/bridge: imx8qxp-pixel-combiner: convert to devm_drm_bridge_alloc() API
> >
> > Not acked/reviewed, some discussion happened. I am resending it in v4,
> > possibly with updates based on the discussion.
>
> I still think the main structures in imx8qxp-pixel-combiner.c and imx*-ldb.c
> should have the same lifetime with the allocated bridges. I added a new
> comment on this driver in v2 just now.
Thanks, let's continue the conversation there.
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 00/22] drm: convert all bridges to devm_drm_bridge_alloc()
2025-05-22 3:20 ` Liu Ying
2025-05-22 7:28 ` Luca Ceresoli
@ 2025-05-22 15:01 ` Maxime Ripard
1 sibling, 0 replies; 12+ messages in thread
From: Maxime Ripard @ 2025-05-22 15:01 UTC (permalink / raw)
To: Liu Ying
Cc: Luca Ceresoli, Maarten Lankhorst, Thomas Zimmermann, David Airlie,
Simona Vetter, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec, Jagan Teki,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Douglas Anderson, Chun-Kuang Hu, Krzysztof Kozlowski,
Anusha Srivatsa, Paul Kocialkowski, Dmitry Baryshkov, Hui Pu,
Thomas Petazzoni, dri-devel, asahi, linux-kernel, chrome-platform,
imx, linux-arm-kernel, linux-mediatek, linux-amlogic,
linux-renesas-soc, platform-driver-x86, linux-samsung-soc,
linux-arm-msm, freedreno, linux-stm32, Louis Chauvet, Alim Akhtar,
Inki Dae, Kyungmin Park, Seung-Woo Kim, Manikandan Muralidharan,
Adam Ford, Adrien Grassein, Aleksandr Mishin, Andy Yan,
AngeloGioacchino Del Regno, Benson Leung, Biju Das,
Christoph Fritz, Cristian Ciocaltea, Detlev Casanova,
Dharma Balasubiramani, Guenter Roeck, Heiko Stuebner, Jani Nikula,
Janne Grunau, Jerome Brunet, Jesse Van Gavere, Kevin Hilman,
Kieran Bingham, Martin Blumenstingl, Matthias Brugger,
Philipp Zabel, Phong LE, Sasha Finkelstein, Sugar Zhang,
Sui Jingfeng, Tomi Valkeinen, Vitalii Mordan, Rob Herring (Arm),
Hsin-Te Yuan, Pin-yen Lin, Xin Ji, Aradhya Bhatia, Tomi Valkeinen,
Ian Ray, Martyn Welch, Peter Senna Tschudin, Helge Deller,
Kuninori Morimoto, Laurent Pinchart, Alexandre Torgue,
Maxime Coquelin, Philippe Cornu, Raphael Gallais-Pou,
Yannick Fertre, Alain Volmat, Raphael Gallais-Pou, Michal Simek,
Jonathan Corbet, linux-doc
[-- Attachment #1: Type: text/plain, Size: 2961 bytes --]
On Thu, May 22, 2025 at 11:20:17AM +0800, Liu Ying wrote:
> >> drm: convert many bridge drivers from devm_kzalloc() to devm_drm_bridge_alloc() API
> >
> > This patch affects multiple drivers. Running get_maintainers.pl
> > points at Shawn Guo's repository. After reviewing the MAINTAINERS file,
> > this looks like due to the 'N:' line in:
> >
> > ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
> > M: Shawn Guo <shawnguo@kernel.org>
> > M: Sascha Hauer <s.hauer@pengutronix.de>
> > R: Pengutronix Kernel Team <kernel@pengutronix.de>
> > ...
> > T: git git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git
> > N: imx
> > ...
> >
> > (https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/MAINTAINERS?ref_type=heads#L2511-2528)
> >
> > Here 'imx' matches the 'drivers/gpu/drm/bridge/imx/imx-legacy-bridge.c'
> > file that is touched by the patch. That regexp appears overly generic to me.
> >
> > Shawn, can it be fixed by making it less generic?
> >
> > If not, can we at least add a band-aid 'X:' entry for
> > drivers/gpu/drm/bridge/imx?
> >
> > I think the other matching entry is the one to consider:
> >
> > DRM DRIVERS FOR FREESCALE IMX BRIDGE
> > M: Liu Ying <victor.liu@nxp.com>
> > L: dri-devel@lists.freedesktop.org
> > S: Maintained
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-ldb.yaml
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pxl2dpi.yaml
> > F: drivers/gpu/drm/bridge/imx/
> >
> > (https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/MAINTAINERS?ref_type=heads#L7940-7948)
> >
> > However it does not list any trees. I _guess_ drm-misc applies here as
> > a fallback as well as common sense.
> >
> > Liu, should this entry have a 'T:' line for drm/misc?
>
> These bridge drivers also don't have a 'T:' line:
>
> DRM DRIVER FOR CHIPONE ICN6211 MIPI-DSI to RGB CONVERTER BRIDGE
> DRM DRIVER FOR PARADE PS8640 BRIDGE CHIP
> DRM DRIVER FOR TI DLPC3433 MIPI DSI TO DMD BRIDGE
> DRM DRIVER FOR TI SN65DSI86 BRIDGE CHIP
> LONTIUM LT8912B MIPI TO HDMI BRIDGE
> MEGACHIPS STDPXXXX-GE-B850V3-FW LVDS/DP++ BRIDGES
> MICROCHIP SAM9x7-COMPATIBLE LVDS CONTROLLER
>
> I think that they fallback to drm-misc since "DRM DRIVERS FOR BRIDGE CHIPS"
> covers them. I don't have strong opinion on adding a "T" line to them, at
> least to "DRM DRIVERS FOR FREESCALE IMX BRIDGE". Anyway, it would be good
> to know comments from maintainers for "DRM DRIVERS FOR BRIDGE CHIPS" and
> "DRM DRIVERS".
That's good enough to me. drivers/gpu/drm/bridge is indeed under the
maintenance of drm-misc and there's no exception afaik.
get_maintainers.pl also properly reports it, so I'm not sure we need to
do anything there.
Maxime
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 273 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 00/22] drm: convert all bridges to devm_drm_bridge_alloc()
2025-05-21 14:22 ` [PATCH v3 00/22] drm: convert all bridges to devm_drm_bridge_alloc() Luca Ceresoli
2025-05-22 3:20 ` Liu Ying
@ 2025-05-22 14:57 ` Maxime Ripard
2025-05-22 15:56 ` Luca Ceresoli
2025-05-22 15:11 ` Inki Dae
2 siblings, 1 reply; 12+ messages in thread
From: Maxime Ripard @ 2025-05-22 14:57 UTC (permalink / raw)
To: Luca Ceresoli
Cc: Maarten Lankhorst, Thomas Zimmermann, David Airlie, Simona Vetter,
Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Jagan Teki, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Douglas Anderson, Chun-Kuang Hu, Krzysztof Kozlowski, Liu Ying,
Anusha Srivatsa, Paul Kocialkowski, Dmitry Baryshkov, Hui Pu,
Thomas Petazzoni, dri-devel, asahi, linux-kernel, chrome-platform,
imx, linux-arm-kernel, linux-mediatek, linux-amlogic,
linux-renesas-soc, platform-driver-x86, linux-samsung-soc,
linux-arm-msm, freedreno, linux-stm32, Louis Chauvet, Alim Akhtar,
Inki Dae, Kyungmin Park, Seung-Woo Kim, Manikandan Muralidharan,
Adam Ford, Adrien Grassein, Aleksandr Mishin, Andy Yan,
AngeloGioacchino Del Regno, Benson Leung, Biju Das,
Christoph Fritz, Cristian Ciocaltea, Detlev Casanova,
Dharma Balasubiramani, Guenter Roeck, Heiko Stuebner, Jani Nikula,
Janne Grunau, Jerome Brunet, Jesse Van Gavere, Kevin Hilman,
Kieran Bingham, Martin Blumenstingl, Matthias Brugger,
Philipp Zabel, Phong LE, Sasha Finkelstein, Sugar Zhang,
Sui Jingfeng, Tomi Valkeinen, Vitalii Mordan, Rob Herring (Arm),
Hsin-Te Yuan, Pin-yen Lin, Xin Ji, Aradhya Bhatia, Tomi Valkeinen,
Ian Ray, Martyn Welch, Peter Senna Tschudin, Helge Deller,
Kuninori Morimoto, Laurent Pinchart, Alexandre Torgue,
Maxime Coquelin, Philippe Cornu, Raphael Gallais-Pou,
Yannick Fertre, Alain Volmat, Raphael Gallais-Pou, Michal Simek,
Jonathan Corbet, linux-doc
[-- Attachment #1: Type: text/plain, Size: 4766 bytes --]
On Wed, May 21, 2025 at 04:22:16PM +0200, Luca Ceresoli wrote:
> Hello Maxime, Shawn, Liu, all,
>
> On Fri, 09 May 2025 15:53:26 +0200
> Luca Ceresoli <luca.ceresoli@bootlin.com> wrote:
>
> > devm_drm_bridge_alloc() [0] is the new API to allocate and initialize a DRM
> > bridge, and the only one supported from now on. It is the first milestone
> > towards removal of bridges from a still existing DRM pipeline without
> > use-after-free.
>
> I applied on drm-misc-next patches 3-17,20-21 as they match all the
> criteria:
> - At least a Acked-by (or R-by maintainers)
> - patch is for drm-misc
>
> Being my very first commits to drm-misc, I tried to be careful, and
> double checked all the patches with Louis (thanks!).
>
> Here are the pending questions and plan for the remaining patches.
>
> > Revert "drm/exynos: mic: convert to devm_drm_bridge_alloc() API"
>
> This reverts the commit applied my mistake:
> https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/91c5c7b5bb2dd09b43b025bce6d790d3c79f4518
>
> Neither the original patch nor the revert has been reviewed/acked.
>
> As the commit was a mistake, I'm applying the revert by the end of this
> week (i.e. on Friday) unless there are better instructions.
Given the lack of answers, and that it looks correct to me, just leave
it there. We can always revert later on if things turned out to be
broken.
> > drm: convert many bridge drivers from devm_kzalloc() to devm_drm_bridge_alloc() API
>
> This patch affects multiple drivers. Running get_maintainers.pl
> points at Shawn Guo's repository. After reviewing the MAINTAINERS file,
> this looks like due to the 'N:' line in:
>
> ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
> M: Shawn Guo <shawnguo@kernel.org>
> M: Sascha Hauer <s.hauer@pengutronix.de>
> R: Pengutronix Kernel Team <kernel@pengutronix.de>
> ...
> T: git git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git
> N: imx
> ...
>
> (https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/MAINTAINERS?ref_type=heads#L2511-2528)
>
> Here 'imx' matches the 'drivers/gpu/drm/bridge/imx/imx-legacy-bridge.c'
> file that is touched by the patch. That regexp appears overly generic to me.
I agree, or at least, we shouldn't wait for Shawn or Sasha...
> Shawn, can it be fixed by making it less generic?
>
> If not, can we at least add a band-aid 'X:' entry for
> drivers/gpu/drm/bridge/imx?
>
> I think the other matching entry is the one to consider:
>
> DRM DRIVERS FOR FREESCALE IMX BRIDGE
> M: Liu Ying <victor.liu@nxp.com>
> L: dri-devel@lists.freedesktop.org
> S: Maintained
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-ldb.yaml
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pxl2dpi.yaml
> F: drivers/gpu/drm/bridge/imx/
>
> (https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/MAINTAINERS?ref_type=heads#L7940-7948)
... As long as Ying is fine with it, because it does look like they are
the actual maintainer.
> However it does not list any trees. I _guess_ drm-misc applies here as
> a fallback as well as common sense.
>
> Liu, should this entry have a 'T:' line for drm/misc?
>
> > drm/bridge: imx8qxp-pixel-combiner: convert to devm_drm_bridge_alloc() API
>
> Not acked/reviewed, some discussion happened. I am resending it in v4,
> possibly with updates based on the discussion.
>
> But it has the same issue discussed above, with get_maintiners.pl
> pointing at Shawn Guo's tree, so in the future I'm assuming this goes
> to drm-misc unless there are news about that.
>
> > drm/bridge: tc358767: convert to devm_drm_bridge_alloc() API
>
> No feedback, resending in v4.
>
> > drm/todo: add entry to remove devm_drm_put_bridge()
>
> This involves documentation maintained on another tree. Where should it
> be applied? There are two matching entries in MAINTAINERS:
>
> * DRM DRIVERS -> the drm tree
> * DRM DRIVERS AND MISC GPU PATCHES -> the drm-misc tree
>
> To me it looks like the second is obviously the closest match as we are
> dealing with DRM bridges, so I'm applying this as well on Friday unless
> there are better instructions.
Yes, they should be applied to drm-misc.
That being said, putting a two days timeout on *any* email is really
over-the-top. I doubt you reply to any of your mail in such a short
timeframe. We have rules for a reason, I'd expect you to follow them, no
matter how frustrating the lack of answers can be.
Maxime
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 273 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 00/22] drm: convert all bridges to devm_drm_bridge_alloc()
2025-05-22 14:57 ` Maxime Ripard
@ 2025-05-22 15:56 ` Luca Ceresoli
0 siblings, 0 replies; 12+ messages in thread
From: Luca Ceresoli @ 2025-05-22 15:56 UTC (permalink / raw)
To: Maxime Ripard
Cc: Maarten Lankhorst, Thomas Zimmermann, David Airlie, Simona Vetter,
Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Jagan Teki, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Douglas Anderson, Chun-Kuang Hu, Krzysztof Kozlowski, Liu Ying,
Anusha Srivatsa, Paul Kocialkowski, Dmitry Baryshkov, Hui Pu,
Thomas Petazzoni, dri-devel, asahi, linux-kernel, chrome-platform,
imx, linux-arm-kernel, linux-mediatek, linux-amlogic,
linux-renesas-soc, platform-driver-x86, linux-samsung-soc,
linux-arm-msm, freedreno, linux-stm32, Louis Chauvet, Alim Akhtar,
Inki Dae, Kyungmin Park, Seung-Woo Kim, Manikandan Muralidharan,
Adam Ford, Adrien Grassein, Aleksandr Mishin, Andy Yan,
AngeloGioacchino Del Regno, Benson Leung, Biju Das,
Christoph Fritz, Cristian Ciocaltea, Detlev Casanova,
Dharma Balasubiramani, Guenter Roeck, Heiko Stuebner, Jani Nikula,
Janne Grunau, Jerome Brunet, Jesse Van Gavere, Kevin Hilman,
Kieran Bingham, Martin Blumenstingl, Matthias Brugger,
Philipp Zabel, Phong LE, Sasha Finkelstein, Sugar Zhang,
Sui Jingfeng, Tomi Valkeinen, Vitalii Mordan, Rob Herring (Arm),
Hsin-Te Yuan, Pin-yen Lin, Xin Ji, Aradhya Bhatia, Tomi Valkeinen,
Ian Ray, Martyn Welch, Peter Senna Tschudin, Helge Deller,
Kuninori Morimoto, Laurent Pinchart, Alexandre Torgue,
Maxime Coquelin, Philippe Cornu, Raphael Gallais-Pou,
Yannick Fertre, Alain Volmat, Raphael Gallais-Pou, Michal Simek,
Jonathan Corbet, linux-doc
Hi Maxime,
On Thu, 22 May 2025 16:57:30 +0200
Maxime Ripard <mripard@kernel.org> wrote:
[...]
> > As the commit was a mistake, I'm applying the revert by the end of this
> > week (i.e. on Friday) unless there are better instructions.
>
> Given the lack of answers, and that it looks correct to me, just leave
> it there. We can always revert later on if things turned out to be
> broken.
OK, I'll leave the commit and drop the revert in v4.
> > > drm: convert many bridge drivers from devm_kzalloc() to devm_drm_bridge_alloc() API
> >
> > This patch affects multiple drivers. Running get_maintainers.pl
> > points at Shawn Guo's repository. After reviewing the MAINTAINERS file,
> > this looks like due to the 'N:' line in:
> >
> > ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
> > M: Shawn Guo <shawnguo@kernel.org>
> > M: Sascha Hauer <s.hauer@pengutronix.de>
> > R: Pengutronix Kernel Team <kernel@pengutronix.de>
> > ...
> > T: git git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git
> > N: imx
> > ...
> >
> > (https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/MAINTAINERS?ref_type=heads#L2511-2528)
> >
> > Here 'imx' matches the 'drivers/gpu/drm/bridge/imx/imx-legacy-bridge.c'
> > file that is touched by the patch. That regexp appears overly generic to me.
>
> I agree, or at least, we shouldn't wait for Shawn or Sasha...
>
> > Shawn, can it be fixed by making it less generic?
> >
> > If not, can we at least add a band-aid 'X:' entry for
> > drivers/gpu/drm/bridge/imx?
> >
> > I think the other matching entry is the one to consider:
> >
> > DRM DRIVERS FOR FREESCALE IMX BRIDGE
> > M: Liu Ying <victor.liu@nxp.com>
> > L: dri-devel@lists.freedesktop.org
> > S: Maintained
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-ldb.yaml
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml
> > F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pxl2dpi.yaml
> > F: drivers/gpu/drm/bridge/imx/
> >
> > (https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/MAINTAINERS?ref_type=heads#L7940-7948)
>
> ... As long as Ying is fine with it, because it does look like they are
> the actual maintainer.
Ack, thanks for confirming this.
Bottom line, given that large patch has your Acked-by, and given the
shawnguo repo was ruled out, the conclusion is it can apply it to
drm-misc-next.
Having that large patch applied will be relieving me a lot! I think
next time I'm going to split any imilar change in per-driver patches,
even if it is spatch-automated.
> > > drm/todo: add entry to remove devm_drm_put_bridge()
> >
> > This involves documentation maintained on another tree. Where should it
> > be applied? There are two matching entries in MAINTAINERS:
> >
> > * DRM DRIVERS -> the drm tree
> > * DRM DRIVERS AND MISC GPU PATCHES -> the drm-misc tree
> >
> > To me it looks like the second is obviously the closest match as we are
> > dealing with DRM bridges, so I'm applying this as well on Friday unless
> > there are better instructions.
>
> Yes, they should be applied to drm-misc.
OK, will do soon.
> That being said, putting a two days timeout on *any* email is really
> over-the-top. I doubt you reply to any of your mail in such a short
> timeframe. We have rules for a reason, I'd expect you to follow them, no
> matter how frustrating the lack of answers can be.
Apologies if that was too much.
I was indeed nervous about the revert. A patch got applied by mistake
and I believe it should have been reverted very quickly, if need be.
Both Louis and I didn't want to break the process again. So we asked,
but not having answer after 2+ weeks I must admit I got a bit nervous
about it.
Sorry about that and thanks for the feedback about my questions.
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 00/22] drm: convert all bridges to devm_drm_bridge_alloc()
2025-05-21 14:22 ` [PATCH v3 00/22] drm: convert all bridges to devm_drm_bridge_alloc() Luca Ceresoli
2025-05-22 3:20 ` Liu Ying
2025-05-22 14:57 ` Maxime Ripard
@ 2025-05-22 15:11 ` Inki Dae
2025-05-23 13:23 ` Luca Ceresoli
2 siblings, 1 reply; 12+ messages in thread
From: Inki Dae @ 2025-05-22 15:11 UTC (permalink / raw)
To: Luca Ceresoli
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec, Jagan Teki,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Douglas Anderson, Chun-Kuang Hu, Krzysztof Kozlowski, Liu Ying,
Anusha Srivatsa, Paul Kocialkowski, Dmitry Baryshkov, Hui Pu,
Thomas Petazzoni, dri-devel, asahi, linux-kernel, chrome-platform,
imx, linux-arm-kernel, linux-mediatek, linux-amlogic,
linux-renesas-soc, platform-driver-x86, linux-samsung-soc,
linux-arm-msm, freedreno, linux-stm32, Louis Chauvet, Alim Akhtar,
Kyungmin Park, Seung-Woo Kim, Manikandan Muralidharan, Adam Ford,
Adrien Grassein, Aleksandr Mishin, Andy Yan,
AngeloGioacchino Del Regno, Benson Leung, Biju Das,
Christoph Fritz, Cristian Ciocaltea, Detlev Casanova,
Dharma Balasubiramani, Guenter Roeck, Heiko Stuebner, Jani Nikula,
Janne Grunau, Jerome Brunet, Jesse Van Gavere, Kevin Hilman,
Kieran Bingham, Martin Blumenstingl, Matthias Brugger,
Philipp Zabel, Phong LE, Sasha Finkelstein, Sugar Zhang,
Sui Jingfeng, Tomi Valkeinen, Vitalii Mordan, Rob Herring (Arm),
Hsin-Te Yuan, Pin-yen Lin, Xin Ji, Aradhya Bhatia, Tomi Valkeinen,
Ian Ray, Martyn Welch, Peter Senna Tschudin, Helge Deller,
Kuninori Morimoto, Laurent Pinchart, Alexandre Torgue,
Maxime Coquelin, Philippe Cornu, Raphael Gallais-Pou,
Yannick Fertre, Alain Volmat, Raphael Gallais-Pou, Michal Simek,
Jonathan Corbet, linux-doc
Hello Luca Ceresoli,
2025년 5월 21일 (수) 오후 11:23, Luca Ceresoli <luca.ceresoli@bootlin.com>님이 작성:
>
> Hello Maxime, Shawn, Liu, all,
>
> On Fri, 09 May 2025 15:53:26 +0200
> Luca Ceresoli <luca.ceresoli@bootlin.com> wrote:
>
> > devm_drm_bridge_alloc() [0] is the new API to allocate and initialize a DRM
> > bridge, and the only one supported from now on. It is the first milestone
> > towards removal of bridges from a still existing DRM pipeline without
> > use-after-free.
>
> I applied on drm-misc-next patches 3-17,20-21 as they match all the
> criteria:
> - At least a Acked-by (or R-by maintainers)
> - patch is for drm-misc
>
> Being my very first commits to drm-misc, I tried to be careful, and
> double checked all the patches with Louis (thanks!).
>
> Here are the pending questions and plan for the remaining patches.
>
> > Revert "drm/exynos: mic: convert to devm_drm_bridge_alloc() API"
>
> This reverts the commit applied my mistake:
> https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/91c5c7b5bb2dd09b43b025bce6d790d3c79f4518
>
> Neither the original patch nor the revert has been reviewed/acked.
>
> As the commit was a mistake, I'm applying the revert by the end of this
> week (i.e. on Friday) unless there are better instructions.
Really sorry for late. I was made aware of it later through a
colleague's remark. There is no need to proceed with the revert.
Acked-by : Inki Dae <inki.dae@samsung.com>
Thanks,
Inki Dae
>
> > drm: convert many bridge drivers from devm_kzalloc() to devm_drm_bridge_alloc() API
>
> This patch affects multiple drivers. Running get_maintainers.pl
> points at Shawn Guo's repository. After reviewing the MAINTAINERS file,
> this looks like due to the 'N:' line in:
>
> ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
> M: Shawn Guo <shawnguo@kernel.org>
> M: Sascha Hauer <s.hauer@pengutronix.de>
> R: Pengutronix Kernel Team <kernel@pengutronix.de>
> ...
> T: git git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git
> N: imx
> ...
>
> (https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/MAINTAINERS?ref_type=heads#L2511-2528)
>
> Here 'imx' matches the 'drivers/gpu/drm/bridge/imx/imx-legacy-bridge.c'
> file that is touched by the patch. That regexp appears overly generic to me.
>
> Shawn, can it be fixed by making it less generic?
>
> If not, can we at least add a band-aid 'X:' entry for
> drivers/gpu/drm/bridge/imx?
>
> I think the other matching entry is the one to consider:
>
> DRM DRIVERS FOR FREESCALE IMX BRIDGE
> M: Liu Ying <victor.liu@nxp.com>
> L: dri-devel@lists.freedesktop.org
> S: Maintained
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-ldb.yaml
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml
> F: Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pxl2dpi.yaml
> F: drivers/gpu/drm/bridge/imx/
>
> (https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/MAINTAINERS?ref_type=heads#L7940-7948)
>
> However it does not list any trees. I _guess_ drm-misc applies here as
> a fallback as well as common sense.
>
> Liu, should this entry have a 'T:' line for drm/misc?
>
> > drm/bridge: imx8qxp-pixel-combiner: convert to devm_drm_bridge_alloc() API
>
> Not acked/reviewed, some discussion happened. I am resending it in v4,
> possibly with updates based on the discussion.
>
> But it has the same issue discussed above, with get_maintiners.pl
> pointing at Shawn Guo's tree, so in the future I'm assuming this goes
> to drm-misc unless there are news about that.
>
> > drm/bridge: tc358767: convert to devm_drm_bridge_alloc() API
>
> No feedback, resending in v4.
>
> > drm/todo: add entry to remove devm_drm_put_bridge()
>
> This involves documentation maintained on another tree. Where should it
> be applied? There are two matching entries in MAINTAINERS:
>
> * DRM DRIVERS -> the drm tree
> * DRM DRIVERS AND MISC GPU PATCHES -> the drm-misc tree
>
> To me it looks like the second is obviously the closest match as we are
> dealing with DRM bridges, so I'm applying this as well on Friday unless
> there are better instructions.
>
> Best regards,
> Luca
>
> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 00/22] drm: convert all bridges to devm_drm_bridge_alloc()
2025-05-22 15:11 ` Inki Dae
@ 2025-05-23 13:23 ` Luca Ceresoli
0 siblings, 0 replies; 12+ messages in thread
From: Luca Ceresoli @ 2025-05-23 13:23 UTC (permalink / raw)
To: Inki Dae
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec, Jagan Teki,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Douglas Anderson, Chun-Kuang Hu, Krzysztof Kozlowski, Liu Ying,
Anusha Srivatsa, Paul Kocialkowski, Dmitry Baryshkov, Hui Pu,
Thomas Petazzoni, dri-devel, asahi, linux-kernel, chrome-platform,
imx, linux-arm-kernel, linux-mediatek, linux-amlogic,
linux-renesas-soc, platform-driver-x86, linux-samsung-soc,
linux-arm-msm, freedreno, linux-stm32, Louis Chauvet, Alim Akhtar,
Kyungmin Park, Seung-Woo Kim, Manikandan Muralidharan, Adam Ford,
Adrien Grassein, Aleksandr Mishin, Andy Yan,
AngeloGioacchino Del Regno, Benson Leung, Biju Das,
Christoph Fritz, Cristian Ciocaltea, Detlev Casanova,
Dharma Balasubiramani, Guenter Roeck, Heiko Stuebner, Jani Nikula,
Janne Grunau, Jerome Brunet, Jesse Van Gavere, Kevin Hilman,
Kieran Bingham, Martin Blumenstingl, Matthias Brugger,
Philipp Zabel, Phong LE, Sasha Finkelstein, Sugar Zhang,
Sui Jingfeng, Tomi Valkeinen, Vitalii Mordan, Rob Herring (Arm),
Hsin-Te Yuan, Pin-yen Lin, Xin Ji, Aradhya Bhatia, Tomi Valkeinen,
Ian Ray, Martyn Welch, Peter Senna Tschudin, Helge Deller,
Kuninori Morimoto, Laurent Pinchart, Alexandre Torgue,
Maxime Coquelin, Philippe Cornu, Raphael Gallais-Pou,
Yannick Fertre, Alain Volmat, Raphael Gallais-Pou, Michal Simek,
Jonathan Corbet, linux-doc
Hello Inki,
On Fri, 23 May 2025 00:11:24 +0900
Inki Dae <daeinki@gmail.com> wrote:
> Hello Luca Ceresoli,
>
> 2025년 5월 21일 (수) 오후 11:23, Luca Ceresoli <luca.ceresoli@bootlin.com>님이 작성:
> >
> > Hello Maxime, Shawn, Liu, all,
> >
> > On Fri, 09 May 2025 15:53:26 +0200
> > Luca Ceresoli <luca.ceresoli@bootlin.com> wrote:
> >
> > > devm_drm_bridge_alloc() [0] is the new API to allocate and initialize a DRM
> > > bridge, and the only one supported from now on. It is the first milestone
> > > towards removal of bridges from a still existing DRM pipeline without
> > > use-after-free.
> >
> > I applied on drm-misc-next patches 3-17,20-21 as they match all the
> > criteria:
> > - At least a Acked-by (or R-by maintainers)
> > - patch is for drm-misc
> >
> > Being my very first commits to drm-misc, I tried to be careful, and
> > double checked all the patches with Louis (thanks!).
> >
> > Here are the pending questions and plan for the remaining patches.
> >
> > > Revert "drm/exynos: mic: convert to devm_drm_bridge_alloc() API"
> >
> > This reverts the commit applied my mistake:
> > https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/91c5c7b5bb2dd09b43b025bce6d790d3c79f4518
> >
> > Neither the original patch nor the revert has been reviewed/acked.
> >
> > As the commit was a mistake, I'm applying the revert by the end of this
> > week (i.e. on Friday) unless there are better instructions.
>
> Really sorry for late. I was made aware of it later through a
> colleague's remark. There is no need to proceed with the revert.
> Acked-by : Inki Dae <inki.dae@samsung.com>
Thanks for the feedback. As agreed with Maxime and approved by you, I'm
leaving the commit as is, without reverting and reapplying. Your
Acked-by is in the records anyway, so somehow reachable in case of need.
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 12+ messages in thread