]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu: save/restore backlight level in legacy dce code
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Mar 2018 14:56:01 +0000 (09:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 20:39:51 +0000 (15:39 -0500)
commitb5e3241316973b9f01228d2fa5b8b2bb157d44aa
treed1ee97f9c84e3957ab7bcd50a40aee08e6a0f2aa
parent0f4f715bc6bed3bf14c5cd7d5fe88d443e756b14
drm/amdgpu: save/restore backlight level in legacy dce code

Save/restore the backlight level scratch register in S3/S4 so the
backlight level comes back at the previously requested level.

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=199047
Fixes: 4ec6ecf48c64d (drm/amdgpu: drop scratch regs save and restore from S3/S4 handling)
Acked-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
drivers/gpu/drm/amd/amdgpu/atombios_encoders.h
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c