]> 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)
commit46921d112b4a615910b913e9db8ee611b1faf8ca
tree25dd3ee0843a49bdfb897414371b549b237d8d48
parent8abfd518467cf328afd6b886808859295c1e7425
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