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

Andrzej Turko andrzej.turko at linux.intel.com
Mon May 24 16:34:28 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.



Andrzej Turko (1):
  lib/intel_allocator: Move the ioctl calls to client processes

 lib/intel_allocator.c        | 51 ++++++++++++++++++++++++++----------
 lib/intel_allocator_random.c | 28 ++++++++------------
 lib/intel_allocator_reloc.c  | 20 ++++----------
 lib/intel_allocator_simple.c | 44 ++++---------------------------
 4 files changed, 58 insertions(+), 85 deletions(-)

-- 
2.25.1



More information about the igt-dev mailing list