[igt-dev] [PATCH i-g-t v21 32/35] tests/gem_ppgtt: Adopt test to use intel_bb with allocator

Chris Wilson chris at chris-wilson.co.uk
Fri Mar 5 15:00:09 UTC 2021


Quoting Zbigniew Kempczyński (2021-03-01 16:14:00)
> Tests work in multiprocess environment so we must turn on/off
> thread in parent process which is responsible for allocations.
> 
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>  tests/i915/gem_ppgtt.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/tests/i915/gem_ppgtt.c b/tests/i915/gem_ppgtt.c
> index 5f8b34224..678a63498 100644
> --- a/tests/i915/gem_ppgtt.c
> +++ b/tests/i915/gem_ppgtt.c
> @@ -283,10 +283,13 @@ igt_main
>                 rcs = calloc(sizeof(*rcs), nchild);
>                 igt_assert(rcs);
>  
> +               intel_allocator_multiprocess_start();

Can we use child_pid to warn when an allocator is used in a child?

But here the allocator is not shared between children, as each child
will have their own set of ppGTT to play with.

What am I missing?
-Chris


More information about the igt-dev mailing list