From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
dri-devel@lists.freedesktop.org
Cc: intel-gfx@lists.freedesktop.org,
"Abhinav Kumar" <quic_abhinavk@quicinc.com>,
"Alain Volmat" <alain.volmat@foss.st.com>,
"Alex Deucher" <alexander.deucher@amd.com>,
"Alexey Brodkin" <abrodkin@synopsys.com>,
amd-gfx@lists.freedesktop.org,
"Andy Yan" <andy.yan@rock-chips.com>,
"Christian König" <christian.koenig@amd.com>,
"Danilo Krummrich" <dakr@redhat.com>,
"Dmitry Baryshkov" <dmitry.baryshkov@linaro.org>,
freedreno@lists.freedesktop.org,
"Hans de Goede" <hdegoede@redhat.com>,
"Heiko Stübner" <heiko@sntech.de>,
"Inki Dae" <inki.dae@samsung.com>,
"Jyri Sarha" <jyri.sarha@iki.fi>,
"Karol Herbst" <kherbst@redhat.com>,
linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org,
linux-arm-msm@vger.kernel.orga,
linux-mediatek@lists.infradead.org,
linux-renesas-soc@vger.kernel.org,
"Liviu Dudau" <liviu.dudau@arm.com>,
"Lyude Paul" <lyude@redhat.com>,
"Maíra Canal" <mairacanal@riseup.net>,
"Marijn Suijten" <marijn.suijten@somainline.org>,
nouveau@lists.freedesktop.org, nouveau@lists.freedesktop.orga,
"Patrik Jakobsson" <patrik.r.jakobsson@gmail.com>,
"Rob Clark" <robdclark@gmail.com>,
"Russell King" <linux@armlinux.org.uk>,
"Sandy Huang" <hjc@rock-chips.com>, "Sean Paul" <sean@poorly.run>,
spice-devel@lists.freedesktop.org,
virtualization@lists.linux.dev, xen-devel@lists.xenproject.org,
"Xinhui Pan" <Xinhui.Pan@amd.com>,
"Zack Rusin" <zack.rusin@broadcom.com>
Subject: Re: [PATCH 0/2] drm: Treewide plane/crtc legacy state sweeping
Date: Fri, 25 Oct 2024 12:59:05 +0300 [thread overview]
Message-ID: <8734kkqz9y.fsf@intel.com> (raw)
In-Reply-To: <ZxtMz8JP3DbzpMew@intel.com>
On Fri, 25 Oct 2024, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Wed, Oct 02, 2024 at 09:21:58PM +0300, Ville Syrjala wrote:
>> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>>
>> An attempt to hide the drm_plane/crtc legacy state better.
>>
>> This also highlights the fact that a lot of supposedly
>> atomic drivers are poking around in the legacy crtc state,
>> which is rather questionable. For planes we did force the
>> legacy state to NULL already to force drivers to behave.
>> But even then it seems capable of confusing people with
>> its high profile location directly under drm_plane.
>>
>> This might end up as some kind of conflict
>> galore, but the alternative would involve trying
>> to wean the atomic drivers off one by one,
>> which would probably take forever. At least with
>> this the issue becomes visible and shouldn't be
>> forgotten as easily.
>
> Ping, anyone have thoughts on this? I'd like to get something
> like this in at some point to make the legacy state (ab)users
> easily visible...
On the approach,
Acked-by: Jani Nikula <jani.nikula@intel.com>
with or without converting legacy into a pointer, up to you.
>
>>
>> The cc list was getting way out of hand, so I had
>> to trim it a bit. Hopefully I didn't chop off too
>> many names...
>>
>> Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
>> Cc: Alain Volmat <alain.volmat@foss.st.com>
>> Cc: Alex Deucher <alexander.deucher@amd.com>
>> Cc: Alexey Brodkin <abrodkin@synopsys.com>
>> Cc: amd-gfx@lists.freedesktop.org
>> Cc: Andy Yan <andy.yan@rock-chips.com>
>> Cc: "Christian König" <christian.koenig@amd.com>
>> Cc: Danilo Krummrich <dakr@redhat.com>
>> Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>> Cc: freedreno@lists.freedesktop.org
>> Cc: Hans de Goede <hdegoede@redhat.com>
>> Cc: "Heiko Stübner" <heiko@sntech.de>
>> Cc: Inki Dae <inki.dae@samsung.com>
>> Cc: Jyri Sarha <jyri.sarha@iki.fi>
>> Cc: Karol Herbst <kherbst@redhat.com>
>> Cc: linux-amlogic@lists.infradead.org
>> Cc: linux-arm-msm@vger.kernel.org
>> Cc: linux-arm-msm@vger.kernel.orga
>> Cc: linux-mediatek@lists.infradead.org
>> Cc: linux-renesas-soc@vger.kernel.org
>> Cc: Liviu Dudau <liviu.dudau@arm.com>
>> Cc: Lyude Paul <lyude@redhat.com>
>> Cc: "Maíra Canal" <mairacanal@riseup.net>
>> Cc: Marijn Suijten <marijn.suijten@somainline.org>
>> Cc: nouveau@lists.freedesktop.org
>> Cc: nouveau@lists.freedesktop.orga
>> Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
>> Cc: Rob Clark <robdclark@gmail.com>
>> Cc: Russell King <linux@armlinux.org.uk>
>> Cc: Sandy Huang <hjc@rock-chips.com>
>> Cc: Sean Paul <sean@poorly.run>
>> Cc: spice-devel@lists.freedesktop.org
>> Cc: virtualization@lists.linux.dev
>> Cc: xen-devel@lists.xenproject.org
>> Cc: Xinhui Pan <Xinhui.Pan@amd.com>
>> Cc: Zack Rusin <zack.rusin@broadcom.com>
>>
>> Ville Syrjälä (2):
>> drm: Move plane->{fb,old_fb,crtc} to legacy sub-structure
>> drm: Move crtc->{x,y,mode,enabled} to legacy sub-structure
>>
>> .../gpu/drm/amd/amdgpu/amdgpu_connectors.c | 7 +-
>> drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 20 ++---
>> drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c | 2 +-
>> drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 2 +-
>> drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 35 ++++----
>> drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 35 ++++----
>> drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 37 ++++-----
>> drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 35 ++++----
>> .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 14 ++--
>> .../amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 2 +-
>> drivers/gpu/drm/amd/pm/amdgpu_dpm_internal.c | 4 +-
>> drivers/gpu/drm/arm/hdlcd_drv.c | 2 +-
>> drivers/gpu/drm/arm/malidp_hw.c | 2 +-
>> drivers/gpu/drm/armada/armada_crtc.c | 12 ++-
>> drivers/gpu/drm/ast/ast_dp.c | 8 +-
>> drivers/gpu/drm/drm_atomic.c | 6 +-
>> drivers/gpu/drm/drm_atomic_helper.c | 8 +-
>> drivers/gpu/drm/drm_client_modeset.c | 10 +--
>> drivers/gpu/drm/drm_crtc.c | 31 +++----
>> drivers/gpu/drm/drm_crtc_helper.c | 80 ++++++++++---------
>> drivers/gpu/drm/drm_fb_helper.c | 12 +--
>> drivers/gpu/drm/drm_framebuffer.c | 4 +-
>> drivers/gpu/drm/drm_plane.c | 69 ++++++++--------
>> drivers/gpu/drm/drm_plane_helper.c | 6 +-
>> drivers/gpu/drm/drm_vblank.c | 2 +-
>> drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 4 +-
>> drivers/gpu/drm/gma500/cdv_intel_display.c | 2 +-
>> drivers/gpu/drm/gma500/cdv_intel_dp.c | 6 +-
>> drivers/gpu/drm/gma500/cdv_intel_hdmi.c | 3 +-
>> drivers/gpu/drm/gma500/cdv_intel_lvds.c | 6 +-
>> drivers/gpu/drm/gma500/gma_display.c | 22 ++---
>> drivers/gpu/drm/gma500/oaktrail_crtc.c | 2 +-
>> drivers/gpu/drm/gma500/psb_intel_display.c | 2 +-
>> drivers/gpu/drm/gma500/psb_intel_lvds.c | 6 +-
>> drivers/gpu/drm/gma500/psb_intel_sdvo.c | 8 +-
>> drivers/gpu/drm/i2c/ch7006_drv.c | 7 +-
>> drivers/gpu/drm/i2c/sil164_drv.c | 2 +-
>> .../drm/i915/display/intel_modeset_setup.c | 4 +-
>> drivers/gpu/drm/imx/lcdc/imx-lcdc.c | 31 ++++---
>> drivers/gpu/drm/mediatek/mtk_crtc.c | 6 +-
>> drivers/gpu/drm/meson/meson_overlay.c | 2 +-
>> drivers/gpu/drm/meson/meson_plane.c | 8 +-
>> drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 18 +++--
>> drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 6 +-
>> drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 16 ++--
>> drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 4 +-
>> drivers/gpu/drm/nouveau/dispnv04/crtc.c | 25 +++---
>> drivers/gpu/drm/nouveau/dispnv04/cursor.c | 2 +-
>> drivers/gpu/drm/nouveau/dispnv04/dfp.c | 2 +-
>> drivers/gpu/drm/nouveau/dispnv04/disp.c | 4 +-
>> .../gpu/drm/nouveau/dispnv04/tvmodesnv17.c | 4 +-
>> drivers/gpu/drm/nouveau/dispnv04/tvnv17.c | 7 +-
>> drivers/gpu/drm/nouveau/nouveau_connector.c | 6 +-
>> drivers/gpu/drm/qxl/qxl_display.c | 6 +-
>> drivers/gpu/drm/radeon/atombios_crtc.c | 28 +++----
>> drivers/gpu/drm/radeon/cik.c | 12 +--
>> drivers/gpu/drm/radeon/evergreen.c | 16 ++--
>> drivers/gpu/drm/radeon/r100.c | 16 ++--
>> drivers/gpu/drm/radeon/r600_cs.c | 2 +-
>> drivers/gpu/drm/radeon/r600_dpm.c | 4 +-
>> drivers/gpu/drm/radeon/radeon_connectors.c | 7 +-
>> drivers/gpu/drm/radeon/radeon_cursor.c | 29 +++----
>> drivers/gpu/drm/radeon/radeon_device.c | 2 +-
>> drivers/gpu/drm/radeon/radeon_display.c | 26 +++---
>> drivers/gpu/drm/radeon/radeon_drv.c | 2 +-
>> drivers/gpu/drm/radeon/radeon_legacy_crtc.c | 16 ++--
>> .../gpu/drm/radeon/radeon_legacy_encoders.c | 2 +-
>> drivers/gpu/drm/radeon/radeon_pm.c | 2 +-
>> drivers/gpu/drm/radeon/rs600.c | 10 +--
>> drivers/gpu/drm/radeon/rs690.c | 22 ++---
>> drivers/gpu/drm/radeon/rs780_dpm.c | 6 +-
>> drivers/gpu/drm/radeon/rv515.c | 30 +++----
>> drivers/gpu/drm/radeon/rv770.c | 2 +-
>> drivers/gpu/drm/radeon/si.c | 14 ++--
>> .../gpu/drm/renesas/rcar-du/rcar_du_crtc.c | 2 +-
>> .../gpu/drm/renesas/shmobile/shmob_drm_crtc.c | 2 +-
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 6 +-
>> drivers/gpu/drm/sti/sti_crtc.c | 4 +-
>> drivers/gpu/drm/sti/sti_cursor.c | 2 +-
>> drivers/gpu/drm/sti/sti_gdp.c | 2 +-
>> drivers/gpu/drm/sti/sti_hqvdp.c | 2 +-
>> drivers/gpu/drm/sti/sti_tvout.c | 6 +-
>> drivers/gpu/drm/sti/sti_vid.c | 2 +-
>> drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 10 +--
>> drivers/gpu/drm/tiny/arcpgu.c | 2 +-
>> drivers/gpu/drm/vboxvideo/vbox_mode.c | 2 +-
>> drivers/gpu/drm/vc4/vc4_dpi.c | 2 +-
>> drivers/gpu/drm/vc4/vc4_plane.c | 4 +-
>> drivers/gpu/drm/virtio/virtgpu_display.c | 4 +-
>> drivers/gpu/drm/vkms/vkms_composer.c | 4 +-
>> drivers/gpu/drm/vkms/vkms_crtc.c | 2 +-
>> drivers/gpu/drm/vkms/vkms_writeback.c | 4 +-
>> drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 8 +-
>> drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | 18 +++--
>> drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | 9 ++-
>> drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 4 +-
>> drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c | 2 +-
>> drivers/gpu/drm/xen/xen_drm_front_kms.c | 2 +-
>> include/drm/drm_crtc.h | 75 ++++++++---------
>> include/drm/drm_plane.h | 52 ++++++------
>> 100 files changed, 599 insertions(+), 547 deletions(-)
>>
>> --
>> 2.45.2
--
Jani Nikula, Intel
prev parent reply other threads:[~2024-10-25 9:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-02 18:21 [PATCH 0/2] drm: Treewide plane/crtc legacy state sweeping Ville Syrjala
2024-10-02 18:22 ` [PATCH 2/2] drm: Move crtc->{x,y,mode,enabled} to legacy sub-structure Ville Syrjala
2024-10-03 12:38 ` [PATCH 2/2] drm: Move crtc->{x, y, mode, enabled} " Louis Chauvet
2024-10-03 13:46 ` Ville Syrjälä
2024-10-03 15:07 ` Louis Chauvet
2024-10-03 15:29 ` Ville Syrjälä
2024-10-03 15:45 ` Louis Chauvet
2024-10-25 7:46 ` [PATCH 0/2] drm: Treewide plane/crtc legacy state sweeping Ville Syrjälä
2024-10-25 9:54 ` Dmitry Baryshkov
2024-10-25 9:59 ` Jani Nikula [this message]
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=8734kkqz9y.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=Xinhui.Pan@amd.com \
--cc=abrodkin@synopsys.com \
--cc=alain.volmat@foss.st.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=andy.yan@rock-chips.com \
--cc=christian.koenig@amd.com \
--cc=dakr@redhat.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=hdegoede@redhat.com \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=inki.dae@samsung.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jyri.sarha@iki.fi \
--cc=kherbst@redhat.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-arm-msm@vger.kernel.orga \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=liviu.dudau@arm.com \
--cc=lyude@redhat.com \
--cc=mairacanal@riseup.net \
--cc=marijn.suijten@somainline.org \
--cc=nouveau@lists.freedesktop.org \
--cc=nouveau@lists.freedesktop.orga \
--cc=patrik.r.jakobsson@gmail.com \
--cc=quic_abhinavk@quicinc.com \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=spice-devel@lists.freedesktop.org \
--cc=ville.syrjala@linux.intel.com \
--cc=virtualization@lists.linux.dev \
--cc=xen-devel@lists.xenproject.org \
--cc=zack.rusin@broadcom.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).