[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251115-drm-fix-lut-checks-v1-0-3586f5855bc7@oss.qualcomm.com>
Date: Sat, 15 Nov 2025 05:42:48 +0200
From: Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>
To: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Harry Wentland <harry.wentland@....com>, Leo Li <sunpeng.li@....com>,
Rodrigo Siqueira <siqueira@...lia.com>,
Alex Deucher <alexander.deucher@....com>,
Christian König <christian.koenig@....com>
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
amd-gfx@...ts.freedesktop.org
Subject: [PATCH 0/3] drm/atomic: restrict the size of of gamma / degamma
LUTs
While picking up the Gamma correction patch for the msm driver I noticed
that kms_color@...alid-gamma-lut-sizes and
kms_color@...alid-degamma-lut-sizes tests fail. These tests attempt
submitting LUT tables greater than the size specified by the
corresponding property. The issue doesn't seem to be specific to msm
driver only. Add generic check that LUT size is not greater than the
size passed to drm_crtc_enable_color_mgmt().
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>
---
Dmitry Baryshkov (3):
drm/mode_object: add drm_object_immutable_property_get_value()
drm/atomic: add max_size check to drm_property_replace_blob_from_id()
drm/atomic: verify that gamma/degamma LUTs are not too big
.../drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 5 +++++
drivers/gpu/drm/drm_atomic_uapi.c | 23 ++++++++++++++++++--
drivers/gpu/drm/drm_mode_object.c | 25 ++++++++++++++++++++++
drivers/gpu/drm/drm_property.c | 11 ++++++++++
include/drm/drm_mode_object.h | 3 +++
include/drm/drm_property.h | 1 +
6 files changed, 66 insertions(+), 2 deletions(-)
---
base-commit: ea07a751fbf3743490a463ce6cc5828e6dc3c660
change-id: 20251114-drm-fix-lut-checks-4bb325e24110
Best regards,
--
With best wishes
Dmitry
Powered by blists - more mailing lists