All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: Maxime Ripard <mripard@kernel.org>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org,
	Dharma Balasubiramani <dharma.b@microchip.com>,
	Ludovic Desroches <ludovic.desroches@microchip.com>,
	Manikandan Muralidharan <manikandan.m@microchip.com>
Subject: Re: [PATCH v4 28/41] drm/atmel-hlcdc: Drop spurious csc_init call from reset
Date: Thu, 10 Sep 2026 08:48:00 +0200	[thread overview]
Message-ID: <aab2453e-b8d2-477e-9ac6-8246e7713568@suse.de> (raw)
In-Reply-To: <20260908-drm-no-more-plane-reset-v4-28-a31b3fcfc989@kernel.org>



Am 08.09.26 um 16:46 schrieb Maxime Ripard:
> The lcdc_csc_init callback was introduced in commit aa71584b323a ("drm:
> atmel-hlcdc: add driver ops to differentiate HLCDC and XLCDC IP") and
> called only once, at init time, from atmel_hlcdc_plane_init_properties().
>
> commit 81af99cbd9e4 ("drm/atmel-hlcdc: destroy properly the plane state
> in the reset callback") then reworked the reset hook to use
> atmel_hlcdc_plane_atomic_destroy_state() instead of duplicating the
> code. However, it also introduced a new call to lcdc_csc_init in the
> reset path that wasn't there before and wasn't mentioned in the commit
> log.
>
> Since CSC coefficients are hardware constants that only need to be
> written once at init time. This also prevents the conversion to
> atomic_create_state, which must not have any hardware side-effect.
>
> Fixes: 81af99cbd9e4 ("drm/atmel-hlcdc: destroy properly the plane state in the reset callback")
> Signed-off-by: Maxime Ripard <mripard@kernel.org>

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>

This looks reasonable, but I don't dare giving it a full r-b.

>
> ---
> Cc: Dharma Balasubiramani <dharma.b@microchip.com>
> Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
> Cc: Manikandan Muralidharan <manikandan.m@microchip.com>
> ---
>   drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 5 -----
>   1 file changed, 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
> index f17a832351e9..70a1cef24388 100644
> --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
> +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
> @@ -1184,12 +1184,10 @@ static void atmel_hlcdc_plane_atomic_destroy_state(struct drm_plane *p,
>   }
>   
>   static void atmel_hlcdc_plane_reset(struct drm_plane *p)
>   {
>   	struct atmel_hlcdc_plane_state *state;
> -	struct atmel_hlcdc_dc *dc = p->dev->dev_private;
> -	struct atmel_hlcdc_plane *plane = drm_plane_to_atmel_hlcdc_plane(p);
>   
>   	if (p->state) {
>   		atmel_hlcdc_plane_atomic_destroy_state(p, p->state);
>   		p->state = NULL;
>   	}
> @@ -1202,13 +1200,10 @@ static void atmel_hlcdc_plane_reset(struct drm_plane *p)
>   				"Failed to allocate initial plane state\n");
>   			return;
>   		}
>   		__drm_atomic_helper_plane_reset(p, &state->base);
>   	}
> -
> -	if (plane->layer.desc->layout.csc)
> -		dc->desc->ops->lcdc_csc_init(plane, plane->layer.desc);
>   }
>   
>   static const struct drm_plane_funcs layer_plane_funcs = {
>   	.update_plane = drm_atomic_helper_update_plane,
>   	.disable_plane = drm_atomic_helper_disable_plane,
>

-- 
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, (HRB 36809, AG Nürnberg)



  reply	other threads:[~2026-09-10  6:48 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-08 14:46 [PATCH v4 00/41] drm/plane: Convert all drivers to atomic_create_state and remove reset Maxime Ripard
2026-09-08 14:46 ` Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 01/41] drm/simple-kms: Remove unused reset_plane hook Maxime Ripard
2026-09-10  6:30   ` Thomas Zimmermann
2026-09-08 14:46 ` [PATCH v4 02/41] drm/vkms: Move frame_info into vkms_plane_state Maxime Ripard
2026-09-10  6:33   ` Thomas Zimmermann
2026-09-08 14:46 ` [PATCH v4 03/41] drm/vkms: Convert to atomic_create_state Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 04/41] drm/gem-atomic-helper: Remove __drm_gem_reset_shadow_plane() Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 05/41] drm/amdgpu: Convert to atomic_create_state Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 06/41] drm/fsl-dcu: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 07/41] drm/hisilicon/kirin: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 08/41] drm/imx/dc: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 09/41] drm/kmb: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 10/41] drm/logicvc: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 11/41] drm/loongson: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 12/41] drm/lcdif: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 13/41] drm/mxsfb: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 14/41] drm/qxl: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 15/41] drm/rockchip: " Maxime Ripard
2026-09-08 14:46   ` Maxime Ripard
2026-09-09 10:00   ` Heiko Stübner
2026-09-09 10:00     ` Heiko Stübner
2026-09-08 14:46 ` [PATCH v4 16/41] drm/sprd: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 17/41] drm/sti: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 18/41] drm/stm: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 19/41] drm/tests: kunit: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 20/41] drm/tilcdc: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 21/41] drm/vboxvideo: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 22/41] drm/verisilicon: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 23/41] drm/virtio: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 24/41] drm/xlnx: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 25/41] drm/atomic-state-helper: Remove drm_atomic_helper_plane_reset() Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 26/41] drm/amdgpu_dm: Convert to atomic_create_state Maxime Ripard
2026-09-10 16:31   ` Leo Li
2026-09-08 14:46 ` [PATCH v4 27/41] drm/armada: " Maxime Ripard
2026-09-08 14:46 ` [PATCH v4 28/41] drm/atmel-hlcdc: Drop spurious csc_init call from reset Maxime Ripard
2026-09-10  6:48   ` Thomas Zimmermann [this message]
2026-09-08 14:47 ` [PATCH v4 29/41] drm/atmel-hlcdc: Convert to atomic_create_state Maxime Ripard
2026-09-08 14:47 ` [PATCH v4 30/41] drm/exynos: " Maxime Ripard
2026-09-08 14:47 ` [PATCH v4 31/41] drm/imx/ipuv3: " Maxime Ripard
2026-09-08 14:47 ` [PATCH v4 32/41] drm/mediatek: " Maxime Ripard
2026-09-10  6:54   ` Thomas Zimmermann
2026-09-08 14:47 ` [PATCH v4 33/41] drm/nouveau: " Maxime Ripard
2026-09-08 14:47   ` Maxime Ripard
2026-09-10  6:55   ` Thomas Zimmermann
2026-09-10  6:55     ` Thomas Zimmermann
2026-09-08 14:47 ` [PATCH v4 34/41] drm/omap: " Maxime Ripard
2026-09-08 14:47 ` [PATCH v4 35/41] drm/rcar-du: " Maxime Ripard
2026-09-10  6:57   ` Thomas Zimmermann
2026-09-10 12:00   ` Laurent Pinchart
2026-09-08 14:47 ` [PATCH v4 36/41] drm/rz-du: " Maxime Ripard
2026-09-08 14:47 ` [PATCH v4 37/41] drm/shmobile: " Maxime Ripard
2026-09-10  6:58   ` Thomas Zimmermann
2026-09-08 14:47 ` [PATCH v4 38/41] drm/sun4i: layer: " Maxime Ripard
2026-09-08 14:47 ` [PATCH v4 39/41] drm/vmwgfx: " Maxime Ripard
2026-09-10  7:00   ` Thomas Zimmermann
2026-09-08 14:47 ` [PATCH v4 40/41] drm/atomic-state-helper: Remove __drm_atomic_helper_plane_reset() Maxime Ripard
2026-09-08 14:47 ` [PATCH v4 41/41] drm/plane: Remove reset Maxime Ripard
2026-09-10  7:03 ` [PATCH v4 00/41] drm/plane: Convert all drivers to atomic_create_state and remove reset Thomas Zimmermann
2026-09-10  7:03   ` Thomas Zimmermann

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=aab2453e-b8d2-477e-9ac6-8246e7713568@suse.de \
    --to=tzimmermann@suse.de \
    --cc=airlied@gmail.com \
    --cc=dharma.b@microchip.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ludovic.desroches@microchip.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=manikandan.m@microchip.com \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.