]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Try to detect rollback during batchbuffer preemption
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 22 Apr 2020 10:09:03 +0000 (11:09 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 22 Apr 2020 14:42:52 +0000 (15:42 +0100)
commitc92724de6db1be85be679a58af25659ba696e64d
treeed2015ab9f1fccd3a0b66b04b50efd35a87824f0
parentcbb6f8805a4cfcf6bd97dfd0de399f9f3f8f7cdc
drm/i915/selftests: Try to detect rollback during batchbuffer preemption

Since batch buffers dominant execution time, most preemption requests
should naturally occur during execution of a batch buffer. We wish to
verify that should a preemption occur within a batch buffer, when we
come to restart that batch buffer, it occurs at the interrupted
instruction and most importantly does not rollback to an earlier point.

v2: Do not clear the GPR at the start of the batch, but rely on them
being clear for new contexts.

Suggested-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200422100903.25216-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c