Commit 650d623
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>1 parent 889906e commit 650d623
1 file changed
Lines changed: 5 additions & 5 deletions
| 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