]> 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)
commit47b80c37498ed97af73068b2a4f4206a0ae7a219
tree2c867bd0e5cb869f9e5e17f56fde0eb3b0c5a139
parent927e801c9f4e3865283eddfe61cd5c277bea4e11
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