[igt-dev] [PATCH v5 i-g-t 0/3] Fix the multiprocess mode of intel allocator

Andrzej Turko andrzej.turko at linux.intel.com
Wed Jun 16 14:01:55 UTC 2021


In the multiprocess mode all requests to the allocator are
processed in the parent. However, in certain scenarios
(for example gem_exec_capture at 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.

v5: Validate fd when opening the allocator.


Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

Andrzej Turko (3):
  lib/intel_allocator: Check validity of the file descriptor
  tests/i915/api_intel_allocator: Exercise allocator in multiprocess
    mode
  lib/intel_allocator: Move ioctl calls to client processes

 lib/intel_allocator.c            | 58 ++++++++++++++++++++++++--------
 lib/intel_allocator_random.c     | 49 ++++++++++++++-------------
 lib/intel_allocator_reloc.c      | 35 +++++++++----------
 lib/intel_allocator_simple.c     | 45 +++----------------------
 tests/i915/api_intel_allocator.c | 40 ++++++++++++++++++++++
 5 files changed, 130 insertions(+), 97 deletions(-)

-- 
2.25.1



More information about the igt-dev mailing list