diff options
author | Dave Gordon <david.s.gordon@intel.com> | 2015-10-27 17:11:51 +0000 |
---|---|---|
committer | John Harrison <John.C.Harrison@Intel.com> | 2016-06-28 17:19:26 +0100 |
commit | cfebd7f70d100ba7283c8318a9f8832f3827e60b (patch) | |
tree | 73acacbc92a7440e138c6e4df3b2fbe41b363a96 | |
parent | e0112fd6557004fd84cc187be9205a890f868f18 (diff) |
drm/i915/preempt: update module parameter to enable preemption
For: VIZ-2021
Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
-rw-r--r-- | drivers/gpu/drm/i915/i915_params.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_scheduler.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_params.c b/drivers/gpu/drm/i915/i915_params.c index 7d93b5b9d12c..7af28e29071e 100644 --- a/drivers/gpu/drm/i915/i915_params.c +++ b/drivers/gpu/drm/i915/i915_params.c @@ -59,7 +59,7 @@ struct i915_params i915 __read_mostly = { .enable_dp_mst = true, .inject_load_failure = 0, .enable_scheduler = 1, - .enable_preemption = 0, + .enable_preemption = 1, }; module_param_named(modeset, i915.modeset, int, 0400); @@ -217,4 +217,4 @@ module_param_named_unsafe(enable_scheduler, i915.enable_scheduler, int, 0600); MODULE_PARM_DESC(enable_scheduler, "Enable scheduler (0 = disable, 1 = enable [default])"); module_param_named_unsafe(enable_preemption, i915.enable_preemption, int, 0600); -MODULE_PARM_DESC(enable_preemption, "Enable pre-emption within scheduler (0 = disable [default], 1 = enable)"); +MODULE_PARM_DESC(enable_preemption, "Enable pre-emption within scheduler (0 = disable, 1 = enable [default])"); diff --git a/drivers/gpu/drm/i915/i915_scheduler.c b/drivers/gpu/drm/i915/i915_scheduler.c index 2d6492e13152..808e3fdc62ff 100644 --- a/drivers/gpu/drm/i915/i915_scheduler.c +++ b/drivers/gpu/drm/i915/i915_scheduler.c @@ -168,7 +168,7 @@ int i915_scheduler_init(struct drm_device *dev) scheduler->priority_level_max = 1023; scheduler->priority_level_bump = 50; scheduler->priority_level_preempt = 900; - scheduler->min_flying = 2; + scheduler->min_flying = 8; scheduler->file_queue_max = 64; scheduler->dump_flags = I915_SF_DUMP_FORCE | I915_SF_DUMP_DETAILS | |