]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: add fastboot param for fast & loose mode setting
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 25 Jun 2013 22:38:15 +0000 (01:38 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 1 Jul 2013 09:28:02 +0000 (11:28 +0200)
Handling all the state properly for fastboot is still not yet done by
far, but we need some way to be able to test what we currently have.
So hide the not-yet-quite-complete stuff behind a module option.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[danvet: Add a real commit message.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h

index 062cbda1bf4a6c76acb4a0086209161d2b5d5bf7..33cb97388fc93b875cecf4965bfaf8c42f287642 100644 (file)
@@ -132,6 +132,11 @@ int i915_enable_ips __read_mostly = 1;
 module_param_named(enable_ips, i915_enable_ips, int, 0600);
 MODULE_PARM_DESC(enable_ips, "Enable IPS (default: true)");
 
+bool i915_fastboot __read_mostly = 0;
+module_param_named(fastboot, i915_fastboot, bool, 0600);
+MODULE_PARM_DESC(fastboot, "Try to skip unnecessary mode sets at boot time "
+                "(default: false)");
+
 static struct drm_driver driver;
 extern int intel_agp_enabled;
 
index da07f6f28854d7721156d02d28a620e38b3f6272..4a23e957b85c805717b98786948111ce518fca67 100644 (file)
@@ -1551,6 +1551,7 @@ extern int i915_enable_ppgtt __read_mostly;
 extern unsigned int i915_preliminary_hw_support __read_mostly;
 extern int i915_disable_power_well __read_mostly;
 extern int i915_enable_ips __read_mostly;
+extern bool i915_fastboot __read_mostly;
 
 extern int i915_suspend(struct drm_device *dev, pm_message_t state);
 extern int i915_resume(struct drm_device *dev);