From nobody Sat Sep 26 13:08:18 2026 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9924537A85A for ; Tue, 1 Sep 2026 06:50:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.113 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788245457; cv=none; b=aRf0LOlJvAkcFsF7SYU0omqXRozzdRGii3hwV1vttalW3BpxjjjQFfdqNgEvuJRMgDp6Af/8bXITjtgms3iLg6WeUwoiHsmWybEFW/nuujcyWI/4pux9S5sEkWO+IQFRKsMHTEkadrYgG2/VQc3qUjz8gi+u6hcRdrpqVubTcVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788245457; c=relaxed/simple; bh=LCCZuwWc+pikfTw2kfVqDazB4NpaxPix7k99DTIhjUw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DXGx+gQj9nmQ2gw0YVviLaiz1f3+JG3hSFhkXldmJKLKWiFadUUAyJ0oCaZ0qEPahyHIlYZihIvaJXkyphIAXqbLMrzxYNXZG3HKQFY3Z9R0zIor/oy1tQdM4s3dbf+mJxfwiCco2qeP5V6TGMfCDtqG5acO8FmZrhHZCzZ4Cdg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=C1nyb4rk; arc=none smtp.client-ip=115.124.30.113 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="C1nyb4rk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1788245451; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=pK0k8hPLuxnI36PnvewidhRB8OWPpE5AE3xyR1ehLOg=; b=C1nyb4rkMKZD56EAJY+myYQ+FB24ip6AQd1f2++Q8ZeywLYqrXmjW3TTejtXkQKsWeDeGZ1uvO9OMUZndJOJPXuEcvDe2ffiiIir/IaUUg72AT67a7JA9wmwdERPeRIuTCjmjlX59y4fB4sEdwGT+FmMSrYYDxGYsQgpOckyoLc= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033045133197;MF=qinyuntan@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0XA4XWSz_1788245449; Received: from banye.tbsite.net(mailfrom:qinyuntan@linux.alibaba.com fp:SMTPD_---0XA4XWSz_1788245449 cluster:ay36) by smtp.aliyun-inc.com; Tue, 01 Sep 2026 14:50:50 +0800 From: Qinyun Tan To: dri-devel@lists.freedesktop.org Cc: tzimmermann@suse.de, airlied@redhat.com, jfalempe@redhat.com, kraxel@redhat.com, dmitry.osipenko@collabora.com, hansg@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, simona@ffwll.ch, leandro.ribeiro@collabora.com, daniels@collabora.com, pekka.paalanen@collabora.com, virtualization@lists.linux.dev, spice-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Qinyun Tan Subject: [PATCH 1/4] drm/ast: create blend mode property on cursor plane Date: Tue, 1 Sep 2026 14:50:42 +0800 Message-ID: <20260901065045.1152136-2-qinyuntan@linux.alibaba.com> X-Mailer: git-send-email 2.43.7 In-Reply-To: <20260901065045.1152136-1-qinyuntan@linux.alibaba.com> References: <20260901065045.1152136-1-qinyuntan@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Since commit 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed"), drm_mode_config_validate() warns when a plane exposes an alpha pixel format but not the "pixel blend mode" property. The ast cursor plane (ARGB4444, ARGB8888) trips this on driver load: [PLANE:37:plane-1] pixel format with alpha exposed but blend mode not set= up WARNING: drivers/gpu/drm/drm_mode_config.c:872 at drm_mode_config_validat= e+0x48f/0x510 [drm] ... Call Trace: drm_dev_register+0x1ce/0x290 [drm] ast_pci_probe+0x19d/0x3f0 [ast] local_pci_probe+0x41/0x90 The hardware cursor has always blended with pre-multiplied alpha and userspace assumes that blend mode when the property is not attached. Expose a "pixel blend mode" property advertising only DRM_MODE_BLEND_PREMULTI to make the existing semantics explicit and silence the warning. No functional change. Fixes: 860e748bddcc ("drm: ensure blend mode supported if pixel format with= alpha exposed") Signed-off-by: Qinyun Tan --- drivers/gpu/drm/ast/ast_cursor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/ast/ast_cursor.c b/drivers/gpu/drm/ast/ast_cur= sor.c index fd19c45f2abe2..08d93ac7f7cb8 100644 --- a/drivers/gpu/drm/ast/ast_cursor.c +++ b/drivers/gpu/drm/ast/ast_cursor.c @@ -25,6 +25,7 @@ #include =20 #include +#include #include #include #include @@ -355,6 +356,8 @@ int ast_cursor_plane_init(struct ast_device *ast) } drm_plane_helper_add(cursor_plane, &ast_cursor_plane_helper_funcs); drm_plane_enable_fb_damage_clips(cursor_plane); + drm_plane_create_blend_mode_property(cursor_plane, + BIT(DRM_MODE_BLEND_PREMULTI)); =20 return 0; } --=20 2.43.7 From nobody Sat Sep 26 13:08:18 2026 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30DC0367B9F for ; Tue, 1 Sep 2026 06:50:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.110 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788245458; cv=none; b=CqwitE2+Hr/KDz3DittF7G9Mm7DmJgUhWGWGX0OBSxKyo7oep6IrvaCz2/iLqAj0G+53234/MSlF545Gp4KA4bX0M1iVAgYNPUlBnVCHlaSoF6wL5vyoy9eOijnviyx51Hkbf4a09kv0DIXLd1Vu915FWN0sz3vHUAP0RK5bmII= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788245458; c=relaxed/simple; bh=3+oQgQjjB+apiqdYH5utkTP14/+l6+v8Ek2uXcY2qwY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ToXFn56/+Pi8bv8O965gZDWJ3hwzL7RqeCVqn6F3HoPIHs3DZAdjfpt5WTLWNmUvRQ/TuTbUBTiwfDFw55rKKCY3Ckf3Rz1nz/6mDB0ayHLpur93/1WsWuIQsqxmgakvY0w2w4VWISSrPnP2DQaMP77oob/p7DSvz5yuez84yto= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=L9UhtQAW; arc=none smtp.client-ip=115.124.30.110 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="L9UhtQAW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1788245452; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=bABm3+xrFKtz5tDE4aE1SofEi8/oUAjtsC5NdfwbKhk=; b=L9UhtQAWrUCM6knl5e/lD9GaPqoI6ZiEdIDtFqJEBucbSWy1AeGr4bedfNvxwwcq+2ANANSJ7EvBgaVNsMhktpfl6PsngfkZqstCd1+gfTBvgUxu5/+mtFzQ/LG8BlaciS5ub9eCo9U5TwvAv2JriTU2QWBaCB8D0fkwU+HA0Zo= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037026112;MF=qinyuntan@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0XA4XWTM_1788245450; Received: from banye.tbsite.net(mailfrom:qinyuntan@linux.alibaba.com fp:SMTPD_---0XA4XWTM_1788245450 cluster:ay36) by smtp.aliyun-inc.com; Tue, 01 Sep 2026 14:50:51 +0800 From: Qinyun Tan To: dri-devel@lists.freedesktop.org Cc: tzimmermann@suse.de, airlied@redhat.com, jfalempe@redhat.com, kraxel@redhat.com, dmitry.osipenko@collabora.com, hansg@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, simona@ffwll.ch, leandro.ribeiro@collabora.com, daniels@collabora.com, pekka.paalanen@collabora.com, virtualization@lists.linux.dev, spice-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Qinyun Tan Subject: [PATCH 2/4] drm/qxl: create blend mode property on primary and cursor planes Date: Tue, 1 Sep 2026 14:50:43 +0800 Message-ID: <20260901065045.1152136-3-qinyuntan@linux.alibaba.com> X-Mailer: git-send-email 2.43.7 In-Reply-To: <20260901065045.1152136-1-qinyuntan@linux.alibaba.com> References: <20260901065045.1152136-1-qinyuntan@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Since commit 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed"), drm_mode_config_validate() warns when a plane exposes an alpha pixel format but not the "pixel blend mode" property. Both the qxl primary and cursor planes expose ARGB8888 and trip this on driver load. The planes have always blended with pre-multiplied alpha and userspace assumes that blend mode when the property is not attached. Expose a "pixel blend mode" property advertising only DRM_MODE_BLEND_PREMULTI to make the existing semantics explicit and silence the warning. No functional change. Fixes: 860e748bddcc ("drm: ensure blend mode supported if pixel format with= alpha exposed") Signed-off-by: Qinyun Tan --- drivers/gpu/drm/qxl/qxl_display.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_di= splay.c index 7f4178800afd7..0cd1456cca347 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -993,6 +994,9 @@ static struct drm_plane *qxl_create_plane(struct qxl_de= vice *qdev, =20 drm_plane_helper_add(plane, helper_funcs); =20 + drm_plane_create_blend_mode_property(plane, + BIT(DRM_MODE_BLEND_PREMULTI)); + return plane; =20 free_plane: --=20 2.43.7 From nobody Sat Sep 26 13:08:18 2026 Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2AB8E382281 for ; Tue, 1 Sep 2026 06:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.101 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788245465; cv=none; b=FNsXqQgZMEpaEubWtl9vGNwpYqt68/wblOWfR4YCvHr5DSBRs/W/cRDde9Nk3xhjUQakzWgbTieVW6LeJ1AA/Vjt5bXlZ9skwFF52WRzmuW8qYG6Dje2nhsqQF3Dh+inE2y8/20S+EodU3eqZi7DFNAqAAyVoORyIXAOgvOiDGQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788245465; c=relaxed/simple; bh=vccdml3Gx5UYhkiDMlgryGSZgbpoUs2zfDs5PCxuhkQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iAL4h7Uf9NsUl0fnuhC9mS/PtTJBwf76eO7TS4GeQHNr/Edq2IrPMRIS93medn3Qgvjll4YRWLzNETXy+QkgO9ALRV/uqKKuLwseR1ISZa7mG2MnnRprkTFHPnmT1iy+ZmTpaS6gS22BLJ5OSytHfPVDAMOAxmiX9PZcM/c9Gac= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=BQONdtUX; arc=none smtp.client-ip=115.124.30.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="BQONdtUX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1788245453; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=rf4WK0KdwAQ6jr0zJzFS4FpQKho5BAQcjv37Xsync5k=; b=BQONdtUXvOwZz9kI5RfwFFsTNCqE4b5P+VPTQc7NkFKnH+ZhZZAo/WqF/SyTIRnhfeg7NkyhuuQ1BqimTn5Edb9VZo42t6bupwwxctj4hABxDoowNh5/YwNEGZfy0ElxzXFIfJZLFfIkrt4P4oWnUIfhMDAPNbgTM5wve6MYDOs= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037009110;MF=qinyuntan@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0XA4XWTg_1788245451; Received: from banye.tbsite.net(mailfrom:qinyuntan@linux.alibaba.com fp:SMTPD_---0XA4XWTg_1788245451 cluster:ay36) by smtp.aliyun-inc.com; Tue, 01 Sep 2026 14:50:52 +0800 From: Qinyun Tan To: dri-devel@lists.freedesktop.org Cc: tzimmermann@suse.de, airlied@redhat.com, jfalempe@redhat.com, kraxel@redhat.com, dmitry.osipenko@collabora.com, hansg@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, simona@ffwll.ch, leandro.ribeiro@collabora.com, daniels@collabora.com, pekka.paalanen@collabora.com, virtualization@lists.linux.dev, spice-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Qinyun Tan Subject: [PATCH 3/4] drm/virtio: create blend mode property on cursor plane Date: Tue, 1 Sep 2026 14:50:44 +0800 Message-ID: <20260901065045.1152136-4-qinyuntan@linux.alibaba.com> X-Mailer: git-send-email 2.43.7 In-Reply-To: <20260901065045.1152136-1-qinyuntan@linux.alibaba.com> References: <20260901065045.1152136-1-qinyuntan@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Since commit 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed"), drm_mode_config_validate() warns when a plane exposes an alpha pixel format but not the "pixel blend mode" property. The virtio-gpu cursor plane (HOST_ARGB8888) trips this. The cursor has always blended with pre-multiplied alpha and userspace assumes that blend mode when the property is not attached. Expose a "pixel blend mode" property advertising only DRM_MODE_BLEND_PREMULTI to make the existing semantics explicit and silence the warning. The primary plane only exposes HOST_XRGB8888, so the call is gated to the cursor. No functional change. Fixes: 860e748bddcc ("drm: ensure blend mode supported if pixel format with= alpha exposed") Signed-off-by: Qinyun Tan --- drivers/gpu/drm/virtio/virtgpu_plane.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virti= o/virtgpu_plane.c index 1d1b27ece62a7..640815af40980 100644 --- a/drivers/gpu/drm/virtio/virtgpu_plane.c +++ b/drivers/gpu/drm/virtio/virtgpu_plane.c @@ -24,6 +24,7 @@ */ =20 #include +#include #include #include #include @@ -609,6 +610,9 @@ struct drm_plane *virtio_gpu_plane_init(struct virtio_g= pu_device *vgdev, =20 if (type =3D=3D DRM_PLANE_TYPE_PRIMARY) drm_plane_enable_fb_damage_clips(plane); + else if (type =3D=3D DRM_PLANE_TYPE_CURSOR) + drm_plane_create_blend_mode_property(plane, + BIT(DRM_MODE_BLEND_PREMULTI)); =20 return plane; } --=20 2.43.7 From nobody Sat Sep 26 13:08:18 2026 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E27D436EAB1 for ; Tue, 1 Sep 2026 06:50:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.119 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788245459; cv=none; b=MPFnhxW0xjLTq81PU5R9MEbsXnA33lRDxG0vnE+dL9wmifRBCct0pSKMBkUxZbV86ybchEqYD2raMfnnzxIieksW/3UOP9BoXr6VJ3YfovheMfa8qZsLmn0F7jbijUchD+g/Eav+uaCv5xEeYLDPnNP1OAZ12lPtOw2D++/kFw8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788245459; c=relaxed/simple; bh=l4qPUdF5gMC4SWcl2LWA30GYYDiZd1cXPeYkdqRR2C4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r3oCq8BpsFuEXmGv/+dKvip1V2OFKMwdOPgUqqxKiVaSLC359q8DHbRU7VcIcLcrBchP72KPgPOZIYMJ2wEFk4Zt5xWJ47uBDJzVgcPQZAgkTvDdTS3qm6Anta7f6tOSvoVBXwgQjp1DZSIioV5k3teTvl2lfyojsWlnxZXoXvk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=jYB3kvES; arc=none smtp.client-ip=115.124.30.119 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="jYB3kvES" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1788245454; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=juHd+ouhFgJwiNTAO4tV9VXgtlspbyaULj5na1/0bi4=; b=jYB3kvESIIAhLdSq17EnzBi2LAczfGtelitayfkVv3gFC0xqsyXXEqU6U2PUH9IdWBcusPC7j46zhYfd0FNy9al/xjWC4d+8rDOYv48R5qd8f5d5zuSMZju0FSVbOSaL5Re3sYft7JucN+g/U7WbSmnvh7agVc1oUHhy12svux4= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R701e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam011083073210;MF=qinyuntan@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0XA4XWTv_1788245452; Received: from banye.tbsite.net(mailfrom:qinyuntan@linux.alibaba.com fp:SMTPD_---0XA4XWTv_1788245452 cluster:ay36) by smtp.aliyun-inc.com; Tue, 01 Sep 2026 14:50:53 +0800 From: Qinyun Tan To: dri-devel@lists.freedesktop.org Cc: tzimmermann@suse.de, airlied@redhat.com, jfalempe@redhat.com, kraxel@redhat.com, dmitry.osipenko@collabora.com, hansg@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, simona@ffwll.ch, leandro.ribeiro@collabora.com, daniels@collabora.com, pekka.paalanen@collabora.com, virtualization@lists.linux.dev, spice-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Qinyun Tan Subject: [PATCH 4/4] drm/vboxvideo: create blend mode property on planes Date: Tue, 1 Sep 2026 14:50:45 +0800 Message-ID: <20260901065045.1152136-5-qinyuntan@linux.alibaba.com> X-Mailer: git-send-email 2.43.7 In-Reply-To: <20260901065045.1152136-1-qinyuntan@linux.alibaba.com> References: <20260901065045.1152136-1-qinyuntan@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Since commit 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed"), drm_mode_config_validate() warns when a plane exposes an alpha pixel format but not the "pixel blend mode" property. Both the vboxvideo primary and cursor planes expose ARGB8888 and trip this on driver load. The planes have always blended with pre-multiplied alpha and userspace assumes that blend mode when the property is not attached. Expose a "pixel blend mode" property advertising only DRM_MODE_BLEND_PREMULTI to make the existing semantics explicit and silence the warning. No functional change. Fixes: 860e748bddcc ("drm: ensure blend mode supported if pixel format with= alpha exposed") Signed-off-by: Qinyun Tan --- drivers/gpu/drm/vboxvideo/vbox_mode.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/vboxvideo/vbox_mode.c b/drivers/gpu/drm/vboxvi= deo/vbox_mode.c index 8e4e5fc9d3c5a..658803646eee2 100644 --- a/drivers/gpu/drm/vboxvideo/vbox_mode.c +++ b/drivers/gpu/drm/vboxvideo/vbox_mode.c @@ -15,6 +15,7 @@ =20 #include #include +#include #include #include #include @@ -540,6 +541,9 @@ static struct drm_plane *vbox_create_plane(struct vbox_= private *vbox, =20 drm_plane_helper_add(plane, helper_funcs); =20 + drm_plane_create_blend_mode_property(plane, + BIT(DRM_MODE_BLEND_PREMULTI)); + return plane; =20 free_plane: --=20 2.43.7