summaryrefslogtreecommitdiff
path: root/lib/igt_pm.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-08-09 13:03:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-12-13 19:12:20 +0000
commitea7015f1fabbdfdd52a145162c658d2e90161ec5 (patch)
tree090d7555c96d9e6098e77fdb082bfea310ec63d8 /lib/igt_pm.h
parentbab762ddef24057a6b07568db3734791b6e6b930 (diff)
lib/core: Don't leak dummyloads between subtests
If a test fails or skips early, it may not clean up after itself. In lieu of having a framework for test deconstructors, hook igt_terminate_spin_batches() into exit_subtest() itself so that we don't allow a recursive batch from an earlier test to leak into the next and cause an unexpected GPU hang. Similarly, we also want to terminate the dummyload as the first step in our atexit handlers (currently it is at the start of the last step) as some atexit handlers may be unwittingly exposed to dummyloads and so cause another wait on GPU hang. We trust that the core already distinguishes correctly between the principal test process and its children. 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>
Diffstat (limited to 'lib/igt_pm.h')
0 files changed, 0 insertions, 0 deletions