diff options
author | 2019-10-02 19:34:59 +0100 | |
---|---|---|
committer | 2019-10-03 00:26:02 +0100 | |
commit | fcde8c7eea6004e92f8b329a84c2a520a1a71bc0 (patch) | |
tree | 19ecc9d3e8e6ccbfe28ea63a395b509a55988d5f /drivers/fpga/fpga-mgr.c | |
parent | drm/i915/mg: Use tc_port instead of port parameter to MG registers (diff) | |
download | linux-dev-fcde8c7eea6004e92f8b329a84c2a520a1a71bc0.tar.xz linux-dev-fcde8c7eea6004e92f8b329a84c2a520a1a71bc0.zip |
drm/i915/selftests: Exercise potential false lite-restore
If execlists's lite-restore is based on the common GEM context tag
rather than the per-intel_context LRCA, then a context switch between
two intel_contexts on the same engine derived from the same GEM context
will perform a lite-restore instead of a full context switch. We can
exploit this by poisoning the ringbuffer of the first context and trying
to trick a simple RING_TAIL update (i.e. lite-restore)
v2: Also check what happens if preempt ce[0] with ce[1] (both instances
on the same engine from the same parent context) [Tvrtko]
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/20191002183459.26614-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions