]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: update bios scratch when setting backlight
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Nov 2021 15:44:48 +0000 (10:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Nov 2021 20:14:36 +0000 (15:14 -0500)
commite33172610d7680920a1663aace583759606ff3d6
tree72c307584e8e9a7fcaa8f2e9524bea6af98a035d
parent0bb1f4f4ed4b4f4dcc8e9914b2207946bc7bcc3c
drm/amd/display: update bios scratch when setting backlight

Update the bios scratch register when updating the backlight
level.  Some platforms apparently read this scratch register
and do additional operations in their hotkey handlers.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1518
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c