]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Restore correct backlight brightness after a GPU reset
authorMario Limonciello <mario.limonciello@amd.com>
Sun, 23 Feb 2025 06:04:35 +0000 (00:04 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Mar 2025 18:12:33 +0000 (14:12 -0400)
commit5760388d9681ac743038b846b9082b9023969551
tree842a6d4ec257334dc8f8c9cd5108fc5819b82aa6
parentb5a981e1b34e44f94a5967f730fff4166f2101e8
drm/amd/display: Restore correct backlight brightness after a GPU reset

[Why]
GPU reset will attempt to restore cached state, but brightness doesn't
get restored. It will come back at 100% brightness, but userspace thinks
it's the previous value.

[How]
When running resume sequence if GPU is in reset restore brightness
to previous value.

Acked-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 5e19e2b57b6bb640d68dfc7991e1e182922cf867)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c