Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 0/1] Fix the multiprocess mode of intel allocator
@ 2021-05-24 16:34 Andrzej Turko
  2021-05-24 16:34 ` [igt-dev] [PATCH i-g-t 1/1] lib/intel_allocator: Move the ioctl calls to client processes Andrzej Turko
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andrzej Turko @ 2021-05-24 16:34 UTC (permalink / raw)
  To: igt-dev

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.



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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [igt-dev] [PATCH i-g-t v2 0/1] Fix the multiprocess mode of intel allocator
@ 2021-05-26 15:43 Andrzej Turko
  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
  0 siblings, 1 reply; 7+ messages in thread
From: Andrzej Turko @ 2021-05-26 15:43 UTC (permalink / raw)
  To: igt-dev

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-05-27  6:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-24 16:34 [igt-dev] [PATCH i-g-t 0/1] Fix the multiprocess mode of intel allocator Andrzej Turko
2021-05-24 16:34 ` [igt-dev] [PATCH i-g-t 1/1] lib/intel_allocator: Move the ioctl calls to client processes Andrzej Turko
2021-05-25  6:19   ` Zbigniew Kempczyński
2021-05-24 17:31 ` [igt-dev] ✗ Fi.CI.BAT: failure for Fix the multiprocess mode of intel allocator Patchwork
2021-05-25  6:59 ` [igt-dev] [PATCH i-g-t 0/1] " Zbigniew Kempczyński
  -- strict thread matches above, loose matches on Subject: below --
2021-05-26 15:43 [igt-dev] [PATCH i-g-t v2 " Andrzej Turko
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox