From: Vijay Purushothaman <vijay.a.purushothaman@intel.com>
To: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 03/11] drm/i915: Use HAS_PSR to avoid unecessary interactions.
Date: Tue, 03 Jun 2014 14:56:14 +0530 [thread overview]
Message-ID: <538D94B6.2030009@intel.com> (raw)
In-Reply-To: <1400199190-2424-4-git-send-email-rodrigo.vivi@gmail.com>
On 5/16/2014 5:43 AM, Rodrigo Vivi wrote:
> Let's be more conservative and protect platforms that don't
> support PSR from unecessary interactions.
>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
> ---
> drivers/gpu/drm/i915/intel_dp.c | 13 ++++++++-----
> 1 file changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index 34e8f7a..58537b7 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -1739,11 +1739,6 @@ static bool intel_edp_psr_match_conditions(struct intel_dp *intel_dp)
>
> dev_priv->psr.source_ok = false;
>
> - if (!HAS_PSR(dev)) {
> - DRM_DEBUG_KMS("PSR not supported on this platform\n");
> - return false;
> - }
> -
> if ((intel_encoder->type != INTEL_OUTPUT_EDP) ||
> (dig_port->port != PORT_A)) {
> DRM_DEBUG_KMS("HSW ties PSR to DDI A (eDP)\n");
> @@ -1816,6 +1811,11 @@ void intel_edp_psr_enable(struct intel_dp *intel_dp)
> {
> struct drm_device *dev = intel_dp_to_dev(intel_dp);
>
> + if (!HAS_PSR(dev)) {
> + DRM_DEBUG_KMS("PSR not supported on this platform\n");
> + return;
> + }
> +
> if (intel_edp_psr_match_conditions(intel_dp) &&
> !intel_edp_is_psr_enabled(dev))
> intel_edp_psr_do_enable(intel_dp);
> @@ -1843,6 +1843,9 @@ void intel_edp_psr_update(struct drm_device *dev)
> struct intel_encoder *encoder;
> struct intel_dp *intel_dp = NULL;
>
> + if (!HAS_PSR(dev))
> + return;
> +
> list_for_each_entry(encoder, &dev->mode_config.encoder_list, base.head)
> if (encoder->type == INTEL_OUTPUT_EDP) {
> intel_dp = enc_to_intel_dp(&encoder->base);
>
Reviewed-by: Vijay Purushothaman <vijay.a.purushothaman@intel.com>
next prev parent reply other threads:[~2014-06-03 9:26 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-16 0:12 [PATCH 00/11] HSW/BDW PSR Rodrigo Vivi
2014-05-16 0:13 ` [PATCH 01/11] drm/i915: move psr_setup_done to psr struct Rodrigo Vivi
2014-05-22 17:50 ` Paulo Zanoni
2014-05-23 20:45 ` [PATCH] " Rodrigo Vivi
2014-05-26 7:44 ` Daniel Vetter
2014-05-16 0:13 ` [PATCH 02/11] drm/i915: Update PSR on resume Rodrigo Vivi
2014-05-23 20:51 ` Paulo Zanoni
2014-05-27 23:50 ` [PATCH] " Rodrigo Vivi
2014-05-28 12:57 ` Daniel Vetter
2014-06-04 19:17 ` Rodrigo Vivi
2014-06-05 9:15 ` Daniel Vetter
2014-06-10 15:11 ` Rodrigo Vivi
2014-06-10 15:24 ` Daniel Vetter
2014-06-10 10:49 ` [PATCH] drm/i915: Force full PSR setup during crtc enable Rodrigo Vivi
2014-06-11 9:42 ` Daniel Vetter
2014-08-08 17:19 ` [PATCH] drm/i915: Update PSR on resume Rodrigo Vivi
2014-08-09 7:40 ` Daniel Vetter
2014-08-11 16:57 ` Rodrigo Vivi
2014-08-11 17:31 ` Daniel Vetter
2014-05-16 0:13 ` [PATCH 03/11] drm/i915: Use HAS_PSR to avoid unecessary interactions Rodrigo Vivi
2014-06-03 9:26 ` Vijay Purushothaman [this message]
2014-05-16 0:13 ` [PATCH 04/11] drm/i915: Don't let update_psr function actually enable PSR Rodrigo Vivi
2014-06-03 11:04 ` Vijay Purushothaman
2014-05-16 0:13 ` [PATCH 05/11] drm/i915: Do not try to enable PSR when Panel doesn't suport it Rodrigo Vivi
2014-05-16 10:21 ` Chris Wilson
2014-05-16 16:39 ` Rodrigo Vivi
2014-05-16 0:13 ` [PATCH 06/11] drm/i915: Force PSR exit by inactivating it Rodrigo Vivi
2014-05-16 10:23 ` Chris Wilson
2014-05-16 16:42 ` Rodrigo Vivi
2014-06-03 11:10 ` Vijay Purushothaman
2014-05-16 10:25 ` Chris Wilson
2014-05-16 0:13 ` [PATCH 07/11] drm/i915: BDW PSR: Add single frame update support Rodrigo Vivi
2014-05-16 0:13 ` [PATCH 08/11] drm/i915: BDW PSR: Remove limitations that aren't valid for BDW Rodrigo Vivi
2014-06-03 11:20 ` Vijay Purushothaman
2014-05-16 0:13 ` [PATCH 09/11] drm/i915: BDW PSR: Remove DDIA limitation for Broadwell Rodrigo Vivi
2014-05-16 0:13 ` [PATCH 10/11] drm/i915: Improve PSR debugfs status Rodrigo Vivi
2014-06-02 18:24 ` Vijay Purushothaman
2014-06-03 7:40 ` Daniel Vetter
2014-06-03 11:22 ` Vijay Purushothaman
2014-05-16 0:13 ` [PATCH 11/11] drm/i915: PSR HSW: update after enabling sprite Rodrigo Vivi
2014-06-03 11:25 ` Vijay Purushothaman
2014-06-12 10:12 ` [PATCH 00/11] HSW/BDW PSR Vijay Purushothaman
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=538D94B6.2030009@intel.com \
--to=vijay.a.purushothaman@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=rodrigo.vivi@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox