Re: [PATCH v2 2/2] drm/msm: drop the CTM modeset hack from msm_atomic_check()

From: Dmitry Baryshkov

Date: Sun Dec 06 2026 - 06:20:26 EST


On Sun, Nov 01, 2026 at 01:26:58PM +0100, Beat M. Liechti wrote:
> msm_atomic_check() forces a modeset, and sets allow_modeset on behalf
> of userspace, whenever the CTM property of a CRTC is set or cleared.
> This was added so that DPU could reserve DSPP blocks for the CTM.
>
> DPU is the only msm display driver that exposes color management, and
> dpu_crtc_check_mode_changed() now requires a modeset whenever the DSPP
> requirement changes, for both CTM and GAMMA_LUT. The generic check is
> therefore redundant. It also forces needless modesets when the CTM is
> toggled while a GAMMA_LUT keeps the DSPPs reserved, and it overrides
> the userspace decision about modesets.
>
> Remove it, as the FIXME suggested. Commits that toggle the CTM without
> DRM_MODE_ATOMIC_ALLOW_MODESET now fail with -EINVAL instead of
> silently becoming a modeset.
>
> Assisted-by: LLM
> Signed-off-by: Beat M. Liechti <beat@xxxxxxxxxxxxx>
> ---
> drivers/gpu/drm/msm/msm_atomic.c | 17 +----------------
> 1 file changed, 1 insertion(+), 16 deletions(-)
>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>


--
With best wishes
Dmitry