diff options
author | 2023-12-06 12:08:26 -0600 | |
---|---|---|
committer | 2023-12-11 12:41:05 -0500 | |
commit | b96ab339ee50470d13a1faa6ad94d2218a7cd49f (patch) | |
tree | f203edd26fd4a635b9d1a5f63844c9a76db4633c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | drm/amd/display: fix hw rotated modes when PSR-SU is enabled (diff) | |
download | wireguard-linux-b96ab339ee50470d13a1faa6ad94d2218a7cd49f.tar.xz wireguard-linux-b96ab339ee50470d13a1faa6ad94d2218a7cd49f.zip |
drm/amd/display: Restore guard against default backlight value < 1 nit
Mark reports that brightness is not restored after Xorg dpms screen blank.
This behavior was introduced by commit d9e865826c20 ("drm/amd/display:
Simplify brightness initialization") which dropped the cached backlight
value in display code, but also removed code for when the default value
read back was less than 1 nit.
Restore this code so that the backlight brightness is restored to the
correct default value in this circumstance.
Reported-by: Mark Herbert <mark.herbert42@gmail.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3031
Cc: stable@vger.kernel.org
Cc: Camille Cho <camille.cho@amd.com>
Cc: Krunoslav Kovac <krunoslav.kovac@amd.com>
Cc: Hamza Mahfooz <hamza.mahfooz@amd.com>
Fixes: d9e865826c20 ("drm/amd/display: Simplify brightness initialization")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions