From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_exec_parallel: Add 48b flag to execbuf
Date: Wed, 23 Mar 2022 17:48:40 +0100 [thread overview]
Message-ID: <YjtPaP1SE6sdvQLt@kamilkon-DESK1> (raw)
In-Reply-To: <20220323130653.65094-3-zbigniew.kempczynski@intel.com>
Hi Zbigniew,
Dnia 2022-03-23 at 14:06:53 +0100, Zbigniew Kempczyński napisał(a):
> On dg2 and beyond safe alignment is bigger than on integrated so we
> can enter offset range >= 2^32. Add execbuf flag which allows using
> such offsets.
>
See note at 1/2 patch, maybe you can improve description.
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> ---
> tests/i915/gem_exec_parallel.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c
> index 36bf5f742e..1dfbaa2411 100644
> --- a/tests/i915/gem_exec_parallel.c
> +++ b/tests/i915/gem_exec_parallel.c
> @@ -150,9 +150,10 @@ static void *thread(void *data)
> batch[++i] = offset + 4*t->id;
> batch[++i] = offset >> 32;
> obj[0].offset = offset;
> - obj[0].flags |= EXEC_OBJECT_PINNED | EXEC_OBJECT_WRITE;
> + obj[0].flags |= EXEC_OBJECT_PINNED | EXEC_OBJECT_WRITE |
> + EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
> obj[1].offset = get_offset(t->ahnd, obj[1].handle, 4096, 0);
> - obj[1].flags |= EXEC_OBJECT_PINNED;
> + obj[1].flags |= EXEC_OBJECT_PINNED | EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
> gem_write(fd, obj[1].handle, 0, batch, sizeof(batch));
> }
>
> --
> 2.32.0
>
next prev parent reply other threads:[~2022-03-23 16:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-23 13:06 [igt-dev] [PATCH i-g-t 0/2] Add missing 48b flag to execbuf Zbigniew Kempczyński
2022-03-23 13:06 ` [igt-dev] [PATCH i-g-t 1/2] tests/i915/gem_exec_suspend: Add 48b exec flag for execbuf Zbigniew Kempczyński
2022-03-23 16:46 ` Kamil Konieczny
2022-03-23 17:38 ` Zbigniew Kempczyński
2022-03-23 13:06 ` [igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_exec_parallel: Add 48b flag to execbuf Zbigniew Kempczyński
2022-03-23 16:48 ` Kamil Konieczny [this message]
2022-03-23 14:14 ` [igt-dev] ✓ Fi.CI.BAT: success for Add missing " Patchwork
2022-03-23 16:11 ` [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=YjtPaP1SE6sdvQLt@kamilkon-DESK1 \
--to=kamil.konieczny@linux.intel.com \
--cc=igt-dev@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