[PATCH 2/2] drm/amdgpu/display: restore the backlight on modeset (v2)
Harry Wentland
harry.wentland at amd.com
Tue May 18 15:52:17 UTC 2021
On 2021-05-11 11:44 a.m., Alex Deucher wrote:
> To stay consistent with the user's setting.
>
> v2: rebase on multi-eDP support
>
Series is
Reviewed-by: Harry Wentland <harry.wentland at amd.com>
Harry
> Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1337>> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> index 167c8759fbc9..979e4dafa735 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -9075,6 +9075,12 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)
> /* Update audio instances for each connector. */
> amdgpu_dm_commit_audio(dev, state);
>
> +#if defined(CONFIG_BACKLIGHT_CLASS_DEVICE) || \
> + defined(CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE)
> + /* restore the backlight level */
> + if (dm->backlight_dev)
> + amdgpu_dm_backlight_set_level(dm, dm->brightness[0]);
> +#endif
> /*
> * send vblank event on all events not handled in flip and
> * mark consumed event for drm_atomic_helper_commit_hw_done
>
More information about the amd-gfx
mailing list