]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/amd/display: Verify Gamma & Degamma LUT sizes in amdgpu_dm_atomic_check
authorMark Yacoub <markyacoub@chromium.org>
Fri, 4 Jun 2021 17:01:07 +0000 (13:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Jun 2021 20:16:07 +0000 (16:16 -0400)
commit03fc4cf45d30533d54f0f4ebc02aacfa12f52ce2
tree290fa8ea6b5aed52e28accd59e10224a6f9d38cf
parent3a07101b0405c6137babd5f50ca6bdf2696d91c9
drm/amd/display: Verify Gamma & Degamma LUT sizes in amdgpu_dm_atomic_check

For each CRTC state, check the size of Gamma and Degamma LUTs  so
unexpected and larger sizes wouldn't slip through.

TEST: IGT:kms_color::pipe-invalid-gamma-lut-sizes

v2: fix assignments in if clauses, Mark's email.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Mark Yacoub <markyacoub@chromium.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c