]> www.infradead.org Git - users/willy/pagecache.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 17:27:39 +0000 (13:27 -0400)
commit5e19e2b57b6bb640d68dfc7991e1e182922cf867
treea782d32a7bdd588038153049196c84258c5773d1
parent0747acf3311229e22009bec4a9e7fc30c879e842
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c