dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Roshan Kumar" <roshaen09@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2] drm/pl111: drop alpha formats the hardware cannot scan out
Date: Thu, 10 Sep 2026 05:51:45 +0000	[thread overview]
Message-ID: <20260910055146.032041F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260910054503.4155812-1-roshaen09@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The patch fails to remove alpha pixel formats from board-specific variant tables in `pl111_versatile.c` (such as `pl111_realview_pixel_formats` used by `vexpress-a15`). This leaves the original bug unfixed on the exact platform mentioned in the commit message. Furthermore, it introduces a new regression: because the alpha case labels were removed from `pl111_display_enable()`, selecting one of these still-exposed formats will hit the `default:` case. This triggers a new `WARN_ONCE` and fails to properly configure the hardware display registers (skipping `cntl` setup).
--

commit 10499c458facc30bed43b7322f9a6352b1c136f7
Author: Roshan Kumar <roshaen09@gmail.com>

drm/pl111: drop alpha formats the hardware cannot scan out

This commit removes alpha pixel formats from the PL110 and PL111 variant
tables to prevent exposing unsupported blend modes to userspace. It also
removes the corresponding format case labels from the display setup code.

Link: https://github.com/google/syzkaller/issues/7805

> diff --git a/drivers/gpu/drm/pl111/pl111_display.c b/drivers/gpu/drm/pl111/pl111_display.c
> index 5d10bc5fdf1f6..e1b513d36c27c 100644
> --- a/drivers/gpu/drm/pl111/pl111_display.c
> +++ b/drivers/gpu/drm/pl111/pl111_display.c
> @@ -267,14 +267,12 @@ static void pl111_display_enable(struct drm_simple_display_pipe *pipe,
>  		if (priv->variant->st_bitmux_control)
>  			cntl |= CNTL_ST_LCDBPP24_PACKED;
>  		break;
> -	case DRM_FORMAT_ABGR8888:
>  	case DRM_FORMAT_XBGR8888:

[Severity: High]
Will removing these case labels cause a regression for boards using the
versatile variants?

It looks like the alpha formats were not removed from the board-specific
tables in drivers/gpu/drm/pl111/pl111_versatile.c (such as the
pl111_realview_pixel_formats table used by vexpress-a15).

Because those formats are still exposed to userspace, if an application
selects an alpha format like DRM_FORMAT_ABGR8888, pl111_display_enable()
will now fall through to the default case:

    default:
        WARN_ONCE(true, "Unknown FB format 0x%08x\n",
                  fb->format->format);
        break;

This seems like it would trigger the newly reachable warning (causing boot
failures on systems like the vexpress-a15 manager if panic_on_warn is
enabled) and fail to properly configure the hardware display registers.
Should the versatile formats be updated to drop the alpha formats as well?

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260910054503.4155812-1-roshaen09@gmail.com?part=1

  reply	other threads:[~2026-09-10  5:51 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-25 10:54 [PATCH] drm/pl111: Advertise no pixel blending Roshan Kumar
2026-08-25 11:07 ` sashiko-bot
2026-09-08 21:31 ` Leandro Ribeiro
2026-09-09  4:17 ` Roshan Kumar
2026-09-09  8:16 ` Thomas Zimmermann
2026-09-11 13:24   ` Linus Walleij
2026-09-11 13:26     ` Linus Walleij
     [not found] ` <d3a928e0-0faa-4cd4-9d2e-cb9be4cf84c0@suse.de>
2026-09-10  5:44   ` Roshan Kumar
2026-09-10  5:45 ` [PATCH v2] drm/pl111: drop alpha formats the hardware cannot scan out Roshan Kumar
2026-09-10  5:51   ` sashiko-bot [this message]
2026-09-10  6:15   ` Thomas Zimmermann
2026-09-10 19:25 ` [PATCH] drm/pl111: Advertise no pixel blending Roshan Kumar
2026-09-11  6:33   ` Thomas Zimmermann
2026-09-11 12:58   ` Thomas Zimmermann
2026-09-11 18:07     ` Roshan Kumar
2026-09-11 18:22       ` Linus Walleij
2026-09-11 19:07         ` Roshan Kumar
2026-09-11 20:05           ` Linus Walleij
2026-09-12 19:49             ` Ze Huang
2026-09-10 19:25 ` [PATCH v3] drm/pl111: drop alpha formats the hardware cannot scan out Roshan Kumar
2026-09-10 19:34   ` sashiko-bot
2026-09-11  6:41   ` Thomas Zimmermann
2026-09-11 18:00   ` Linus Walleij

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=20260910055146.032041F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=roshaen09@gmail.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox