public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] drm/i915: Honor SSC quirk table over the default, unless set by user
@ 2011-11-09 16:12 Michel Alexandre Salim
  2011-11-09 16:30 ` Michel Alexandre Salim
  0 siblings, 1 reply; 5+ messages in thread
From: Michel Alexandre Salim @ 2011-11-09 16:12 UTC (permalink / raw)
  To: intel-gfx; +Cc: Keith Packard, Jesse Barnes, Chris Wilson, linux-kernel

>From a90bf9ac2a40869242a79c88958c99dacc3da2a9 Mon Sep 17 00:00:00 2001
From: Michel Alexandre Salim <salimma@fedoraproject.org>
Date: Wed, 9 Nov 2011 14:18:45 +0100
Subject: [PATCH v3] drm/i915: Honor SSC quirk table over the default, unless set by user

Commit 72bbe58cd9568c7766cc219a779ea68a02132797 makes the check against
the quirk table unreachable if i915_panel_use_ssc is automatically set
to a non-zero value. This patch changes the tests so that unless
i915_panel_use_ssc is set to exactly 1, the quirk table is checked.

This ensures that on known quirky hardware, SSC is disabled unless
specifically enabled by the user.

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
---
 drivers/gpu/drm/i915/intel_display.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 981b1f1..aa7b0c8 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -4660,10 +4660,13 @@ static void intel_update_watermarks(struct drm_device *dev)
 
 static inline bool intel_panel_use_ssc(struct drm_i915_private *dev_priv)
 {
+	if (i915_panel_use_ssc == 1)
+		return true;
+	if (dev_priv->quirks & QUIRK_LVDS_SSC_DISABLE)
+		return false;
 	if (i915_panel_use_ssc >= 0)
 		return i915_panel_use_ssc != 0;
-	return dev_priv->lvds_use_ssc
-		&& !(dev_priv->quirks & QUIRK_LVDS_SSC_DISABLE);
+	return dev_priv->lvds_use_ssc;
 }
 
 /**
-- 
1.7.7




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

end of thread, other threads:[~2011-11-16 10:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-09 16:12 [PATCH v3] drm/i915: Honor SSC quirk table over the default, unless set by user Michel Alexandre Salim
2011-11-09 16:30 ` Michel Alexandre Salim
2011-11-09 18:07   ` Keith Packard
2011-11-10  9:46     ` Michel Alexandre Salim
2011-11-16 10:49     ` Michel Alexandre Salim

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