All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <deathsimple@vodafone.de>
To: Alex Deucher <alexdeucher@gmail.com>, dri-devel@lists.freedesktop.org
Cc: Alex Deucher <alexander.deucher@amd.com>, stable@vger.kernel.org
Subject: Re: [PATCH] drm/radeon/dpm: resume fixes for some systems
Date: Sat, 31 May 2014 11:06:20 +0200	[thread overview]
Message-ID: <53899B8C.60708@vodafone.de> (raw)
In-Reply-To: <1401468015-3691-1-git-send-email-alexander.deucher@amd.com>

Am 30.05.2014 18:40, schrieb Alex Deucher:
> Setting the power state prior to restoring the display
> hardware leads to blank screens on some systems.  Drop
> the power state set from dpm resume.  The power state
> will get set as part of the mode set sequence.  Also
> add an explicit power state set after mode set resume
> to cover PX and headless systems.
>
> bug:
> https://bugzilla.kernel.org/show_bug.cgi?id=76761
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> Cc: stable@vger.kernel.org

I've just added this to my 3.15 queue, but it looks like Linus is going 
to tag 3.15 tomorrow and Dave already send out his most likely last pull 
request.

Going to send out another pull request in the evening if I can get the 
VM crashes resolved as well, but I doubt it will be included.

Christian.

> ---
>   drivers/gpu/drm/radeon/atombios_crtc.c | 6 ++----
>   drivers/gpu/drm/radeon/radeon_device.c | 5 +++++
>   drivers/gpu/drm/radeon/radeon_pm.c     | 1 -
>   3 files changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c
> index 998435d..baa1459 100644
> --- a/drivers/gpu/drm/radeon/atombios_crtc.c
> +++ b/drivers/gpu/drm/radeon/atombios_crtc.c
> @@ -270,8 +270,6 @@ void atombios_crtc_dpms(struct drm_crtc *crtc, int mode)
>   	switch (mode) {
>   	case DRM_MODE_DPMS_ON:
>   		radeon_crtc->enabled = true;
> -		/* adjust pm to dpms changes BEFORE enabling crtcs */
> -		radeon_pm_compute_clocks(rdev);
>   		atombios_enable_crtc(crtc, ATOM_ENABLE);
>   		if (ASIC_IS_DCE3(rdev) && !ASIC_IS_DCE6(rdev))
>   			atombios_enable_crtc_memreq(crtc, ATOM_ENABLE);
> @@ -289,10 +287,10 @@ void atombios_crtc_dpms(struct drm_crtc *crtc, int mode)
>   			atombios_enable_crtc_memreq(crtc, ATOM_DISABLE);
>   		atombios_enable_crtc(crtc, ATOM_DISABLE);
>   		radeon_crtc->enabled = false;
> -		/* adjust pm to dpms changes AFTER disabling crtcs */
> -		radeon_pm_compute_clocks(rdev);
>   		break;
>   	}
> +	/* adjust pm to dpms */
> +	radeon_pm_compute_clocks(rdev);
>   }
>   
>   static void
> diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
> index 9aa1afd..20bc5af 100644
> --- a/drivers/gpu/drm/radeon/radeon_device.c
> +++ b/drivers/gpu/drm/radeon/radeon_device.c
> @@ -1562,6 +1562,11 @@ int radeon_resume_kms(struct drm_device *dev, bool resume, bool fbcon)
>   	}
>   
>   	drm_kms_helper_poll_enable(dev);
> +
> +	/* set the power state here in case we are a PX system or headless */
> +	if ((rdev->pm.pm_method == PM_METHOD_DPM) && rdev->pm.dpm_enabled)
> +		radeon_pm_compute_clocks(rdev);
> +
>   	return 0;
>   }
>   
> diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c
> index 6fac8ef..304c476 100644
> --- a/drivers/gpu/drm/radeon/radeon_pm.c
> +++ b/drivers/gpu/drm/radeon/radeon_pm.c
> @@ -1068,7 +1068,6 @@ static void radeon_pm_resume_dpm(struct radeon_device *rdev)
>   	if (ret)
>   		goto dpm_resume_fail;
>   	rdev->pm.dpm_enabled = true;
> -	radeon_pm_compute_clocks(rdev);
>   	return;
>   
>   dpm_resume_fail:

  reply	other threads:[~2014-05-31  9:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-30 16:40 [PATCH] drm/radeon/dpm: resume fixes for some systems Alex Deucher
2014-05-31  9:06 ` Christian König [this message]
2014-06-02  3:39   ` Dave Airlie
2014-06-02  8:10     ` Christian König
2014-06-02 15:14       ` Alex Deucher
2014-06-02 15:18         ` Christian König

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53899B8C.60708@vodafone.de \
    --to=deathsimple@vodafone.de \
    --cc=alexander.deucher@amd.com \
    --cc=alexdeucher@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.