aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-09-26 19:09:45 -0400
committerKeith Packard <keithp@keithp.com>2011-09-27 14:12:40 -0400
commit72bbe58cd9568c7766cc219a779ea68a02132797 (patch)
treec782e65997335f19534ab57146c25128617de248 /drivers/gpu
parentd2830bdb84fac6e84e45ffe1a4c9bec762295d7d (diff)
drm/i915: Allow SSC parameter to override VBT value
Allow SSC to be enabled even when the BIOS disables it for testing SSC paths. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c4
-rw-r--r--drivers/gpu/drm/i915/intel_display.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index f07e4252b708..58480deacc07 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -79,11 +79,11 @@ MODULE_PARM_DESC(lvds_downclock,
79 "Use panel (LVDS/eDP) downclocking for power savings " 79 "Use panel (LVDS/eDP) downclocking for power savings "
80 "(default: false)"); 80 "(default: false)");
81 81
82unsigned int i915_panel_use_ssc __read_mostly = 1; 82unsigned int i915_panel_use_ssc __read_mostly = -1;
83module_param_named(lvds_use_ssc, i915_panel_use_ssc, int, 0600); 83module_param_named(lvds_use_ssc, i915_panel_use_ssc, int, 0600);
84MODULE_PARM_DESC(lvds_use_ssc, 84MODULE_PARM_DESC(lvds_use_ssc,
85 "Use Spread Spectrum Clock with panels [LVDS/eDP] " 85 "Use Spread Spectrum Clock with panels [LVDS/eDP] "
86 "(default: true)"); 86 "(default: auto from VBT)");
87 87
88int i915_vbt_sdvo_panel_type __read_mostly = -1; 88int i915_vbt_sdvo_panel_type __read_mostly = -1;
89module_param_named(vbt_sdvo_panel_type, i915_vbt_sdvo_panel_type, int, 0600); 89module_param_named(vbt_sdvo_panel_type, i915_vbt_sdvo_panel_type, int, 0600);
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 04411ad2e779..603949622104 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -4584,7 +4584,9 @@ static void intel_update_watermarks(struct drm_device *dev)
4584 4584
4585static inline bool intel_panel_use_ssc(struct drm_i915_private *dev_priv) 4585static inline bool intel_panel_use_ssc(struct drm_i915_private *dev_priv)
4586{ 4586{
4587 return dev_priv->lvds_use_ssc && i915_panel_use_ssc 4587 if (i915_panel_use_ssc >= 0)
4588 return i915_panel_use_ssc != 0;
4589 return dev_priv->lvds_use_ssc
4588 && !(dev_priv->quirks & QUIRK_LVDS_SSC_DISABLE); 4590 && !(dev_priv->quirks & QUIRK_LVDS_SSC_DISABLE);
4589} 4591}
4590 4592