]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Exercise timeslice rewinding
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Feb 2020 14:01:50 +0000 (14:01 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Feb 2020 16:41:23 +0000 (16:41 +0000)
commit311cdab1098da1755f69a69d814aec830018b57c
tree0c44c000da4fb019147092f8432ba6cda8604f39
parent2458f58d67d53249e5865d4f5ffd4fdf803f05ae
drm/i915/selftests: Exercise timeslice rewinding

Originally, I did not expect having to rewind a context upon
timeslicing: the point was to replace the executing context with a
non-executing one! However, given a second context that depends on
requests from the first, we may have to split the requests along the
first context to execute the second, causing us to partially replay the
first context and so have to rewind its RING_TAIL.

References: d77bc31cfa2b ("drm/i915/execlists: Always force a context reload when rewinding RING_TAIL")
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/20200213140150.3639027-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c