]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Return to kernel context after each test
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 May 2018 11:53:12 +0000 (12:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 May 2018 13:58:02 +0000 (14:58 +0100)
commit765dcca8250b36fe2a12d60bf7b719853e90bd60
tree25dd3ee0843a49bdfb897414371b549b237d8d48
parent3ad3f5bb88cf91167ae542bd2a794f97dedcf5c0
drm/i915/selftests: Return to kernel context after each test

As we flush each test and wait for idle before the next, also switch
back to the kernel context. This helps limit the amount of collateral
damage a test may cause by resetting to the default state each time (and
also helps clean up temporaries used by the test).

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/20180508115312.12628-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/igt_flush_test.c