From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Andrzej Turko <andrzej.turko@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] tests/gem_exec_store: Support gens without relocations
Date: Tue, 29 Mar 2022 23:08:11 -0700 [thread overview]
Message-ID: <87h77g6khg.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20210810191425.8391-2-andrzej.turko@linux.intel.com>
On Tue, 10 Aug 2021 12:14:24 -0700, Andrzej Turko wrote:
>
> @@ -213,24 +257,41 @@ static void store_all(int fd, const intel_ctx_t *ctx)
> execbuf.flags |= I915_EXEC_SECURE;
> execbuf.rsvd1 = ctx->id;
>
> + ahnd = intel_allocator_open(fd, ctx->id, INTEL_ALLOCATOR_SIMPLE);
> +
> memset(obj, 0, sizeof(obj));
> obj[0].handle = gem_create(fd, nengine*sizeof(uint32_t));
> + obj[0].offset = intel_allocator_alloc(ahnd, obj[0].handle,
> + nengine*sizeof(uint32_t), ALIGNMENT);
> + obj[0].flags = EXEC_OBJECT_SUPPORTS_48B_ADDRESS | EXEC_OBJECT_WRITE;
> + obj[0].offset = CANONICAL(obj[0].offset);
> obj[1].handle = gem_create(fd, 2*nengine*sizeof(batch));
> - obj[1].relocation_count = 1;
> + obj[1].offset = intel_allocator_alloc(ahnd, obj[1].handle,
> + nengine*sizeof(uint32_t), ALIGNMENT);
Is this correct, or should the size argument be 2*nengine*sizeof(batch)
(instead of nengine*sizeof(uint32_t))?
> + obj[1].offset = CANONICAL(obj[1].offset);
> + obj[1].flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
next prev parent reply other threads:[~2022-03-30 6:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-10 19:14 [igt-dev] [PATCH i-g-t 0/2] Keep tests working without relocations Andrzej Turko
2021-08-10 19:14 ` [igt-dev] [PATCH i-g-t 1/2] tests/gem_exec_store: Support gens " Andrzej Turko
2021-08-11 7:26 ` Zbigniew Kempczyński
2022-03-30 6:08 ` Dixit, Ashutosh [this message]
2022-03-31 6:54 ` Zbigniew Kempczyński
2021-08-10 19:14 ` [igt-dev] [PATCH i-g-t 2/2] tests/gem_softpin: Exercise eviction with softpinning Andrzej Turko
2021-08-11 7:28 ` Zbigniew Kempczyński
2021-08-10 20:10 ` [igt-dev] ✓ Fi.CI.BAT: success for Keep tests working without relocations (rev9) Patchwork
2021-08-11 0:57 ` [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=87h77g6khg.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=andrzej.turko@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.