]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit4cdf65ce8cc28e72089605250b887ab70e10f750
tree25dd3ee0843a49bdfb897414371b549b237d8d48
parentaaefa06a0ea845a7088585ca42259515769ea496
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