summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorHugo Sales <hugo@hsal.es>2026-10-31 15:39:48 +0000
committerAlex Deucher <alexander.deucher@amd.com>2026-11-04 12:41:56 -0500
commit7ba7655701c5cad5bfa043d464d1e24873e24aab (patch)
treeba5f71614c76c4df9318cf9adb3b150195d56a11 /scripts/Makefile.thinlto
parent122e864861144150e905012b5fb52e63ad5de68d (diff)
downloadlinux-next-7ba7655701c5cad5bfa043d464d1e24873e24aab.tar.gz
linux-next-7ba7655701c5cad5bfa043d464d1e24873e24aab.zip
drm/amdgpu: Clamp the ATIF backlight curve to its 99 points
amdgpu_atif_query_backlight_caps() stores the firmware's number_of_points as data_points but copies only the 99 points that luminance_data[] holds. number_of_points is a u8, so a firmware table that claims more makes the custom curve code in amdgpu_dm index past the array, and dm_query_extended_brightness_caps() copy past the end of the data_points[] buffer it fills Clamp the count to ATIF_QBTC_MAX_DATA_POINTS and warn, since a table that claims more is a firmware bug Fixes: f729e63743f0 ("drm/amd: Pass luminance data to amdgpu_dm_backlight_caps") Signed-off-by: Hugo Sales <hugo@hsal.es> Link: https://patch.msgid.link/20261031153948.127016-1-hugo@hsal.es Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit af8a1c2b7d3de4960e10f94e8ba2fc0ccd168072) Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions