All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jonathan Frazin" <frazinjonathan@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 2/2] drm/tiny: allow a framebuffer larger than the panel on MIPI DBI drivers
Date: Wed, 23 Sep 2026 20:25:28 +0000	[thread overview]
Message-ID: <20260923202528.9BABA1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260923195713.88-3-frazinjonathan@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] drm/sitronix: missed st7735r in max framebuffer size update for MIPI DBI drivers
--

commit 50f420ca1ad2ba6dcb54d9452d2d9f6ac5dcbc2d
Author: Jonathan Frazin <frazinjonathan@gmail.com>

drm/tiny: allow a framebuffer larger than the panel on MIPI DBI drivers

This commit raises the max_width and max_height limits to
DRM_SHADOW_PLANE_MAX_WIDTH and DRM_SHADOW_PLANE_MAX_HEIGHT for MIPI DBI
drivers that flush through drm_mipi_dbi_plane_helper_atomic_update(). This
allows userspace to allocate larger framebuffers and pick the displayed
region via the plane source rectangle without scaling.

> Raise the maximums to DRM_SHADOW_PLANE_MAX_WIDTH/HEIGHT (which its
> kerneldoc recommends for shadow-plane drivers) on the drivers that flush
> through the shared drm_mipi_dbi_plane_helper_atomic_update(), so a client
> can allocate a larger framebuffer and pick the displayed region through
> the plane source rectangle - a crop / pan with no scaling, now that
> drm_mipi_dbi honours the source offset (previous patch):
> 
>     ili9341, hx8357d, ili9486, mi0283qt, ili9163, panel-mipi-dbi

[Severity: Medium]
Was the st7735r driver intentionally omitted from this list?

It appears that st7735r also uses DRM_MIPI_DBI_PLANE_HELPER_FUNCS (which
sets drm_mipi_dbi_plane_helper_atomic_update) but continues to restrict the
framebuffer size to the panel dimensions.

In drivers/gpu/drm/sitronix/st7735r.c:st7735r_probe():

	drm->mode_config.min_width = dbidev->mode.hdisplay;
	drm->mode_config.max_width = dbidev->mode.hdisplay;
	drm->mode_config.min_height = dbidev->mode.vdisplay;
	drm->mode_config.max_height = dbidev->mode.vdisplay;

Since it is located in drivers/gpu/drm/sitronix/ rather than
drivers/gpu/drm/tiny/, could it have been overlooked? This omission leaves
the st7735r driver unable to support the crop and pan functionality being
enabled for the other MIPI DBI drivers.

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

      reply	other threads:[~2026-09-23 20:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-23 19:57 [PATCH v2 0/2] drm/mipi-dbi: display a cropped region of an oversized framebuffer Jonathan Frazin
2026-09-23 19:57 ` [PATCH v2 1/2] drm/mipi-dbi: honour the plane source offset when flushing Jonathan Frazin
2026-09-23 20:18   ` sashiko-bot
2026-09-23 19:57 ` [PATCH v2 2/2] drm/tiny: allow a framebuffer larger than the panel on MIPI DBI drivers Jonathan Frazin
2026-09-23 20:25   ` sashiko-bot [this message]

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=20260923202528.9BABA1F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=frazinjonathan@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.