diff options
author | Xiong Zhang <xiong.y.zhang@intel.com> | 2013-07-19 01:51:24 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-19 03:29:26 -0400 |
commit | 0b74b508f78cea96d0d1b47e72cc0ec7959cdc68 (patch) | |
tree | 2bfe889b7a72eb2d736c98e334e5a5025ca49203 /drivers/gpu/drm/i915/i915_drv.c | |
parent | 6286ef9b56bfc5d4f3f06ef5488e41da4480dc85 (diff) |
drm/i915: add prefault_disable module option
prefault is stll enabled by default which prevent most of pwrite/pread/reloc
from running slow path, in order to verify these slow pathes, prefault need
to be disabled.
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
[danvet: Make checkpatch happy and bikeshed the module option help
text a bit.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index b178a7ca1294..c34086ad8181 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -141,6 +141,11 @@ module_param_named(fastboot, i915_fastboot, bool, 0600); | |||
141 | MODULE_PARM_DESC(fastboot, "Try to skip unnecessary mode sets at boot time " | 141 | MODULE_PARM_DESC(fastboot, "Try to skip unnecessary mode sets at boot time " |
142 | "(default: false)"); | 142 | "(default: false)"); |
143 | 143 | ||
144 | bool i915_prefault_disable __read_mostly; | ||
145 | module_param_named(prefault_disable, i915_prefault_disable, bool, 0600); | ||
146 | MODULE_PARM_DESC(prefault_disable, | ||
147 | "Disable page prefaulting for pread/pwrite/reloc (default:false). For developers only."); | ||
148 | |||
144 | static struct drm_driver driver; | 149 | static struct drm_driver driver; |
145 | extern int intel_agp_enabled; | 150 | extern int intel_agp_enabled; |
146 | 151 | ||