aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915
diff options
context:
space:
mode:
authorRodrigo Vivi <rodrigo.vivi@intel.com>2015-03-24 15:40:09 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-26 08:04:23 -0400
commitab585dea120fa20313b1b5a3be2b3d614f094678 (patch)
tree9e8db33c943ae3e39be7f33294947604314211eb /drivers/gpu/drm/i915
parent6c826f349587f6c897da9bd224912ca1aee3d9ea (diff)
drm/i915: kill i915.powersave
This flag was being mostly used as a meta flag in some cases and not covering other cases. One of the risks is that it was masking some frontbuffer trackings without disabling PSR. So, better to kill this at once and avoid umbrella parameters. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk> [danvet: Drop unused out: label to appease gcc.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h1
-rw-r--r--drivers/gpu/drm/i915/i915_params.c5
-rw-r--r--drivers/gpu/drm/i915/intel_display.c8
-rw-r--r--drivers/gpu/drm/i915/intel_fbc.c2
-rw-r--r--drivers/gpu/drm/i915/intel_frontbuffer.c3
5 files changed, 3 insertions, 16 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 0a563cc65801..256369f29975 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -2443,7 +2443,6 @@ extern int i915_resume_legacy(struct drm_device *dev);
2443struct i915_params { 2443struct i915_params {
2444 int modeset; 2444 int modeset;
2445 int panel_ignore_lid; 2445 int panel_ignore_lid;
2446 unsigned int powersave;
2447 int semaphores; 2446 int semaphores;
2448 unsigned int lvds_downclock; 2447 unsigned int lvds_downclock;
2449 int lvds_channel_mode; 2448 int lvds_channel_mode;
diff --git a/drivers/gpu/drm/i915/i915_params.c b/drivers/gpu/drm/i915/i915_params.c
index e2d20ffe6586..f3b8b62cb74d 100644
--- a/drivers/gpu/drm/i915/i915_params.c
+++ b/drivers/gpu/drm/i915/i915_params.c
@@ -27,7 +27,6 @@
27struct i915_params i915 __read_mostly = { 27struct i915_params i915 __read_mostly = {
28 .modeset = -1, 28 .modeset = -1,
29 .panel_ignore_lid = 1, 29 .panel_ignore_lid = 1,
30 .powersave = 1,
31 .semaphores = -1, 30 .semaphores = -1,
32 .lvds_downclock = 0, 31 .lvds_downclock = 0,
33 .lvds_channel_mode = 0, 32 .lvds_channel_mode = 0,
@@ -65,10 +64,6 @@ MODULE_PARM_DESC(panel_ignore_lid,
65 "Override lid status (0=autodetect, 1=autodetect disabled [default], " 64 "Override lid status (0=autodetect, 1=autodetect disabled [default], "
66 "-1=force lid closed, -2=force lid open)"); 65 "-1=force lid closed, -2=force lid open)");
67 66
68module_param_named(powersave, i915.powersave, int, 0600);
69MODULE_PARM_DESC(powersave,
70 "Enable powersavings, fbc, downclocking, etc. (default: true)");
71
72module_param_named_unsafe(semaphores, i915.semaphores, int, 0400); 67module_param_named_unsafe(semaphores, i915.semaphores, int, 0400);
73MODULE_PARM_DESC(semaphores, 68MODULE_PARM_DESC(semaphores,
74 "Use semaphores for inter-ring sync " 69 "Use semaphores for inter-ring sync "
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index f9dc5babcf27..d98df2739666 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -6024,7 +6024,7 @@ static void i9xx_update_pll_dividers(struct intel_crtc *crtc,
6024 6024
6025 crtc->lowfreq_avail = false; 6025 crtc->lowfreq_avail = false;
6026 if (intel_pipe_will_have_type(crtc, INTEL_OUTPUT_LVDS) && 6026 if (intel_pipe_will_have_type(crtc, INTEL_OUTPUT_LVDS) &&
6027 reduced_clock && i915.powersave) { 6027 reduced_clock) {
6028 crtc_state->dpll_hw_state.fp1 = fp2; 6028 crtc_state->dpll_hw_state.fp1 = fp2;
6029 crtc->lowfreq_avail = true; 6029 crtc->lowfreq_avail = true;
6030 } else { 6030 } else {
@@ -7807,7 +7807,7 @@ static int ironlake_crtc_compute_clock(struct intel_crtc *crtc,
7807 } 7807 }
7808 } 7808 }
7809 7809
7810 if (is_lvds && has_reduced_clock && i915.powersave) 7810 if (is_lvds && has_reduced_clock)
7811 crtc->lowfreq_avail = true; 7811 crtc->lowfreq_avail = true;
7812 else 7812 else
7813 crtc->lowfreq_avail = false; 7813 crtc->lowfreq_avail = false;
@@ -9322,9 +9322,6 @@ void intel_mark_idle(struct drm_device *dev)
9322 9322
9323 dev_priv->mm.busy = false; 9323 dev_priv->mm.busy = false;
9324 9324
9325 if (!i915.powersave)
9326 goto out;
9327
9328 for_each_crtc(dev, crtc) { 9325 for_each_crtc(dev, crtc) {
9329 if (!crtc->primary->fb) 9326 if (!crtc->primary->fb)
9330 continue; 9327 continue;
@@ -9335,7 +9332,6 @@ void intel_mark_idle(struct drm_device *dev)
9335 if (INTEL_INFO(dev)->gen >= 6) 9332 if (INTEL_INFO(dev)->gen >= 6)
9336 gen6_rps_idle(dev->dev_private); 9333 gen6_rps_idle(dev->dev_private);
9337 9334
9338out:
9339 intel_runtime_pm_put(dev_priv); 9335 intel_runtime_pm_put(dev_priv);
9340} 9336}
9341 9337
diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c
index 9fcf446e95f5..4165ce0644f7 100644
--- a/drivers/gpu/drm/i915/intel_fbc.c
+++ b/drivers/gpu/drm/i915/intel_fbc.c
@@ -521,7 +521,7 @@ void intel_fbc_update(struct drm_device *dev)
521 goto out_disable; 521 goto out_disable;
522 } 522 }
523 523
524 if (!i915.enable_fbc || !i915.powersave) { 524 if (!i915.enable_fbc) {
525 if (set_no_fbc_reason(dev_priv, FBC_MODULE_PARAM)) 525 if (set_no_fbc_reason(dev_priv, FBC_MODULE_PARAM))
526 DRM_DEBUG_KMS("fbc disabled per module param\n"); 526 DRM_DEBUG_KMS("fbc disabled per module param\n");
527 goto out_disable; 527 goto out_disable;
diff --git a/drivers/gpu/drm/i915/intel_frontbuffer.c b/drivers/gpu/drm/i915/intel_frontbuffer.c
index 0a1bac8ac72b..a20cffb78c0f 100644
--- a/drivers/gpu/drm/i915/intel_frontbuffer.c
+++ b/drivers/gpu/drm/i915/intel_frontbuffer.c
@@ -110,9 +110,6 @@ static void intel_mark_fb_busy(struct drm_device *dev,
110 struct drm_i915_private *dev_priv = dev->dev_private; 110 struct drm_i915_private *dev_priv = dev->dev_private;
111 enum pipe pipe; 111 enum pipe pipe;
112 112
113 if (!i915.powersave)
114 return;
115
116 for_each_pipe(dev_priv, pipe) { 113 for_each_pipe(dev_priv, pipe) {
117 if (!(frontbuffer_bits & INTEL_FRONTBUFFER_ALL_MASK(pipe))) 114 if (!(frontbuffer_bits & INTEL_FRONTBUFFER_ALL_MASK(pipe)))
118 continue; 115 continue;