]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:24 +0000 (12:54 -0700)
commit6d669a3b031aab634a47978979c30e1ade97eaf5
tree701e19b748b8ecb47efacee14f9b965c3dec89b2
parentfefa811e616b5d0b555ed65743e528a0a8a0b377
drm/amd/display: Restore correct backlight brightness after a GPU reset

commit 5760388d9681ac743038b846b9082b9023969551 upstream.

[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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c