[Intel-gfx] [PATCH] drm/i915/selftests: Start kthreads before stopping
Matthew Auld
matthew.william.auld at gmail.com
Fri Nov 1 09:54:53 UTC 2019
On Fri, 1 Nov 2019 at 08:50, Chris Wilson <chris at chris-wilson.co.uk> wrote:
>
> An interesting observation made with our parallel selftests was that on
> our small/single cpu systems we would call kthread_stop() before the
> kthreads were spawned. If this happens, the kthread is never run at all;
> completely bypassing the test.
>
> A simple yield() from the parent will ensure that all children have the
> opportunity to start before we reap them.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Matthew Auld <matthew.auld at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
More information about the Intel-gfx
mailing list