From: sashiko-bot@kernel.org
To: "Roshan Kumar" <roshaen09@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v3] drm/pl111: drop alpha formats the hardware cannot scan out
Date: Thu, 10 Sep 2026 19:34:03 +0000 [thread overview]
Message-ID: <20260910193403.E52D11F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260910192526.137057-1-roshaen09@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] Sleeping function msleep() is called from CRTC atomic enable/disable callbacks, which execute in atomic context.
--
commit a2121d13cc86548614d1273c2a018211978e598e
Author: Roshan Kumar <roshaen09@gmail.com>
drm/pl111: drop alpha formats the hardware cannot scan out
The PL110/PL111 controller does not support alpha blending, so exposing alpha
formats causes issues when pixel blend mode properties are expected. This
patch drops alpha formats from all variant tables and format checking
switches so that alpha-picking clients fall back to XRGB/XBGR/RGB formats
instead.
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
[ ... ]
> @@ -311,13 +307,11 @@ static void pl111_display_enable(struct drm_simple_display_pipe *pipe,
> else
> cntl |= CNTL_BGR;
> break;
> - case DRM_FORMAT_ABGR4444:
> case DRM_FORMAT_XBGR4444:
> cntl |= CNTL_LCDBPP16_444;
> if (priv->variant->st_bitmux_control)
> cntl |= CNTL_ST_1XBPP_444 | CNTL_BGR;
> break;
> - case DRM_FORMAT_ARGB4444:
> case DRM_FORMAT_XRGB4444:
> cntl |= CNTL_LCDBPP16_444;
> if (priv->variant->st_bitmux_control)
[Severity: High]
This is a pre-existing issue, but I noticed that msleep() is called
further down in pl111_display_enable():
/*
* We expect this delay to stabilize the contrast
* voltage Vee as stipulated by the manual
*/
msleep(20);
There is also a similar msleep(20) call in pl111_display_disable()
in the same file (drivers/gpu/drm/pl111/pl111_display.c).
Since pl111_display_enable() and pl111_display_disable() serve as the
CRTC atomic enable and disable callbacks, they execute in atomic context
where sleeping is forbidden.
Can calling msleep() in these paths cause kernel warnings, system
instability, or potential deadlocks during modeset operations?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260910192526.137057-1-roshaen09@gmail.com?part=1
next prev parent reply other threads:[~2026-09-10 19:34 UTC|newest]
Thread overview: 24+ 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
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 [this message]
2026-09-11 6:41 ` Thomas Zimmermann
2026-09-11 18:00 ` Linus Walleij
-- strict thread matches above, loose matches on Subject: below --
2026-09-11 18:07 Roshan Kumar
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=20260910193403.E52D11F000FF@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 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.