From: Mikko Perttunen <mperttunen@nvidia.com>
To: Thierry Reding <thierry.reding@gmail.com>,
Jonathan Hunter <jonathanh@nvidia.com>,
Nicolas Chauvet <kwizart@gmail.com>
Cc: linux-tegra@vger.kernel.org, Nicolas Chauvet <kwizart@gmail.com>
Subject: Re: [PATCH] [RFC] drm/tegra: fixup primary/overlay format for tegra210
Date: Tue, 24 Mar 2026 16:05:19 +0900 [thread overview]
Message-ID: <10027014.CDJkKcVGEf@senjougahara> (raw)
In-Reply-To: <20260323130804.67936-1-kwizart@gmail.com>
On Monday, March 23, 2026 10:07 PM Nicolas Chauvet wrote:
> The primary_format and overlay_format were picked from earlier tegra114
> generation instead of using the previous tegra124 format leading to
> missing format.
>
> This patch is RFC because while it's unlikely that format availability
> have skipped to earlier tegra210 soc generation I haven't confirmed
> any runtime error nor experienced any regression by the lack of
> availability of theses format.
>
> Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
> ---
> drivers/gpu/drm/tegra/dc.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c
> index 06370b7e0e56..d5896f12f25f 100644
> --- a/drivers/gpu/drm/tegra/dc.c
> +++ b/drivers/gpu/drm/tegra/dc.c
> @@ -2942,10 +2942,10 @@ static const struct tegra_dc_soc_info
> tegra210_dc_soc_info = { .has_powergate = true,
> .coupled_pm = false,
> .has_nvdisplay = false,
> - .num_primary_formats = ARRAY_SIZE(tegra114_primary_formats),
> - .primary_formats = tegra114_primary_formats,
> - .num_overlay_formats = ARRAY_SIZE(tegra114_overlay_formats),
> - .overlay_formats = tegra114_overlay_formats,
> + .num_primary_formats = ARRAY_SIZE(tegra124_primary_formats),
> + .primary_formats = tegra124_primary_formats,
> + .num_overlay_formats = ARRAY_SIZE(tegra124_overlay_formats),
> + .overlay_formats = tegra124_overlay_formats,
> .modifiers = tegra124_modifiers,
> .has_win_a_without_filters = false,
> .has_win_b_vfilter_mem_client = false,
> --
> 2.53.0
Looking at the TRMs, I think indeed Tegra210 also supports the
DRM_FORMAT_RGBX8888/DRM_FORMAT_BGRX8888 formats, so this patch should be
correct. Functionality-wise, the formats aren't handled currently in plane.c,
so I don't think there's any change in functionality.
These formats require enabling byteswap -- so do RGBA8888/BGRA8888, but
plane.c doesn't currently do that, so I wonder if these formats are just not
working right now.
Thanks!
Mikko
next prev parent reply other threads:[~2026-03-24 7:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-23 13:07 [PATCH] [RFC] drm/tegra: fixup primary/overlay format for tegra210 Nicolas Chauvet
2026-03-23 13:07 ` Nicolas Chauvet
2026-03-24 7:05 ` Mikko Perttunen [this message]
2026-03-24 11:32 ` Nicolas Chauvet
2026-03-24 11:42 ` Thierry Reding
2026-03-25 0:50 ` Mikko Perttunen
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=10027014.CDJkKcVGEf@senjougahara \
--to=mperttunen@nvidia.com \
--cc=jonathanh@nvidia.com \
--cc=kwizart@gmail.com \
--cc=linux-tegra@vger.kernel.org \
--cc=thierry.reding@gmail.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 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.