All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: Icenowy Zheng <zhengxingda@iscas.ac.cn>,
	Huacai Chen <chenhuacai@loongson.cn>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Huacai Chen <chenhuacai@kernel.org>,
	Jianmin Lv <lvjianmin@loongson.cn>,
	Qianhai Wu <wuqianhai@loongson.cn>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Mingcong Bai <jeffbai@aosc.io>, Xi Ruoyao <xry111@xry111.site>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH V3] drm/loongson: Create blend mode property for cursor plane
Date: Thu, 17 Sep 2026 08:16:46 +0200	[thread overview]
Message-ID: <1f98d0ec-8432-41ea-a3b1-0fbed621e1bf@suse.de> (raw)
In-Reply-To: <a740569552a88eeb51055b73c8f05333269a0780.camel@iscas.ac.cn>



Am 17.09.26 um 07:08 schrieb Icenowy Zheng:
> 在 2026-09-03四的 16:42 +0800,Huacai Chen写道:
>> After commit 860e748bddcc929 ("drm: ensure blend mode supported if
>> pixel
>> format with alpha exposed") we get warnings at boot:
>>
>> loongson 0000:00:06.1: [drm] [PLANE:41:ls-cursor-plane-0] pixel
>> format with alpha exposed but blend mode not setup. Please fix.
>> loongson 0000:00:06.1: [drm] [PLANE:46:ls-cursor-plane-1] pixel
>> format with alpha exposed but blend mode not setup. Please fix.
>>
>> The reason is the cursor plane supports color formats with alpha but
>> the
>> driver doesn't create blend mode property, which triggers the warning
>> in
>> validate_blend_mode_for_alpha_formats().
>>
>> The loongson DC HW doesn't support DRM_MODE_BLEND_PREMULTI, so create
>> blend mode property with DRM_MODE_BLEND_COVERAGE for cursor planes
>> since
>> it is the only one implemented in the driver.
> It looks like this patch is hanging here for weeks. Should I apply it
> to drm-misc-fixes?

Go ahead

>
> Thanks,
> Icenowy
>
>> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
>> ---
>>   drivers/gpu/drm/loongson/lsdc_plane.c | 5 +++--
>>   1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/loongson/lsdc_plane.c
>> b/drivers/gpu/drm/loongson/lsdc_plane.c
>> index bea42215796d..bcc0ffa17bdf 100644
>> --- a/drivers/gpu/drm/loongson/lsdc_plane.c
>> +++ b/drivers/gpu/drm/loongson/lsdc_plane.c
>> @@ -7,6 +7,7 @@
>>   
>>   #include <drm/drm_atomic.h>
>>   #include <drm/drm_atomic_helper.h>
>> +#include <drm/drm_blend.h>
>>   #include <drm/drm_framebuffer.h>
>>   #include <drm/drm_gem_atomic_helper.h>
>>   #include <drm/drm_print.h>
>> @@ -765,7 +766,7 @@ int ls7a1000_cursor_plane_init(struct drm_device
>> *ddev,
>>   
>>   	drm_plane_helper_add(plane,
>> &ls7a1000_cursor_plane_helper_funcs);
>>   
>> -	return 0;
>> +	return drm_plane_create_blend_mode_property(plane,
>> BIT(DRM_MODE_BLEND_COVERAGE));
>>   }
>>   
>>   int ls7a2000_cursor_plane_init(struct drm_device *ddev,
>> @@ -790,5 +791,5 @@ int ls7a2000_cursor_plane_init(struct drm_device
>> *ddev,
>>   
>>   	drm_plane_helper_add(plane,
>> &ls7a2000_cursor_plane_helper_funcs);
>>   
>> -	return 0;
>> +	return drm_plane_create_blend_mode_property(plane,
>> BIT(DRM_MODE_BLEND_COVERAGE));
>>   }

-- 
--
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-17  6:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-03  8:42 [PATCH V3] drm/loongson: Create blend mode property for cursor plane Huacai Chen
2026-09-03  8:56 ` sashiko-bot
2026-09-03  9:01 ` Icenowy Zheng
2026-09-04  8:39 ` Jianmin Lv
2026-09-17  5:08 ` Icenowy Zheng
2026-09-17  6:16   ` Thomas Zimmermann [this message]
2026-09-17  7:16 ` Icenowy Zheng

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=1f98d0ec-8432-41ea-a3b1-0fbed621e1bf@suse.de \
    --to=tzimmermann@suse.de \
    --cc=airlied@gmail.com \
    --cc=chenhuacai@kernel.org \
    --cc=chenhuacai@loongson.cn \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jeffbai@aosc.io \
    --cc=lvjianmin@loongson.cn \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=wuqianhai@loongson.cn \
    --cc=xry111@xry111.site \
    --cc=zhengxingda@iscas.ac.cn \
    /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.