Commit 9489b7f
committed
drm/amd/display: Fix AMDGPU_MAX_BL_LEVEL value
JIRA: https://issues.redhat.com/browse/RHEL-75958
commit 650d623737eddcffc9e56a4e7fd9e2b714938ee2
Author: Mario Limonciello <mario.limonciello@amd.com>
Date: Mon Jun 23 12:11:13 2025 -0500
drm/amd/display: Fix AMDGPU_MAX_BL_LEVEL value
commit 66abb99 upstream.
[Why]
commit 16dc8bc ("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: 16dc8bc ("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 5b85204)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: José Expósito <jexposit@redhat.com>1 parent 26a3ca7 commit 9489b7f
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4655 | 4655 | | |
4656 | 4656 | | |
4657 | 4657 | | |
4658 | | - | |
| 4658 | + | |
4659 | 4659 | | |
4660 | 4660 | | |
4661 | | - | |
| 4661 | + | |
4662 | 4662 | | |
4663 | 4663 | | |
4664 | | - | |
| 4664 | + | |
4665 | 4665 | | |
4666 | 4666 | | |
4667 | | - | |
| 4667 | + | |
4668 | 4668 | | |
4669 | 4669 | | |
4670 | 4670 | | |
| |||
4884 | 4884 | | |
4885 | 4885 | | |
4886 | 4886 | | |
4887 | | - | |
| 4887 | + | |
4888 | 4888 | | |
4889 | 4889 | | |
4890 | 4890 | | |
| |||
0 commit comments