Re: [PATCH v3] drm/tegra: Enable cmu for Tegra186 and Tegra194

From: Mikko Perttunen

Date: Tue Apr 07 2026 - 01:00:20 EST


On Mon, 06 Apr 2026 02:47:31 -0500, Aaron Kling <webgeek1234@xxxxxxxxx> wrote:
> Without the cmu, nvdisplay will display colors that are notably darker
> than intended. The vendor bootloader and the downstream display driver
> enable the cmu and sets a sRGB table. Loading that table here results in
> the intended colors.
>
> Co-developed-by: Kurt Kiefer <kekiefer@xxxxxxxxx>

You need to include a Signed-off-by with each Co-developed-by tag.
>From submitting-patches.rst:

Co-developed-by: states that the patch was co-created by multiple developers;
it is used to give attribution to co-authors (in addition to the author
attributed by the From: tag) when several people work on a single patch. Since
Co-developed-by: denotes authorship, every Co-developed-by: must be immediately
followed by a Signed-off-by: of the associated co-author.

checkpatch.pl should also flag this.

>
>
> diff --git a/drivers/gpu/drm/tegra/dc.h b/drivers/gpu/drm/tegra/dc.h
> index 0559fa6b1bf7..973ab0bb15c9 100644
> --- a/drivers/gpu/drm/tegra/dc.h
> +++ b/drivers/gpu/drm/tegra/dc.h
> @@ -103,6 +103,9 @@ struct tegra_dc {
> const struct tegra_dc_soc_info *soc;
>
> bool has_opp_table;
> +
> + u64 *cmu_output_lut;
> + dma_addr_t cmu_output_phys;

I think 'cmu_output_lut_phys' would be slightly clearer.

>
> diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c
> index de8b2dfc4984..78e71a3ff026 100644
> --- a/drivers/gpu/drm/tegra/sor.c
> +++ b/drivers/gpu/drm/tegra/sor.c
> @@ -2557,6 +2557,17 @@ static void tegra_sor_hdmi_enable(struct drm_encoder *encoder)
> value = tegra_dc_readl(dc, DC_DISP_DISP_COLOR_CONTROL);
> value &= ~DITHER_CONTROL_MASK;
> value &= ~BASE_COLOR_SIZE_MASK;
> + if (dc->soc->has_nvdisplay && dc->cmu_output_lut) {

Checking for cmu_output_lut not being NULL shouldn't be necessary,
since we fail probe if it's NULL. (Checking here gives the impression
it might be NULL).

Otherwise looks good to me. Main thing is the trailers in the commit
message.

Thanks!
Mikko

--