]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Make timeslice duration configurable
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Oct 2019 09:16:32 +0000 (09:16 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Oct 2019 16:23:55 +0000 (16:23 +0000)
commit53f48db6d666bbec51b5233f3551b398b31dcaaa
treea371089353ac9275d67f8b8b4a825352090b5e15
parent3f628e57ab4572748d1a845e79f00508db01c8b3
drm/i915/gt: Make timeslice duration configurable

Execlists uses a scheduling quantum (a timeslice) to alternate execution
between ready-to-run contexts of equal priority. This ensures that all
users (though only if they of equal importance) have the opportunity to
run and prevents livelocks where contexts may have implicit ordering due
to userspace semaphores. However, not all workloads necessarily benefit
from timeslicing and in the extreme some sysadmin may want to disable or
reduce the timeslicing granularity.

The timeslicing mechanism can be compiled out^W^W disabled (but should
DCE!) with

./scripts/config --set-val DRM_I915_TIMESLICE_DURATION 0

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191029091632.26281-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Kconfig.profile
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_engine_types.h
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/selftest_lrc.c