From: "Nayana, Venkata Ramana" <venkata.ramana.nayana@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH i-g-t 1/2] i915/gem_ctx_isolation: Protect inject_reset_context() from banning
Date: Wed, 6 Jan 2021 06:22:41 +0000 [thread overview]
Message-ID: <e23a47877414426ca157eb3c5f36d4e7@intel.com> (raw)
In-Reply-To: <20210105112536.3284632-1-chris@chris-wilson.co.uk>
> -----Original Message-----
> From: Chris Wilson <chris@chris-wilson.co.uk>
> Sent: Tuesday, January 5, 2021 4:56 PM
> To: intel-gfx@lists.freedesktop.org
> Cc: igt-dev@lists.freedesktop.org; Chris Wilson <chris@chris-wilson.co.uk>;
> Nayana, Venkata Ramana <venkata.ramana.nayana@intel.com>
> Subject: [PATCH i-g-t 1/2] i915/gem_ctx_isolation: Protect
> inject_reset_context() from banning
>
> Disable banning as we deliberately inject GPU resets to test isolation.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Venkata Ramana Nayana <venkata.ramana.nayana@intel.com>
> ---
> tests/i915/gem_ctx_isolation.c | 13 ++++++++++++-
> 1 file changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/tests/i915/gem_ctx_isolation.c b/tests/i915/gem_ctx_isolation.c
> index 58a35b487..4f1742685 100644
> --- a/tests/i915/gem_ctx_isolation.c
> +++ b/tests/i915/gem_ctx_isolation.c
> @@ -762,10 +762,21 @@ static void isolation(int fd, #define S4 (4 << 8)
> #define SLEEP_MASK (0xf << 8)
>
> +static uint32_t create_reset_context(int i915) {
> + struct drm_i915_gem_context_param param = {
> + .ctx_id = gem_context_clone_with_engines(i915, 0),
> + .param = I915_CONTEXT_PARAM_BANNABLE,
> + };
> +
> + gem_context_set_param(i915, ¶m);
> + return param.ctx_id;
> +}
> +
> static void inject_reset_context(int fd, const struct intel_execution_engine2
> *e) {
> struct igt_spin_factory opts = {
> - .ctx = gem_context_clone_with_engines(fd, 0),
> + .ctx = create_reset_context(fd),
> .engine = e->flags,
> .flags = IGT_SPIN_FAST,
> };
> --
> 2.30.0
Reviewed-by: Venkata Ramana Nayana <venkata.ramana.nayana@intel.com>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2021-01-06 6:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-05 11:25 [Intel-gfx] [PATCH i-g-t 1/2] i915/gem_ctx_isolation: Protect inject_reset_context() from banning Chris Wilson
2021-01-05 11:25 ` [Intel-gfx] [PATCH i-g-t 2/2] i915/gem_ctx_exec: Protect norecovery from being banned Chris Wilson
2021-01-06 6:22 ` Nayana, Venkata Ramana [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-01-05 11:19 [Intel-gfx] [PATCH i-g-t 1/2] i915/gem_ctx_isolation: Protect inject_reset_context() from banning Chris Wilson
2021-01-05 11:21 ` Chris Wilson
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=e23a47877414426ca157eb3c5f36d4e7@intel.com \
--to=venkata.ramana.nayana@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox