]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Fix AMDGPU_MAX_BL_LEVEL value
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 23 Jun 2025 17:11:13 +0000 (12:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 6 Jul 2025 09:04:26 +0000 (11:04 +0200)
commit650d623737eddcffc9e56a4e7fd9e2b714938ee2
tree89e7ec332774de8c52b4c06cbe2b937cb49ab8a9
parent889906e6eb5fab990c9b6b5fe8f1122b2416fc22
drm/amd/display: Fix AMDGPU_MAX_BL_LEVEL value

commit 66abb996999de0d440a02583a6e70c2c24deab45 upstream.

[Why]
commit 16dc8bc27c2a ("drm/amd/display: Export full brightness range to
userspace") adjusted the brightness range to scale to larger values, but
missed updating AMDGPU_MAX_BL_LEVEL which is needed to make sure that
scaling works properly with custom brightness curves.

[How]
As the change for max brightness of 0xFFFF only applies to devices
supporting DC, use existing DC define MAX_BACKLIGHT_LEVEL.

Fixes: 16dc8bc27c2a ("drm/amd/display: Export full brightness range to userspace")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://lore.kernel.org/r/20250623171114.1156451-1-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 5b852044eb0d3e1f1c946d32e05fcb068e0a20a0)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c