]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Make timeslicing an explicit engine property
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 May 2020 12:22:49 +0000 (13:22 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 May 2020 14:17:33 +0000 (15:17 +0100)
commitb362eaed264bd5f32d208c18a38336c6097b7445
treed7bc0fc46d4c74705c4952396ffbdfa336910127
parente2c016ad513addff7e086d2b189fbf374d758de1
drm/i915/gt: Make timeslicing an explicit engine property

In order to allow userspace to rely on timeslicing to reorder their
batches, we must support preemption of those user batches. Declare
timeslicing as an explicit property that is a combination of having the
kernel support and HW support.

Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Fixes: b0ea7ccafad8 ("drm/i915/execlists: Minimalistic timeslicing")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200501122249.12417-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_engine_types.h
drivers/gpu/drm/i915/gt/intel_lrc.c