From: sashiko-bot@kernel.org
To: "Ze Huang" <ze.huang@oss.qualcomm.com>
Cc: dri-devel@lists.freedesktop.org, Frank.Li@kernel.org,
imx@lists.linux.dev
Subject: Re: [PATCH v3 2/8] drm/aspeed: replace struct drm_simple_display_pipe with regular atomic helpers
Date: Sun, 26 Jul 2026 19:59:13 +0000 [thread overview]
Message-ID: <20260726195914.12FD21F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260727-drm-simple-kms-removal-v3-2-cd5dc89858c6@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] The driver fails to trigger a CRTC modeset when the primary plane's framebuffer pixel format changes, causing the hardware to incorrectly interpret pixels.
--
--- Patch [2]: [PATCH v3 2/8] drm/aspeed: replace struct drm_simple_display_pipe with regular atomic helpers ---
Note: The format of this report has been altered to use a free-form summary
due to code recitation restrictions. No inline code quoting is used.
commit 82b41ef8182b1e0fe64dd5371b72b906d9c02892
Author: Ze Huang <ze.huang@oss.qualcomm.com>
Subject: drm/aspeed: replace struct drm_simple_display_pipe with regular atomic helpers
This commit replaces the simple display pipe with explicit plane, CRTC, and
encoder objects. It moves callbacks to plane and CRTC helpers, wires vblank
handling through drm_crtc_funcs, and uses commit-local state for programming.
[Severity: High]
This is a pre-existing issue, but does the driver fail to trigger a CRTC
modeset when the primary plane's framebuffer pixel format changes?
Looking at aspeed_gfx_plane_helper_atomic_check() in
drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c, there doesn't seem to be a check
to see if the pixel format has changed between the old and new plane states.
Since the hardware registers for the format (CRT_CTRL1) are only programmed
during the atomic_enable() path, which requires a full modeset, a format
change during a simple plane update will only update the DMA address in
aspeed_gfx_plane_helper_atomic_update(). The format configuration in the
hardware will remain stale.
Could this lead to corrupted rendering if userspace changes the framebuffer
format (e.g., from RGB565 to XRGB8888) without changing the display mode?
Should aspeed_gfx_plane_helper_atomic_check() explicitly set
crtc_state->mode_changed = true if the new format differs from the old one
to enforce a full modeset?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260727-drm-simple-kms-removal-v3-0-cd5dc89858c6@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-07-26 19:59 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-26 19:45 [PATCH v3 0/8] drm: replace simple display pipe users with atomic helpers Ze Huang
2026-07-26 19:45 ` [PATCH v3 1/8] drm/arcpgu: replace struct drm_simple_display_pipe with regular " Ze Huang
2026-07-26 19:45 ` [PATCH v3 2/8] drm/aspeed: " Ze Huang
2026-07-26 19:59 ` sashiko-bot [this message]
2026-07-27 2:29 ` Ze Huang
2026-07-26 19:45 ` [PATCH v3 3/8] drm/mcde: " Ze Huang
2026-07-26 19:57 ` sashiko-bot
2026-07-27 2:31 ` Ze Huang
2026-07-26 19:45 ` [PATCH v3 4/8] drm/pl111: " Ze Huang
2026-07-26 19:59 ` sashiko-bot
2026-07-26 19:45 ` [PATCH v3 5/8] drm/gm12u320: " Ze Huang
2026-07-26 20:13 ` sashiko-bot
2026-07-27 3:29 ` Ze Huang
2026-07-26 19:45 ` [PATCH v3 6/8] drm/repaper: " Ze Huang
2026-07-26 20:04 ` sashiko-bot
2026-07-27 2:35 ` Ze Huang
2026-07-26 19:45 ` [PATCH v3 7/8] drm/tve200: " Ze Huang
2026-07-26 20:00 ` sashiko-bot
2026-07-27 2:55 ` Ze Huang
2026-07-26 19:45 ` [PATCH v3 8/8] drm/xen: " Ze Huang
2026-07-26 19:56 ` sashiko-bot
2026-07-27 5:39 ` Ze Huang
2026-07-26 20:32 ` [PATCH v3 0/8] drm: replace simple display pipe users with " Linus Walleij
2026-07-27 1:37 ` Ze Huang
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=20260726195914.12FD21F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=imx@lists.linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
--cc=ze.huang@oss.qualcomm.com \
/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