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 <[email protected]>

> 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 <[email protected]>

[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/[email protected]?part=1

Reply via email to