Skip to content

Fix the multiprocess mode of intel allocator

Andrzej Turko igt-dev 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 3 repliesIn review
  2. v53 patches 0 repliesSuperseded
  3. v4 posting 2/23 patches 3 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v4 posting 1/21 of 3 patches0 repliesSuperseded
v33 patches0 repliesSuperseded
v21 patch1 replySuperseded
v11 patch2 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tests/i915/api_intel_allocator: Exercise allocator in multiprocess modetests/i915/api_intel_allocator.c+40 -01 reply
2/2lib/intel_allocator: Move ioctl calls to client processeslib/intel_allocator.c lib/intel_allocator_random.c lib/intel_allocator_reloc.c +1 more+79 -991 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchZbigniew Kempczyński
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [igt-dev] [PATCH v6 i-g-t 0/2] Fix the multiprocess mode of intel allocator

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 series 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.

v5: Validate fd when opening the allocator.

Cc Zbigniew Kempczyński <[email protected]>

Andrzej Turko (2):
tests/i915/api_intel_allocator: Exercise allocator in multiprocess
mode
lib/intel_allocator: Move ioctl calls to client processes

 lib/intel_allocator.c            | 51 ++++++++++++++++++++++----------
 lib/intel_allocator_random.c     | 47 +++++++++++++++--------------
 lib/intel_allocator_reloc.c      | 35 ++++++++++------------
 lib/intel_allocator_simple.c     | 45 ++++------------------------
 tests/i915/api_intel_allocator.c | 40 +++++++++++++++++++++++++
 5 files changed, 119 insertions(+), 99 deletions(-)
Signature · 6 lines
2.25.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev