From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Maxime Ripard <mripard@kernel.org>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
dri-devel@lists.freedesktop.org,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Louis Chauvet <louis.chauvet@bootlin.com>,
Haneen Mohammed <hamohammed.sa@gmail.com>,
Melissa Wen <melissa.srw@gmail.com>,
Jyri Sarha <jyri.sarha@iki.fi>,
Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
Paul Cercueil <paul@crapouillou.net>,
linux-mips@vger.kernel.org, Liviu Dudau <liviu.dudau@arm.com>,
Russell King <linux@armlinux.org.uk>,
Manikandan Muralidharan <manikandan.m@microchip.com>,
Dharma Balasubiramani <dharma.b@microchip.com>,
Nicolas Ferre <nicolas.ferre@microchip.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>,
linux-arm-kernel@lists.infradead.org,
Inki Dae <inki.dae@samsung.com>,
Seung-Woo Kim <sw0312.kim@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
linux-samsung-soc@vger.kernel.org, Liu Ying <victor.liu@nxp.com>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
imx@lists.linux.dev,
Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>,
Lucas Stach <l.stach@pengutronix.de>,
Philipp Zabel <p.zabel@pengutronix.de>,
Anitha Chrisanthus <anitha.chrisanthus@intel.com>,
Edmund Dea <edmund.j.dea@intel.com>,
Paul Kocialkowski <paulk@sys-base.io>,
Sui Jingfeng <suijingfeng@loongson.cn>,
Chun-Kuang Hu <chunkuang.hu@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
Rob Clark <robin.clark@oss.qualcomm.com>,
Dmitry Baryshkov <lumag@kernel.org>,
Abhinav Kumar <abhinav.kumar@linux.dev>, Jessica Zhang <
Subject: Re: [PATCH v2 00/37] drm/atomic: Get rid of existing states (not really)
Date: Tue, 2 Sep 2025 17:29:14 +0300 [thread overview]
Message-ID: <aLb_OrVn6hK0Hf-F@intel.com> (raw)
In-Reply-To: <20250902-drm-no-more-existing-state-v2-0-de98fc5f6d66@kernel.org>
On Tue, Sep 02, 2025 at 11:34:59AM +0200, Maxime Ripard wrote:
> Hi,
>
> Here's a series to get rid of the drm_atomic_helper_get_existing_*_state
> accessors.
>
> The initial intent was to remove the __drm_*_state->state pointer to
> only rely on old and new states, but we still need it now to know which
> of the two we need to free: if a state has not been committed (either
> dropped or checked only), then we need to free the new one, if it has
> been committed we need to free the old state.
>
> Thus, the state pointer is kept (and documented) only to point to the
> state we should free eventually.
>
> All users have been converted to the relevant old or new state
> accessors.
>
> This was tested on tidss.
>
> Let me know what you think,
> Maxime
>
> Signed-off-by: Maxime Ripard <mripard@kernel.org>
Other than the pre-existing ingenic private state issue that
Dmitry spotted I didn't see anything obviously wrong.
So apart from that the series is
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> Changes in v2:
> - Dropped the first and second patches
> - Reworked the recipient list to be nicer with SMTPs
> - Link to v1: https://lore.kernel.org/r/20250825-drm-no-more-existing-state-v1-0-f08ccd9f85c9@kernel.org
>
> ---
> Maxime Ripard (37):
> drm/atomic: Convert drm_atomic_get_connector_state() to use new connector state
> drm/atomic: Remove unused drm_atomic_get_existing_connector_state()
> drm/atomic: Document __drm_connectors_state state pointer
> drm/atomic: Convert __drm_atomic_get_current_plane_state() to modern accessor
> drm/atomic: Convert drm_atomic_get_plane_state() to use new plane state
> drm/vkms: Convert vkms_crtc_atomic_check() to use new plane state
> drm/tilcdc: crtc: Use drm_atomic_helper_check_crtc_primary_plane()
> drm/atomic: Remove unused drm_atomic_get_existing_plane_state()
> drm/atomic: Document __drm_planes_state state pointer
> drm/atomic: Convert drm_atomic_get_crtc_state() to use new connector state
> drm/ingenic: ipu: Switch to drm_atomic_get_new_crtc_state()
> drm/arm/malidp: Switch to drm_atomic_get_new_crtc_state()
> drm/armada: Switch to drm_atomic_get_new_crtc_state()
> drm/atmel-hlcdc: Switch to drm_atomic_get_new_crtc_state()
> drm/exynos: Switch to drm_atomic_get_new_crtc_state()
> drm/imx-dc: Switch to drm_atomic_get_new_crtc_state()
> drm/imx-dcss: Switch to drm_atomic_get_new_crtc_state()
> drm/imx-ipuv3: Switch to drm_atomic_get_new_crtc_state()
> drm/ingenic: Switch to drm_atomic_get_new_crtc_state()
> drm/kmb: Switch to drm_atomic_get_new_crtc_state()
> drm/logicvc: Switch to drm_atomic_get_new_crtc_state()
> drm/loongson: Switch to drm_atomic_get_new_crtc_state()
> drm/mediatek: Switch to drm_atomic_get_new_crtc_state()
> drm/msm/mdp5: Switch to drm_atomic_get_new_crtc_state()
> drm/omap: Switch to drm_atomic_get_new_crtc_state()
> drm/rockchip: Switch to drm_atomic_get_new_crtc_state()
> drm/sun4i: Switch to drm_atomic_get_new_crtc_state()
> drm/tegra: Switch to drm_atomic_get_new_crtc_state()
> drm/tilcdc: Switch to drm_atomic_get_new_crtc_state()
> drm/vboxvideo: Switch to drm_atomic_get_new_crtc_state()
> drm/vc4: Switch to drm_atomic_get_new_crtc_state()
> drm/atomic: Switch to drm_atomic_get_new_crtc_state()
> drm/framebuffer: Switch to drm_atomic_get_new_crtc_state()
> drm/atomic: Remove unused drm_atomic_get_existing_crtc_state()
> drm/atomic: Document __drm_crtcs_state state pointer
> drm/atomic: Convert drm_atomic_get_private_obj_state() to use new plane state
> drm/atomic: Document __drm_private_objs_state state pointer
>
> drivers/gpu/drm/arm/malidp_planes.c | 2 +-
> drivers/gpu/drm/armada/armada_plane.c | 3 +-
> drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 2 +-
> drivers/gpu/drm/drm_atomic.c | 21 ++--
> drivers/gpu/drm/drm_framebuffer.c | 2 +-
> drivers/gpu/drm/exynos/exynos_drm_plane.c | 2 +-
> drivers/gpu/drm/imx/dc/dc-plane.c | 2 +-
> drivers/gpu/drm/imx/dcss/dcss-plane.c | 4 +-
> drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c | 3 +-
> drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 3 +-
> drivers/gpu/drm/ingenic/ingenic-ipu.c | 4 +-
> drivers/gpu/drm/kmb/kmb_plane.c | 3 +-
> drivers/gpu/drm/logicvc/logicvc_layer.c | 4 +-
> drivers/gpu/drm/loongson/lsdc_plane.c | 2 +-
> drivers/gpu/drm/mediatek/mtk_plane.c | 3 +-
> drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 7 +-
> drivers/gpu/drm/omapdrm/omap_plane.c | 2 +-
> drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 6 +-
> drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 2 +-
> drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 3 +-
> drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 3 +-
> drivers/gpu/drm/tegra/dc.c | 2 +-
> drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 9 +-
> drivers/gpu/drm/tilcdc/tilcdc_plane.c | 3 +-
> drivers/gpu/drm/vboxvideo/vbox_mode.c | 8 +-
> drivers/gpu/drm/vc4/vc4_plane.c | 6 +-
> drivers/gpu/drm/vkms/vkms_crtc.c | 4 +-
> include/drm/drm_atomic.h | 144 ++++++++++++------------
> 28 files changed, 124 insertions(+), 135 deletions(-)
> ---
> base-commit: 7fa4d8dc380fbd81a9d702a855c50690c9c6442c
> change-id: 20250825-drm-no-more-existing-state-9b3252c1a33b
>
> Best regards,
> --
> Maxime Ripard <mripard@kernel.org>
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2025-09-02 14:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-02 9:34 [PATCH v2 00/37] drm/atomic: Get rid of existing states (not really) Maxime Ripard
2025-09-02 9:35 ` [PATCH v2 11/37] drm/ingenic: ipu: Switch to drm_atomic_get_new_crtc_state() Maxime Ripard
2025-09-03 19:03 ` Paul Cercueil
2025-09-02 9:35 ` [PATCH v2 19/37] drm/ingenic: " Maxime Ripard
2025-09-03 19:04 ` Paul Cercueil
2025-09-02 14:29 ` Ville Syrjälä [this message]
2025-09-03 19:09 ` [PATCH v2 00/37] drm/atomic: Get rid of existing states (not really) Ville Syrjälä
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aLb_OrVn6hK0Hf-F@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=abhinav.kumar@linux.dev \
--cc=airlied@gmail.com \
--cc=alexandre.belloni@bootlin.com \
--cc=alim.akhtar@samsung.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=anitha.chrisanthus@intel.com \
--cc=chunkuang.hu@kernel.org \
--cc=claudiu.beznea@tuxon.dev \
--cc=dharma.b@microchip.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=edmund.j.dea@intel.com \
--cc=festevam@gmail.com \
--cc=hamohammed.sa@gmail.com \
--cc=imx@lists.linux.dev \
--cc=inki.dae@samsung.com \
--cc=jyri.sarha@iki.fi \
--cc=kernel@pengutronix.de \
--cc=krzk@kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=l.stach@pengutronix.de \
--cc=laurentiu.palcu@oss.nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=liviu.dudau@arm.com \
--cc=louis.chauvet@bootlin.com \
--cc=lumag@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=manikandan.m@microchip.com \
--cc=matthias.bgg@gmail.com \
--cc=melissa.srw@gmail.com \
--cc=mripard@kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=p.zabel@pengutronix.de \
--cc=paul@crapouillou.net \
--cc=paulk@sys-base.io \
--cc=robin.clark@oss.qualcomm.com \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=simona@ffwll.ch \
--cc=suijingfeng@loongson.cn \
--cc=sw0312.kim@samsung.com \
--cc=tomi.valkeinen@ideasonboard.com \
--cc=tzimmermann@suse.de \
--cc=victor.liu@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).