From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: igt-dev@lists.freedesktop.org, Petri Latvala <petri.latvala@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t 2/9] tests/gem_ctx_persistence: Adopt to use allocator
Date: Fri, 13 Aug 2021 13:43:38 -0700 [thread overview]
Message-ID: <87zgtlgjnp.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20210813074703.18778-3-zbigniew.kempczynski@intel.com>
On Fri, 13 Aug 2021 00:46:56 -0700, Zbigniew Kempczyński wrote:
>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
But please check and fix below.
> @@ -703,12 +739,16 @@ static void test_process(int i915)
>
> igt_fork(child, 1) {
> igt_spin_t *spin;
> + uint64_t ahnd;
>
> + intel_allocator_init();
> i915 = gem_reopen_driver(i915);
> gem_quiescent_gpu(i915);
>
> gem_context_set_persistence(i915, 0, false);
> - spin = igt_spin_new(i915, .flags = IGT_SPIN_FENCE_OUT);
> + ahnd = get_reloc_ahnd(i915, 0);
> + spin = igt_spin_new(i915, .ahnd = ahnd,
> + .flags = IGT_SPIN_FENCE_OUT);
> sendfd(sv[0], spin->out_fence);
>
> igt_list_del(&spin->link); /* prevent autocleanup */
Missing put_ahnd?
> @@ -747,12 +787,16 @@ static void test_userptr(int i915)
>
> igt_fork(child, 1) {
> igt_spin_t *spin;
> + uint64_t ahnd;
>
> + intel_allocator_init();
> i915 = gem_reopen_driver(i915);
> gem_quiescent_gpu(i915);
>
> gem_context_set_persistence(i915, 0, false);
> - spin = igt_spin_new(i915, .flags = IGT_SPIN_FENCE_OUT | IGT_SPIN_USERPTR);
> + ahnd = get_reloc_ahnd(i915, 0);
> + spin = igt_spin_new(i915, .ahnd = ahnd,
> + .flags = IGT_SPIN_FENCE_OUT | IGT_SPIN_USERPTR);
> sendfd(sv[0], spin->out_fence);
>
> igt_list_del(&spin->link); /* prevent autocleanup */
Missing put_ahnd?
> @@ -795,9 +839,12 @@ static void test_process_mixed(int pfd, const intel_ctx_cfg_t *cfg,
> for (int persists = 0; persists <= 1; persists++) {
> igt_spin_t *spin;
> const intel_ctx_t *ctx;
> + uint64_t ahnd;
>
> + intel_allocator_init();
> ctx = ctx_create_persistence(i915, cfg, persists);
> - spin = igt_spin_new(i915, .ctx = ctx,
> + ahnd = get_reloc_ahnd(i915, ctx->id);
> + spin = igt_spin_new(i915, .ahnd = ahnd, .ctx = ctx,
> .engine = engine,
> .flags = IGT_SPIN_FENCE_OUT);
Missing put_ahnd?
> static void test_processes(int i915)
> @@ -912,11 +963,15 @@ static void test_processes(int i915)
> igt_fork(child, 1) {
> igt_spin_t *spin;
> int pid;
> + uint64_t ahnd;
>
> + intel_allocator_init();
> i915 = gem_reopen_driver(i915);
> gem_context_set_persistence(i915, 0, i);
>
> - spin = igt_spin_new(i915, .flags = IGT_SPIN_FENCE_OUT);
> + ahnd = get_reloc_ahnd(i915, 0);
> + spin = igt_spin_new(i915, .ahnd = ahnd,
> + .flags = IGT_SPIN_FENCE_OUT);
> /* prevent autocleanup */
> igt_list_del(&spin->link);
Missing put_ahnd?
> @@ -1256,9 +1316,21 @@ igt_main
>
> igt_subtest("many-contexts")
> many_contexts(i915, &ctx->cfg);
> + }
> +
> + igt_subtest_group {
> + igt_fixture {
> + gem_require_contexts(i915);
> + intel_allocator_multiprocess_start();
> + }
>
> igt_subtest("smoketest")
> smoketest(i915, &ctx->cfg);
> +
> + igt_fixture {
> + intel_allocator_multiprocess_stop();
> + }
> +
Also, why are we not putting intel_allocator_multiprocess_start/stop around
the multiprocess tests above? Is that because they all do "igt_fork(child, 1)"?
At least test_processes() seems to be creating multiple child processes. Thanks.
next prev parent reply other threads:[~2021-08-13 20:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-13 7:46 [igt-dev] [PATCH i-g-t 0/9] Adopt to use allocator Zbigniew Kempczyński
2021-08-13 7:46 ` [igt-dev] [PATCH i-g-t 1/9] lib/intel_allocator: Fix argument names in declarations Zbigniew Kempczyński
2021-08-13 7:46 ` [igt-dev] [PATCH i-g-t 2/9] tests/gem_ctx_persistence: Adopt to use allocator Zbigniew Kempczyński
2021-08-13 20:43 ` Dixit, Ashutosh [this message]
2021-08-16 5:37 ` Zbigniew Kempczyński
2021-08-13 7:46 ` [igt-dev] [PATCH i-g-t 3/9] tests/gem_exec_balancer: " Zbigniew Kempczyński
2021-08-13 7:46 ` [igt-dev] [PATCH i-g-t 4/9] tests/gem_exec_big: Skip relocation part Zbigniew Kempczyński
2021-08-13 22:18 ` Dixit, Ashutosh
2021-08-16 5:42 ` Zbigniew Kempczyński
2021-08-13 7:46 ` [igt-dev] [PATCH i-g-t 5/9] tests/gem_exec_capture: Support gens without relocations Zbigniew Kempczyński
2021-08-14 1:29 ` Dixit, Ashutosh
2021-08-16 5:44 ` Zbigniew Kempczyński
2021-08-13 7:47 ` [igt-dev] [PATCH i-g-t 7/9] tests/gem_exec_flush: Adopt to no-reloc Zbigniew Kempczyński
2021-08-13 23:31 ` Dixit, Ashutosh
2021-08-13 7:47 ` [igt-dev] [PATCH i-g-t 8/9] tests/gem_exec_schedule: Adopt to use allocator Zbigniew Kempczyński
2021-08-13 7:47 ` [igt-dev] [PATCH i-g-t 9/9] HAX: remove gttfill for tgl ci Zbigniew Kempczyński
2021-08-13 10:34 ` [igt-dev] ✓ Fi.CI.IGT: success for Adopt to use allocator Patchwork
2021-08-15 19:30 ` [igt-dev] ✓ Fi.CI.BAT: success for Adopt to use allocator (rev2) Patchwork
2021-08-15 20:33 ` [igt-dev] ✓ Fi.CI.IGT: " 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=87zgtlgjnp.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=petri.latvala@intel.com \
--cc=zbigniew.kempczynski@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