From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [Intel-gfx] [PATCH i-g-t] lib: Require working GEM (!wedged) to allow hang injection
Date: Tue, 10 Jul 2018 16:30:15 +0300 [thread overview]
Message-ID: <87r2kbrzfc.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20180710113105.17868-1-chris@chris-wilson.co.uk>
Chris Wilson <chris@chris-wilson.co.uk> writes:
> As we ordinarily use a spinning batch to trigger a hang, we cannot do so
> without execbuf. On the other hand, if we do a manual reset of the
> wedged driver, we expect it to remain wedged and for the reset to fail;
> failing the test. Even if we remove the igt_assert(!wedged), the test is
> suspect as we don't know if the reset took place and so do not know if
> the conditions the test is trying to setup apply.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
> lib/igt_gt.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/lib/igt_gt.c b/lib/igt_gt.c
> index 4569fd36b..89b318ae6 100644
> --- a/lib/igt_gt.c
> +++ b/lib/igt_gt.c
> @@ -162,6 +162,13 @@ igt_hang_t igt_allow_hang(int fd, unsigned ctx, unsigned flags)
> };
> unsigned ban;
>
> + /*
> + * If the driver is already wedged, we don't expect it to be able
> + * to recover from reset and for it to remain wedged. It's hard to
> + * say even if we do hang/reset making the test suspect.
> + */
> + igt_require_gem(fd);
This will do a manual reset for a wedged driver, trying to rectify the
situation. But we are on a more solid ground after it.
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> +
> igt_assert(igt_sysfs_set_parameter
> (fd, "reset", "%d", INT_MAX /* any reset method */));
>
> --
> 2.18.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
WARNING: multiple messages have this Message-ID (diff)
From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [PATCH i-g-t] lib: Require working GEM (!wedged) to allow hang injection
Date: Tue, 10 Jul 2018 16:30:15 +0300 [thread overview]
Message-ID: <87r2kbrzfc.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20180710113105.17868-1-chris@chris-wilson.co.uk>
Chris Wilson <chris@chris-wilson.co.uk> writes:
> As we ordinarily use a spinning batch to trigger a hang, we cannot do so
> without execbuf. On the other hand, if we do a manual reset of the
> wedged driver, we expect it to remain wedged and for the reset to fail;
> failing the test. Even if we remove the igt_assert(!wedged), the test is
> suspect as we don't know if the reset took place and so do not know if
> the conditions the test is trying to setup apply.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
> lib/igt_gt.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/lib/igt_gt.c b/lib/igt_gt.c
> index 4569fd36b..89b318ae6 100644
> --- a/lib/igt_gt.c
> +++ b/lib/igt_gt.c
> @@ -162,6 +162,13 @@ igt_hang_t igt_allow_hang(int fd, unsigned ctx, unsigned flags)
> };
> unsigned ban;
>
> + /*
> + * If the driver is already wedged, we don't expect it to be able
> + * to recover from reset and for it to remain wedged. It's hard to
> + * say even if we do hang/reset making the test suspect.
> + */
> + igt_require_gem(fd);
This will do a manual reset for a wedged driver, trying to rectify the
situation. But we are on a more solid ground after it.
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> +
> igt_assert(igt_sysfs_set_parameter
> (fd, "reset", "%d", INT_MAX /* any reset method */));
>
> --
> 2.18.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-07-10 13:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-10 11:31 [igt-dev] [PATCH i-g-t] lib: Require working GEM (!wedged) to allow hang injection Chris Wilson
2018-07-10 11:31 ` Chris Wilson
2018-07-10 12:24 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-07-10 13:13 ` [igt-dev] [Intel-gfx] [PATCH i-g-t] " Mika Kuoppala
2018-07-10 13:13 ` Mika Kuoppala
2018-07-10 13:20 ` [igt-dev] [Intel-gfx] " Chris Wilson
2018-07-10 13:20 ` Chris Wilson
2018-07-10 13:30 ` Mika Kuoppala [this message]
2018-07-10 13:30 ` Mika Kuoppala
2018-07-10 13:35 ` [Intel-gfx] " Chris Wilson
2018-07-10 13:35 ` Chris Wilson
2018-07-10 18:43 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r2kbrzfc.fsf@gaia.fi.intel.com \
--to=mika.kuoppala@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=igt-dev@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.