]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Enable DEGAMMA and reject COLOR_PIPELINE+DEGAMMA_LUT
authorAlex Hung <alex.hung@amd.com>
Fri, 27 Feb 2026 19:30:38 +0000 (12:30 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Mar 2026 22:13:13 +0000 (17:13 -0500)
commita4fa2355e0add57253468ef13bd08f11285f3b6e
treeb38bb45326a2b8d70c51fd5a6fbf045399bc3c1a
parentc28b3ec3ca034fd1abc832fef46ce36eb13f8fad
drm/amd/display: Enable DEGAMMA and reject COLOR_PIPELINE+DEGAMMA_LUT

[WHAT]
Create DEGAMMA properties even if color pipeline is enabled, and enforce
the mutual exclusion in atomic check by rejecting any commit that
attempts to enable both COLOR_PIPELINE on the plane and DEGAMMA_LUT on
the CRTC simultaneously.

Fixes: 18a4127e9315 ("drm/amd/display: Disable CRTC degamma when color pipeline is enabled")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4963
Reviewed-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 196a6aa727f1f15eb54dda5e60a41543ea9397ee)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c