drm/i915/execlists: Record preemption for selftests
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 10 Jul 2019 06:44:41 +0000 (07:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 10 Jul 2019 07:46:35 +0000 (08:46 +0100)
commit58d1b427148a3bd16e62f16558d2f45527727eb1
tree1769a88e62bbaad22152a825435e6a3dce3b1a3a
parentb33c61db7291d376e956f2657c453d966e558974
drm/i915/execlists: Record preemption for selftests

Put back the preemption counters lost in commit 22b7a426bbe1
("drm/i915/execlists: Preempt-to-busy") so that our selftests that
assert no preemption took place continue to function.

v2: But a timeslice is only a "soft" preemption!

Fixes: 22b7a426bbe1 ("drm/i915/execlists: Preempt-to-busy")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190710064454.682-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c