Re: [PATCH v4] drm/tegra: Enable cmu for Tegra186 and Tegra194
From: Thierry Reding
Date: Thu May 28 2026 - 10:16:18 EST
On Tue, Apr 07, 2026 at 02:09:37AM -0500, Aaron Kling via B4 Relay wrote:
> From: Aaron Kling <webgeek1234@xxxxxxxxx>
>
> 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>
> Signed-off-by: Kurt Kiefer <kekiefer@xxxxxxxxx>
> Signed-off-by: Aaron Kling <webgeek1234@xxxxxxxxx>
> Tested-by: Jasper Korten <jja2000@xxxxxxxxx>
> ---
> Changes in v4:
> - Add missing signoff
> - Rename cmu phys var to be more clear
> - Remove redundant lut null check
> - Link to v3: https://lore.kernel.org/r/20260406-tegra-drm-cmu-v3-1-dfcb1dda4ad6@xxxxxxxxx
>
> Changes in v3:
> - Remove improper IOVA null check
> - Use dmam_alloc_coherent instead of manually tracking memory
> - Address other review comments
> - Link to v2: https://lore.kernel.org/r/20260202-tegra-drm-cmu-v2-1-a1bcb37f3e85@xxxxxxxxx
>
> Changes in v2:
> - Several formatting changes per v1 review
> - Move cmu alloc/free to dc, where it can be handled in probe/remove
> - Enable cmu for displayport as well
> - Link to v1: https://lore.kernel.org/r/20251101-tegra-drm-cmu-v1-1-211799755ab8@xxxxxxxxx
> ---
> drivers/gpu/drm/tegra/dc.c | 116 ++++++++++++++++++++++++++++++++++++++++++++
> drivers/gpu/drm/tegra/dc.h | 13 +++++
> drivers/gpu/drm/tegra/sor.c | 25 ++++++++++
> 3 files changed, 154 insertions(+)
Applied, thanks.
Thierry
Attachment:
signature.asc
Description: PGP signature