Commit 26a3ca7
committed
drm/amd/display: Export full brightness range to userspace
JIRA: https://issues.redhat.com/browse/RHEL-75958
commit 889906e6eb5fab990c9b6b5fe8f1122b2416fc22
Author: Mario Limonciello <mario.limonciello@amd.com>
Date: Thu May 29 09:46:32 2025 -0500
drm/amd/display: Export full brightness range to userspace
commit 16dc8bc upstream.
[WHY]
Userspace currently is offered a range from 0-0xFF but the PWM is
programmed from 0-0xFFFF. This can be limiting to some software
that wants to apply greater granularity.
[HOW]
Convert internally to firmware values only when mapping custom
brightness curves because these are in 0-0xFF range. Advertise full
PWM range to userspace.
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Roman Li <roman.li@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 8dbd72c)
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 c6a29aa commit 26a3ca7
1 file changed
+27
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4655 | 4655 | | |
4656 | 4656 | | |
4657 | 4657 | | |
| 4658 | + | |
| 4659 | + | |
| 4660 | + | |
| 4661 | + | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
| 4665 | + | |
| 4666 | + | |
| 4667 | + | |
| 4668 | + | |
| 4669 | + | |
4658 | 4670 | | |
4659 | | - | |
| 4671 | + | |
| 4672 | + | |
4660 | 4673 | | |
| 4674 | + | |
4661 | 4675 | | |
4662 | 4676 | | |
4663 | 4677 | | |
| |||
4668 | 4682 | | |
4669 | 4683 | | |
4670 | 4684 | | |
4671 | | - | |
| 4685 | + | |
4672 | 4686 | | |
4673 | 4687 | | |
4674 | 4688 | | |
| |||
4679 | 4693 | | |
4680 | 4694 | | |
4681 | 4695 | | |
4682 | | - | |
| 4696 | + | |
4683 | 4697 | | |
4684 | 4698 | | |
4685 | 4699 | | |
4686 | 4700 | | |
4687 | 4701 | | |
4688 | | - | |
| 4702 | + | |
4689 | 4703 | | |
4690 | | - | |
| 4704 | + | |
4691 | 4705 | | |
4692 | | - | |
| 4706 | + | |
| 4707 | + | |
4693 | 4708 | | |
4694 | 4709 | | |
4695 | 4710 | | |
| |||
4702 | 4717 | | |
4703 | 4718 | | |
4704 | 4719 | | |
4705 | | - | |
| 4720 | + | |
4706 | 4721 | | |
4707 | | - | |
4708 | | - | |
4709 | | - | |
| 4722 | + | |
| 4723 | + | |
4710 | 4724 | | |
4711 | 4725 | | |
4712 | 4726 | | |
| |||
4719 | 4733 | | |
4720 | 4734 | | |
4721 | 4735 | | |
4722 | | - | |
4723 | | - | |
| 4736 | + | |
| 4737 | + | |
4724 | 4738 | | |
4725 | 4739 | | |
4726 | 4740 | | |
| |||
4870 | 4884 | | |
4871 | 4885 | | |
4872 | 4886 | | |
4873 | | - | |
| 4887 | + | |
4874 | 4888 | | |
4875 | 4889 | | |
4876 | 4890 | | |
4877 | | - | |
4878 | 4891 | | |
4879 | 4892 | | |
4880 | 4893 | | |
| |||
0 commit comments