From: Andrzej Turko <andrzej.turko@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v3 0/3] Fix the multiprocess mode of intel allocator
Date: Thu, 27 May 2021 21:27:47 +0200 [thread overview]
Message-ID: <20210527192750.6453-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.
v3: Prepare all allocator implementations for supporting
region-based memory management.
Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Andrzej Turko (3):
tests/i915/api_intel_allocator: Exercise allocator in multiprocess
mode
lib/intel_allocator: Move the ioctl calls to client processes
lib/intel_allocator: Add support for regions of allocation
lib/intel_allocator.c | 54 +++++++++++++++++++++++---------
lib/intel_allocator_random.c | 44 +++++++++++++-------------
lib/intel_allocator_reloc.c | 35 +++++++++------------
lib/intel_allocator_simple.c | 45 +++-----------------------
tests/i915/api_intel_allocator.c | 47 +++++++++++++++++++++++++++
5 files changed, 129 insertions(+), 96 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-27 19:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-27 19:27 Andrzej Turko [this message]
2021-05-27 19:27 ` [igt-dev] [PATCH i-g-t 1/3] tests/i915/api_intel_allocator: Exercise allocator in multiprocess mode Andrzej Turko
2021-05-27 19:27 ` [igt-dev] [PATCH i-g-t 2/3] lib/intel_allocator: Move the ioctl calls to client processes Andrzej Turko
2021-05-27 19:27 ` [igt-dev] [PATCH i-g-t 3/3] lib/intel_allocator: Add support for regions of allocation Andrzej Turko
2021-05-27 20:58 ` [igt-dev] ✗ GitLab.Pipeline: warning for Fix the multiprocess mode of intel allocator (rev3) Patchwork
2021-05-27 21:14 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2021-05-28 18:52 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=20210527192750.6453-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 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.