Re: [PATCH] drm/i915/selftests: Start kthreads before stopping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 1 Nov 2019 at 08:50, Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxx>
> Cc: Matthew Auld <matthew.auld@xxxxxxxxx>
Reviewed-by: Matthew Auld <matthew.auld@xxxxxxxxx>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux