mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
To: Ryan Brue <ryanbrue.dev@gmail.com>,
	Tiffany Lin <tiffany.lin@mediatek.com>,
	 Andrew-CT Chen <andrew-ct.chen@mediatek.com>,
	Yunfei Dong <yunfei.dong@mediatek.com>,
	Mauro Carvalho Chehab	 <mchehab@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	 AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	Hans Verkuil <hverkuil@kernel.org>,
	Minghsiu Tsai	 <minghsiu.tsai@mediatek.com>,
	Houlong Wei <houlong.wei@mediatek.com>,
	Enric Balletbo i Serra <eballetbo@kernel.org>,
	Eizan Miyamoto <eizan@chromium.org>,
	Francois Buergisser	 <fbuergisser@chromium.org>
Cc: Youngjoon Lee <getfeus@gmail.com>,
	linux-media@vger.kernel.org,  linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-mediatek@lists.infradead.org,
	Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Subject: Re: [PATCH 4/8] media: mtk-mdp: Round MT21C sources up to whole tiles
Date: Tue, 24 Nov 2026 11:38:00 -0500	[thread overview]
Message-ID: <871fa86e8a524f7d3ae7a0ac54adf57f14eaa187.camel@collabora.com> (raw)
In-Reply-To: <20261120-rbrue-suez-upstreaming-mtk-vcodec-mdp-fixes-v1-4-877dea14c3d0@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]

Le vendredi 20 novembre 2026 à 13:55 -0600, Ryan Brue a écrit :
> MT21C, the MT8173 decoder's output, is laid out in tiles of 16x32
> pixels, and the MDP firmware refuses a source of a size that is not a
> whole number of them: converting a 1280x720 picture fails with -EINVAL
> for every frame, while 1280x736, the decoder's own buffer size, works.
> The alignment was 16x16, so 720 lines passed the format check.
> 
> Align MT21C to 16x32. mtk_mdp_bound_align_image() already rounds a size
> up to the alignment, so a source covers its picture, and the visible
> part is the crop rectangle.
> 
> Fixes: c8eb2d7e8202 ("[media] media: Add Mediatek MDP Driver")

Is this commit in stable? If so you should CC stable.

> Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>

Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>

> ---
>  drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c b/drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
> index d2813890cceb..34d02de4453d 100644
> --- a/drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
> +++ b/drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
> @@ -40,7 +40,7 @@ struct mtk_mdp_pix_limit {
>  
>  static struct mtk_mdp_pix_align mtk_mdp_size_align = {
>  	.org_w			= 16,
> -	.org_h			= 16,
> +	.org_h			= 32,
>  	.target_w		= 2,
>  	.target_h		= 2,
>  };

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-11-24 16:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 19:55 [PATCH 0/8] media: mediatek: Fix MT8173 decoding through GStreamer Ryan Brue
2026-11-20 19:55 ` [PATCH 1/8] media: mediatek: vcodec: Decode H.264 access units on MT8173 Ryan Brue
2026-11-20 19:55 ` [PATCH 2/8] media: mediatek: vcodec: Pick an OUTPUT buffer size when given zero Ryan Brue
2026-11-20 19:55 ` [PATCH 3/8] media: mediatek: vcodec: Report the visible rectangle as default compose Ryan Brue
2026-11-20 19:55 ` [PATCH 4/8] media: mtk-mdp: Round MT21C sources up to whole tiles Ryan Brue
2026-11-24 16:38   ` Nicolas Dufresne [this message]
2026-11-20 19:55 ` [PATCH 5/8] media: mtk-mdp: Do not refuse a crop for the other side's size Ryan Brue
2026-11-20 19:55 ` [PATCH 6/8] media: mtk-mdp: Check buffer plane sizes against the format Ryan Brue
2026-11-20 19:55 ` [PATCH 7/8] media: mtk-mdp: Refuse a format change once buffers are allocated Ryan Brue
2026-11-20 19:55 ` [PATCH 8/8] media: mediatek: vcodec: " Ryan Brue

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=871fa86e8a524f7d3ae7a0ac54adf57f14eaa187.camel@collabora.com \
    --to=nicolas.dufresne@collabora.com \
    --cc=andrew-ct.chen@mediatek.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=eballetbo@kernel.org \
    --cc=eizan@chromium.org \
    --cc=fbuergisser@chromium.org \
    --cc=getfeus@gmail.com \
    --cc=houlong.wei@mediatek.com \
    --cc=hverkuil@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mchehab+huawei@kernel.org \
    --cc=mchehab@kernel.org \
    --cc=minghsiu.tsai@mediatek.com \
    --cc=ryanbrue.dev@gmail.com \
    --cc=tiffany.lin@mediatek.com \
    --cc=yunfei.dong@mediatek.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

all inboxes | Powered by JetHome®