]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Cap OLED brightness per max frame-average luminance
authorRoman Li <roman.li@amd.com>
Thu, 19 May 2022 18:41:16 +0000 (14:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jun 2022 17:11:11 +0000 (13:11 -0400)
commit4fd17f2ac0aa4e48823ac2ede5b050fb70300bf4
tree2c867bd0e5cb869f9e5e17f56fde0eb3b0c5a139
parentc904e3acbab3fd97649cd4ab1ff7f1521ad3a255
drm/amd/display: Cap OLED brightness per max frame-average luminance

[Why]
For OLED eDP the Display Manager uses max_cll value as a limit
for brightness control.
max_cll defines the content light luminance for individual pixel.
Whereas max_fall defines frame-average level luminance.
The user may not observe the difference in brightness in between
max_fall and max_cll.
That negatively impacts the user experience.

[How]
Use max_fall value instead of max_cll as a limit for brightness control.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c