* [PATCH i-g-t] igt/kms_busy: Flush request queue when re-enabling hangcheck
@ 2018-10-02 11:26 Chris Wilson
2018-10-02 11:53 ` Petri Latvala
0 siblings, 1 reply; 2+ messages in thread
From: Chris Wilson @ 2018-10-02 11:26 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
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>
---
tests/kms_busy.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/kms_busy.c b/tests/kms_busy.c
index d821ec711..ed3caae4c 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. */
--
2.19.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH i-g-t] igt/kms_busy: Flush request queue when re-enabling hangcheck
2018-10-02 11:26 [PATCH i-g-t] igt/kms_busy: Flush request queue when re-enabling hangcheck Chris Wilson
@ 2018-10-02 11:53 ` Petri Latvala
0 siblings, 0 replies; 2+ messages in thread
From: Petri Latvala @ 2018-10-02 11:53 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev, intel-gfx
On Tue, Oct 02, 2018 at 12:26:01PM +0100, Chris Wilson wrote:
> 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>
> ---
> tests/kms_busy.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/kms_busy.c b/tests/kms_busy.c
> index d821ec711..ed3caae4c 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. */
> --
> 2.19.0
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-02 11:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-02 11:26 [PATCH i-g-t] igt/kms_busy: Flush request queue when re-enabling hangcheck Chris Wilson
2018-10-02 11:53 ` Petri Latvala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox