diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-29 19:56:18 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-29 20:00:12 +0100 |
commit | 7e7bc018b7674bc9a91a19a8a3b949c304b2ae77 (patch) | |
tree | 546cd6a086aac7f1817366be859729bc9eb11e1e /tests/kms_pipe_crc_basic.c | |
parent | ff9c6d7225c923f7d295cf65d022aee0bc763c4a (diff) |
igt/kms_pipe_crc_basic: Use a fast hang
Inject of using a hanging batch and waiting for the driver to notice,
issue a hang/reset request directly via debugfs.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_pipe_crc_basic.c')
-rw-r--r-- | tests/kms_pipe_crc_basic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index 45da200d..f49b4348 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -228,15 +228,15 @@ igt_main } igt_subtest_f("hang-read-crc-pipe-%c", 'A'+i) { - igt_hang_t hang; + igt_hang_t hang = igt_allow_hang(data.drm_fd, 0, 0); test_read_crc(&data, i, 0); - hang = igt_hang_ring(data.drm_fd, I915_EXEC_RENDER); - test_read_crc(&data, i, 0); - igt_post_hang_ring(data.drm_fd, hang); + igt_force_gpu_reset(data.drm_fd); test_read_crc(&data, i, 0); + + igt_disallow_hang(data.drm_fd, hang); } } |