]> 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)
commit4c8ed8b12674eb377d0fe366fc4dc4ed6244cdb5
tree0c44c000da4fb019147092f8432ba6cda8604f39
parente06b8524e8e561f64dcb7e7eecfc46d014d6a125
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: 5ba32c7be81e ("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