OSDN Git Service

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)
commita211da9c771bf97395a3ced83a3aa383372b13a7
treed7bc0fc46d4c74705c4952396ffbdfa336910127
parent3b55cdeb8f1b71444da866fd2568b1a18ba7f9c3
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: 8ee36e048c98 ("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