* [PATCH] drm/stm: ltdc: create blend mode property
@ 2026-10-28 13:18 Dario Binacchi
2026-11-20 11:11 ` Dario Binacchi
2026-11-20 11:27 ` Raphael Gallais-Pou
0 siblings, 2 replies; 4+ messages in thread
From: Dario Binacchi @ 2026-10-28 13:18 UTC (permalink / raw)
To: Yannick Fertre, Raphael Gallais-Pou, Philippe Cornu
Cc: michael, linux-amarula, Dario Binacchi, Alexandre Torgue,
Daniel Stone, David Airlie, Leandro Ribeiro, Maarten Lankhorst,
Maxime Coquelin, Maxime Ripard, Pekka Paalanen, Simona Vetter,
Thomas Zimmermann, dri-devel, linux-arm-kernel, linux-kernel,
linux-stm32
After commit 860e748bddcc ("drm: ensure blend mode supported if pixel
format with alpha exposed") we get warnings at boot:
stm32-display 48010000.display-controller: [drm] [PLANE:37:plane-0] pixel format with alpha exposed but blend mode not setup. Please fix.
The LTDC blends the pixel formats with alpha by straight alpha, the
only mode implemented in the driver. Create the blend mode property
with DRM_MODE_BLEND_COVERAGE only.
Fixes: 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
drivers/gpu/drm/stm/ltdc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c
index 5311e0b3e8dc..3b6e680c1c61 100644
--- a/drivers/gpu/drm/stm/ltdc.c
+++ b/drivers/gpu/drm/stm/ltdc.c
@@ -1642,6 +1642,7 @@ static struct drm_plane *ltdc_plane_create(struct drm_device *ddev,
drm_plane_helper_add(plane, <dc_plane_helper_funcs);
drm_plane_create_alpha_property(plane);
+ drm_plane_create_blend_mode_property(plane, BIT(DRM_MODE_BLEND_COVERAGE));
drm_dbg_driver(plane->dev, "plane:%d created\n", plane->base.id);
---
base-commit: 65ba8f34ec886ec72b2c07ddc8cf3d815c32869d
branch: stm32-ltdc-blend-mode
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/stm: ltdc: create blend mode property
2026-10-28 13:18 [PATCH] drm/stm: ltdc: create blend mode property Dario Binacchi
@ 2026-11-20 11:11 ` Dario Binacchi
2026-11-20 11:27 ` Raphael Gallais-Pou
1 sibling, 0 replies; 4+ messages in thread
From: Dario Binacchi @ 2026-11-20 11:11 UTC (permalink / raw)
To: Yannick Fertre, Raphael Gallais-Pou, Philippe Cornu
Cc: michael, linux-amarula, Alexandre Torgue, Daniel Stone,
David Airlie, Leandro Ribeiro, Maarten Lankhorst,
Maxime Coquelin, Maxime Ripard, Pekka Paalanen, Simona Vetter,
Thomas Zimmermann, dri-devel, linux-arm-kernel, linux-kernel,
linux-stm32
Hi Yannick, Raphael, Philippe,
Gentle ping on this patch.
The warning has been there since v7.3 and is still present in v7.4-rc3
and in next-20261119.
Thanks and regards,
Dario
On Wed, Oct 28, 2026 at 2:18 PM Dario Binacchi
<dario.binacchi@amarulasolutions.com> wrote:
>
> After commit 860e748bddcc ("drm: ensure blend mode supported if pixel
> format with alpha exposed") we get warnings at boot:
>
> stm32-display 48010000.display-controller: [drm] [PLANE:37:plane-0] pixel format with alpha exposed but blend mode not setup. Please fix.
>
> The LTDC blends the pixel formats with alpha by straight alpha, the
> only mode implemented in the driver. Create the blend mode property
> with DRM_MODE_BLEND_COVERAGE only.
>
> Fixes: 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed")
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
>
> ---
>
> drivers/gpu/drm/stm/ltdc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c
> index 5311e0b3e8dc..3b6e680c1c61 100644
> --- a/drivers/gpu/drm/stm/ltdc.c
> +++ b/drivers/gpu/drm/stm/ltdc.c
> @@ -1642,6 +1642,7 @@ static struct drm_plane *ltdc_plane_create(struct drm_device *ddev,
> drm_plane_helper_add(plane, <dc_plane_helper_funcs);
>
> drm_plane_create_alpha_property(plane);
> + drm_plane_create_blend_mode_property(plane, BIT(DRM_MODE_BLEND_COVERAGE));
>
> drm_dbg_driver(plane->dev, "plane:%d created\n", plane->base.id);
>
> ---
> base-commit: 65ba8f34ec886ec72b2c07ddc8cf3d815c32869d
> branch: stm32-ltdc-blend-mode
>
> --
> 2.43.0
>
--
Dario Binacchi
Senior Embedded Software Engineer
M. +39 328 0625246
dario.binacchi@amarulasolutions.com
―――――――――――――――
Amarula Solutions SRL
Via Felice Cavallotti 25D, 41012 Carpi, MO, IT
info@amarulasolutions.com
www.amarulasolutions.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/stm: ltdc: create blend mode property
2026-10-28 13:18 [PATCH] drm/stm: ltdc: create blend mode property Dario Binacchi
2026-11-20 11:11 ` Dario Binacchi
@ 2026-11-20 11:27 ` Raphael Gallais-Pou
2026-12-01 9:07 ` Yannick FERTRE
1 sibling, 1 reply; 4+ messages in thread
From: Raphael Gallais-Pou @ 2026-11-20 11:27 UTC (permalink / raw)
To: Dario Binacchi, Yannick Fertre, Philippe Cornu
Cc: michael, linux-amarula, Alexandre Torgue, Daniel Stone,
David Airlie, Leandro Ribeiro, Maarten Lankhorst,
Maxime Coquelin, Maxime Ripard, Pekka Paalanen, Simona Vetter,
Thomas Zimmermann, dri-devel, linux-arm-kernel, linux-kernel,
linux-stm32
On 10/28/26 14:18, Dario Binacchi wrote:
> After commit 860e748bddcc ("drm: ensure blend mode supported if pixel
> format with alpha exposed") we get warnings at boot:
>
> stm32-display 48010000.display-controller: [drm] [PLANE:37:plane-0] pixel format with alpha exposed but blend mode not setup. Please fix.
>
> The LTDC blends the pixel formats with alpha by straight alpha, the
> only mode implemented in the driver. Create the blend mode property
> with DRM_MODE_BLEND_COVERAGE only.
>
> Fixes: 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed")
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
>
> ---
>
Hi Dario,
Reviewed-by: Raphaël Gallais-Pou <raphael.gallais-pou@foss.st.com>
Best regards,
Raphaël
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/stm: ltdc: create blend mode property
2026-11-20 11:27 ` Raphael Gallais-Pou
@ 2026-12-01 9:07 ` Yannick FERTRE
0 siblings, 0 replies; 4+ messages in thread
From: Yannick FERTRE @ 2026-12-01 9:07 UTC (permalink / raw)
To: Raphael Gallais-Pou, Dario Binacchi, Philippe Cornu
Cc: michael, linux-amarula, Alexandre Torgue, Daniel Stone,
David Airlie, Leandro Ribeiro, Maarten Lankhorst,
Maxime Coquelin, Maxime Ripard, Pekka Paalanen, Simona Vetter,
Thomas Zimmermann, dri-devel, linux-arm-kernel, linux-kernel,
linux-stm32
Hi Dario,
thanks for this patch.
Acked-by: Yannick Fertre <yannick.fertre@foss.st.com>
Tested-by: Yannick Fertre <yannick.fertre@foss.st.com>
Best regards
On 11/20/26 12:27, Raphael Gallais-Pou wrote:
> On 10/28/26 14:18, Dario Binacchi wrote:
>> After commit 860e748bddcc ("drm: ensure blend mode supported if pixel
>> format with alpha exposed") we get warnings at boot:
>>
>> stm32-display 48010000.display-controller: [drm] [PLANE:37:plane-0] pixel format with alpha exposed but blend mode not setup. Please fix.
>>
>> The LTDC blends the pixel formats with alpha by straight alpha, the
>> only mode implemented in the driver. Create the blend mode property
>> with DRM_MODE_BLEND_COVERAGE only.
>>
>> Fixes: 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed")
>> Signed-off-by: Dario Binacchi<dario.binacchi@amarulasolutions.com>
>>
>> ---
>>
> Hi Dario,
>
> Reviewed-by: Raphaël Gallais-Pou<raphael.gallais-pou@foss.st.com>
>
> Best regards,
> Raphaël
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-12-01 9:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 13:18 [PATCH] drm/stm: ltdc: create blend mode property Dario Binacchi
2026-11-20 11:11 ` Dario Binacchi
2026-11-20 11:27 ` Raphael Gallais-Pou
2026-12-01 9:07 ` Yannick FERTRE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®