diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-10-02 12:23:24 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-10-02 13:05:56 +0100 |
commit | d36388a9f2dfc76ac3ccc963242de1f44f9cacd4 (patch) | |
tree | 66f39eb0586cc552e3ac5095808c64be056392e7 /tests/kms_busy.c | |
parent | d0975646c50568e66e65b44b81d28232d059b94e (diff) |
igt/kms_busy: Flush request queue when re-enabling hangcheck
Enabling hangcheck only takes effect at the start of a new request
queue. Before we re-enable hangcheck after our poking around, we
therefore need to wait until the gpu is idle otherwise the next test
will start without hangcheck and subsequently hang forever.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Petri Latvala <petri.latvala@intel.com>
Tested-by: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/kms_busy.c')
-rw-r--r-- | tests/kms_busy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kms_busy.c b/tests/kms_busy.c index d821ec71..ed3caae4 100644 --- a/tests/kms_busy.c +++ b/tests/kms_busy.c @@ -138,6 +138,7 @@ static void flip_to_fb(igt_display_t *dpy, int pipe, igt_assert(poll(&pfd, 1, 0) == 0); if (modeset) { + gem_quiescent_gpu(dpy->drm_fd); igt_set_module_param_int("enable_hangcheck", 1); /* Clear old mode blob. */ |