OSDN Git Service

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)
commit692cd92e66ee10597676530573a495dc1d3bec6a
tree72c307584e8e9a7fcaa8f2e9524bea6af98a035d
parentd5c7255dc7ff6e1239d794b9c53029d83ced04ca
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