Re: [PATCH 3.19.y-ckt 134/196] drm/radeon/pm: adjust display configuration after powerstate

From: Kamal Mostafa
Date: Wed Mar 09 2016 - 13:37:38 EST


On Tue, 2016-03-08 at 16:29 -0800, Kamal Mostafa wrote:
> 3.19.8-ckt16 -stable review patch.ÂÂIf anyone has any objections,
> please let me know.

I'm dropping this patch from 3.19-stable, per
https://lkml.org/lkml/2016/3/9/406

Â-Kamal

> ---8<------------------------------------------------------------
>
> From: Alex Deucher <alexander.deucher@xxxxxxx>
>
> commit 39d4275058baf53e89203407bf3841ff2c74fa32 upstream.
>
> set_power_state defaults to no displays, so we need to update
> the display configuration after setting up the powerstate on the
> first call. In most cases this is not an issue since ends up
> getting called multiple times at any given modeset and the proper
> order is achieved in the display changed handling at the top of
> the function.
>
> Reviewed-by: Christian KÃnig <christian.koenig@xxxxxxx>
> Acked-by: Jordan Lazare <Jordan.Lazare@xxxxxxx>
> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
> Signed-off-by: Kamal Mostafa <kamal@xxxxxxxxxxxxx>
> ---
> Âdrivers/gpu/drm/radeon/radeon_pm.c | 5 +++--
> Â1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_pm.c
> b/drivers/gpu/drm/radeon/radeon_pm.c
> index 5fc27e9..4001692 100644
> --- a/drivers/gpu/drm/radeon/radeon_pm.c
> +++ b/drivers/gpu/drm/radeon/radeon_pm.c
> @@ -936,8 +936,6 @@ force:
> Â
> Â /* update display watermarks based on new power state */
> Â radeon_bandwidth_update(rdev);
> - /* update displays */
> - radeon_dpm_display_configuration_changed(rdev);
> Â
> Â rdev->pm.dpm.current_active_crtcs = rdev-
> >pm.dpm.new_active_crtcs;
> Â rdev->pm.dpm.current_active_crtc_count = rdev-
> >pm.dpm.new_active_crtc_count;
> @@ -958,6 +956,9 @@ force:
> Â
> Â radeon_dpm_post_set_power_state(rdev);
> Â
> + /* update displays */
> + radeon_dpm_display_configuration_changed(rdev);
> +
> Â if (rdev->asic->dpm.force_performance_level) {
> Â if (rdev->pm.dpm.thermal_active) {
> Â enum radeon_dpm_forced_level level = rdev-
> >pm.dpm.forced_level;
> --Â
> 2.7.0
>
>