diff options
author | Josh Triplett <josh@joshtriplett.org> | 2013-08-13 19:23:17 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-22 07:31:51 -0400 |
commit | 99486b8e6140da7721c932e708a6c17dc1dd970a (patch) | |
tree | e7b72be4d9d1806f4db3069a32c6ae0bec12fac5 /drivers | |
parent | 79f8dea13391f8220470997f9a5213ab5aa9f1c7 (diff) |
i915: Add a Kconfig option to turn on i915.preliminary_hw_support by default
When building kernels for a preliminary hardware target, having to add a
kernel command-line option can prove inconvenient. Add a Kconfig option
that changes the default of this option to 1.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
[danvet: Pimp the Kconfig help text a bit as suggested by Damien in
his 2nd review.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/Kconfig | 11 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 4 |
2 files changed, 13 insertions, 2 deletions
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index a7c54c843291..cd4246b480d4 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig | |||
@@ -168,6 +168,17 @@ config DRM_I915_KMS | |||
168 | the driver to bind to PCI devices, which precludes loading things | 168 | the driver to bind to PCI devices, which precludes loading things |
169 | like intelfb. | 169 | like intelfb. |
170 | 170 | ||
171 | config DRM_I915_PRELIMINARY_HW_SUPPORT | ||
172 | bool "Enable preliminary support for prerelease Intel hardware by default" | ||
173 | depends on DRM_I915 | ||
174 | help | ||
175 | Choose this option if you have prerelease Intel hardware and want the | ||
176 | i915 driver to support it by default. You can enable such support at | ||
177 | runtime with the module option i915.preliminary_hw_support=1; this | ||
178 | option changes the default for that module option. | ||
179 | |||
180 | If in doubt, say "N". | ||
181 | |||
171 | config DRM_MGA | 182 | config DRM_MGA |
172 | tristate "Matrox g200/g400" | 183 | tristate "Matrox g200/g400" |
173 | depends on DRM && PCI | 184 | depends on DRM && PCI |
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 01d63a0435fb..fd9fb2c25691 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -122,10 +122,10 @@ int i915_enable_psr __read_mostly = 0; | |||
122 | module_param_named(enable_psr, i915_enable_psr, int, 0600); | 122 | module_param_named(enable_psr, i915_enable_psr, int, 0600); |
123 | MODULE_PARM_DESC(enable_psr, "Enable PSR (default: false)"); | 123 | MODULE_PARM_DESC(enable_psr, "Enable PSR (default: false)"); |
124 | 124 | ||
125 | unsigned int i915_preliminary_hw_support __read_mostly = 0; | 125 | unsigned int i915_preliminary_hw_support __read_mostly = IS_ENABLED(CONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT); |
126 | module_param_named(preliminary_hw_support, i915_preliminary_hw_support, int, 0600); | 126 | module_param_named(preliminary_hw_support, i915_preliminary_hw_support, int, 0600); |
127 | MODULE_PARM_DESC(preliminary_hw_support, | 127 | MODULE_PARM_DESC(preliminary_hw_support, |
128 | "Enable preliminary hardware support. (default: false)"); | 128 | "Enable preliminary hardware support."); |
129 | 129 | ||
130 | int i915_disable_power_well __read_mostly = 1; | 130 | int i915_disable_power_well __read_mostly = 1; |
131 | module_param_named(disable_power_well, i915_disable_power_well, int, 0600); | 131 | module_param_named(disable_power_well, i915_disable_power_well, int, 0600); |