public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/9] drm/i915: Use HAS_PSR to avoid unecessary interactions.
@ 2014-06-12 17:16 Rodrigo Vivi
  2014-06-12 17:16 ` [PATCH 2/9] drm/i915: Don't let update_psr function actually enable PSR Rodrigo Vivi
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Rodrigo Vivi @ 2014-06-12 17:16 UTC (permalink / raw)
  To: intel-gfx; +Cc: Rodrigo Vivi

Let's be more conservative and protect platforms that don't
support PSR from unecessary interactions.

Reviewed-by: Vijay Purushothaman <vijay.a.purushothaman@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.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 b3f97f2..da65adc 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1747,11 +1747,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");
@@ -1824,6 +1819,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);
@@ -1851,6 +1851,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);
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-06-13 19:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-12 17:16 [PATCH 1/9] drm/i915: Use HAS_PSR to avoid unecessary interactions Rodrigo Vivi
2014-06-12 17:16 ` [PATCH 2/9] drm/i915: Don't let update_psr function actually enable PSR Rodrigo Vivi
2014-06-12 17:16 ` [PATCH 3/9] drm/i915: Do not try to enable PSR when Panel doesn't suport it Rodrigo Vivi
2014-06-12 17:16 ` [PATCH 4/9] drm/i915: Force PSR exit by inactivating it Rodrigo Vivi
2014-06-13  6:53   ` Daniel Vetter
2014-06-13 12:10     ` [PATCH] " Rodrigo Vivi
2014-06-13 19:24       ` Daniel Vetter
2014-06-13 19:45       ` Chris Wilson
2014-06-12 17:16 ` [PATCH 5/9] drm/i915: BDW PSR: Add single frame update support Rodrigo Vivi
2014-06-12 17:16 ` [PATCH 6/9] drm/i915: BDW PSR: Remove limitations that aren't valid for BDW Rodrigo Vivi
2014-06-13  8:11   ` Daniel Vetter
2014-06-12 17:16 ` [PATCH 7/9] drm/i915: BDW PSR: Remove DDIA limitation for Broadwell Rodrigo Vivi
2014-06-12 17:16 ` [PATCH 8/9] drm/i915: Improve PSR debugfs status Rodrigo Vivi
2014-06-12 17:16 ` [PATCH 9/9] drm/i915: PSR HSW: update after enabling sprite Rodrigo Vivi
2014-06-13  8:01   ` Daniel Vetter
2014-06-13 12:02     ` Jani Nikula
2014-06-13 13:49       ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox