From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Jasmine Newsome <jasmine.newsome@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_spin_batch: Removing context persistence
Date: Fri, 18 Feb 2022 18:39:45 -0800 [thread overview]
Message-ID: <87h78v7f66.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20220219013215.3531766-3-jasmine.newsome@intel.com>
On Fri, 18 Feb 2022 17:32:15 -0800, Jasmine Newsome wrote:
>
> diff --git a/tests/i915/gem_spin_batch.c b/tests/i915/gem_spin_batch.c
> index 653812c7..707d69b6 100644
> --- a/tests/i915/gem_spin_batch.c
> +++ b/tests/i915/gem_spin_batch.c
> @@ -161,8 +161,6 @@ static void spin_all(int i915, const intel_ctx_t *ctx, unsigned int flags)
> .engine = e->flags,
> .flags = (IGT_SPIN_POLL_RUN |
> IGT_SPIN_NO_PREEMPTION));
> - if (flags & PARALLEL_SPIN_NEW_CTX)
> - intel_ctx_destroy(i915, ctx);
>
> igt_spin_busywait_until_started(spin);
> igt_list_move(&spin->link, &list);
> @@ -172,6 +170,8 @@ static void spin_all(int i915, const intel_ctx_t *ctx, unsigned int flags)
> igt_assert(gem_bo_busy(i915, spin->handle));
> ahnd = spin->ahnd;
> igt_spin_end(spin);
> + if (flags & PARALLEL_SPIN_NEW_CTX)
> + intel_ctx_destroy(i915, spin->opts.ctx);
To be safe I think we should move this after gem_sync(). Anyway I am fine
with the patches now. Let's see if anyone else has comments/objections,
otherwise I can fix this up before merging.
> gem_sync(i915, spin->handle);
> igt_spin_free(i915, spin);
> put_ahnd(ahnd);
> --
> 2.25.1
>
next prev parent reply other threads:[~2022-02-19 2:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-19 1:32 [igt-dev] [PATCH i-g-t 0/2] Fix for gem_spin_batch Jasmine Newsome
2022-02-19 1:32 ` [igt-dev] [PATCH i-g-t 1/2] lib/igt_dummyload: Save spin->opts as part of the spinner Jasmine Newsome
2022-02-22 19:49 ` Dixit, Ashutosh
2022-02-19 1:32 ` [igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_spin_batch: Removing context persistence Jasmine Newsome
2022-02-19 2:39 ` Dixit, Ashutosh [this message]
2022-02-21 11:54 ` Tvrtko Ursulin
2022-02-23 15:34 ` Newsome, Jasmine
2022-02-19 2:47 ` [igt-dev] ✓ Fi.CI.BAT: success for Fix for gem_spin_batch (rev3) Patchwork
2022-02-19 20:14 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2022-02-24 0:42 [igt-dev] [PATCH i-g-t 0/2] Fix for gem_spin_batch Jasmine Newsome
2022-02-24 0:42 ` [igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_spin_batch: Removing context persistence Jasmine Newsome
2022-02-24 2:51 ` Dixit, Ashutosh
2022-02-19 0:10 [igt-dev] [PATCH i-g-t 0/2] Fix for gem_spin_batch Jasmine Newsome
2022-02-19 0:10 ` [igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_spin_batch: Removing context persistence Jasmine Newsome
2022-02-19 0:20 ` Dixit, Ashutosh
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=87h78v7f66.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jasmine.newsome@intel.com \
/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