* Re: [PATCH] drm/sun4i: reject zero-sized layer
[not found] <20261205021741.44-1-shxzhaosr@163.com>
@ 2026-12-05 2:27 ` sashiko-bot
0 siblings, 0 replies; only message in thread
From: sashiko-bot @ 2026-12-05 2:27 UTC (permalink / raw)
To: Shirong Zhao; +Cc: dri-devel, linux-sunxi
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/sun4i: Fixes trailer cites commit predating frontend
divide-by-zero
--
commit 38f14c080ffeebc7f15d4cfb56f927a9e17b180b
Author: Shirong Zhao <shxzhaosr@163.com>
> drm/sun4i: reject zero-sized layer
>
> sun4i_frontend_update_coord(), reached through the frontend path, computes
> the scaler factors as
>
> (luma_width << 16) / state->crtc_w
> (luma_height << 16) / state->crtc_h
>
> state->crtc_w/crtc_h are the userspace atomic plane destination size. The
> DRM core only bounds them from above, and nothing in the sun4i backend
> rejects zero, so a commit with a zero destination size divides by zero.
>
> Reject zero-sized layers in sun4i_backend_plane_is_supported().
>
> Fixes: 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support")
> Signed-off-by: Shirong Zhao <shxzhaosr@163.com>
[Severity: Low]
Does the Fixes tag point to the right commit? 9026e0d122ac ("drm: Add
Allwinner A10 Display Engine support") predates the display frontend and
sun4i_frontend_update_coord(), which misdirects stable backport tracking.
The division by state->crtc_w and state->crtc_h was introduced in
dd0421f47505 ("drm/sun4i: Add a driver for the display frontend") and
enabled via 96180dde23b7 ("drm/sun4i: backend: Add a custom atomic_check
for the frontend"). Should this be:
Fixes: 96180dde23b7 ("drm/sun4i: backend: Add a custom atomic_check for the frontend")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205021741.44-1-shxzhaosr@163.com?part=1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-05 2:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20261205021741.44-1-shxzhaosr@163.com>
2026-12-05 2:27 ` [PATCH] drm/sun4i: reject zero-sized layer sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox