From: Andrzej Turko <andrzej.turko@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v2 0/1] Fix the multiprocess mode of intel allocator
Date: Wed, 26 May 2021 17:43:10 +0200 [thread overview]
Message-ID: <20210526154311.3591-1-andrzej.turko@linux.intel.com> (raw)
In the multiprocess mode all requests to the allocator are
processed in the parent. However, in certain scenarios
(for example gem_exec_capture@pi), a child process may want
to create an allocator instance using its own private file
desriptor. Thus all ioctls used to determine available gtt size
must be called in the child process and not in the parent.
This patch implements the above change.
v2: Test allocators for private and shared contexts in
multiprocess mode.
Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Andrzej Turko (1):
lib/intel_allocator: Move the ioctl calls to client processes
lib/intel_allocator.c | 51 +++++++++++++++++++++++---------
lib/intel_allocator_random.c | 27 +++++++----------
lib/intel_allocator_reloc.c | 20 ++++---------
lib/intel_allocator_simple.c | 44 ++++-----------------------
tests/i915/api_intel_allocator.c | 47 +++++++++++++++++++++++++++++
5 files changed, 104 insertions(+), 85 deletions(-)
--
2.25.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next reply other threads:[~2021-05-26 15:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-26 15:43 Andrzej Turko [this message]
2021-05-26 15:43 ` [igt-dev] [PATCH i-g-t 1/1] lib/intel_allocator: Move the ioctl calls to client processes Andrzej Turko
2021-05-27 6:58 ` Zbigniew Kempczyński
2021-05-26 16:17 ` [igt-dev] ✗ Fi.CI.BAT: failure for Fix the multiprocess mode of intel allocator (rev2) 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=20210526154311.3591-1-andrzej.turko@linux.intel.com \
--to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox