From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/1] tests/gem_sync: Use softpin path for no-reloc gens
Date: Tue, 02 Nov 2021 12:40:14 -0700 [thread overview]
Message-ID: <87zgqml529.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20211102083941.9644-2-zbigniew.kempczynski@intel.com>
On Tue, 02 Nov 2021 01:39:41 -0700, Zbigniew Kempczyński wrote:
>
> Migrate to softpin with pre-warming batch or an allocator. Some tests
> which don't fork can use pre-warming batch which establishes offsets in
> the kernel before real work is performed. For such adding pinned flag
> + zeroing relocation is enough. For multiprocess scenarios we need to
> arbitrate and an allocator need to be used instead.
>
> v2: fix also tests which are not running on CI (Ashutosh)
>
> v3: use appropriate allocator handle (ahnd) within active_wakeup_ring
> spinners (Ashutosh)
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
One question below though.
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
> ---
> tests/i915/gem_sync.c | 59 ++++++++++++++++++++++++++++++++++++++++---
> 1 file changed, 55 insertions(+), 4 deletions(-)
>
> diff --git a/tests/i915/gem_sync.c b/tests/i915/gem_sync.c
> index 0093ca25f..8c435845e 100644
> --- a/tests/i915/gem_sync.c
> +++ b/tests/i915/gem_sync.c
> @@ -237,6 +237,7 @@ wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,
> int timeout, int wlen)
> {
> struct intel_engine_data ied;
> + uint64_t ahnd = get_reloc_ahnd(fd, ctx->id);
Is this really needed in the parent even when they are only used in the
child processes? This pattern is used everywhere in this patch. Is this a
requirement of the allocator API? Thanks.
next prev parent reply other threads:[~2021-11-02 19:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-02 8:39 [igt-dev] [PATCH i-g-t 0/1] Add no-reloc path in gem_sync Zbigniew Kempczyński
2021-11-02 8:39 ` [igt-dev] [PATCH i-g-t 1/1] tests/gem_sync: Use softpin path for no-reloc gens Zbigniew Kempczyński
2021-11-02 19:40 ` Dixit, Ashutosh [this message]
2021-11-03 7:51 ` Zbigniew Kempczyński
2021-11-02 9:22 ` [igt-dev] ✗ Fi.CI.BAT: failure for Add no-reloc path in gem_sync Patchwork
2021-11-02 9:51 ` Zbigniew Kempczyński
2021-11-02 16:00 ` Vudum, Lakshminarayana
2021-11-02 13:44 ` [igt-dev] ✓ Fi.CI.BAT: success for Add no-reloc path in gem_sync (rev2) Patchwork
2021-11-02 16:08 ` [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=87zgqml529.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--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