]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only reschedule the submission tasklet if preemption is possible
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 May 2019 12:25:44 +0000 (13:25 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 May 2019 16:40:20 +0000 (17:40 +0100)
commit540cbe8acf30d209073cea5e765a76f2206827ac
treef7a8bd8b65a299d8b9f8e6f533f1cb4bac7765ae
parent1bf032b1dd7059cc4a1ec358792e59440375ded0
drm/i915: Only reschedule the submission tasklet if preemption is possible

If we couple the scheduler more tightly with the execlists policy, we
can apply the preemption policy to the question of whether we need to
kick the tasklet at all for this priority bump.

v2: Rephrase it as a core i915 policy and not an execlists foible.
v3: Pull the kick together.

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/20190507122544.12698-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/selftest_lrc.c
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/i915_scheduler.c
drivers/gpu/drm/i915/i915_scheduler.h
drivers/gpu/drm/i915/intel_guc_submission.c