Re: [igt-dev] [PATCH i-g-t 14/15] gem_wsim: Fix prng usage

Chris Wilson
2019-05-22T16:51:24Z

Quoting Tvrtko Ursulin (2019-05-22 16:57:19)
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>
> Back when gem_wsim used forking it was safe to use the common storage
> prng, but after converting to threads it no longer is.
>
> Fix by storing and using a new per workload seed for batch buffer
> duration randomness.
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>

But I suggest squashing this with the following patch as this introduces
a variable random seed; and the next patch allows it to be
pre-determined again.
-Chris