On 11/02/2020 13:05, Chris Wilson wrote:
Quoting Tvrtko Ursulin (2020-02-11 13:00:19)
On 11/02/2020 10:37, Chris Wilson wrote:
Quoting Andi Shyti (2020-02-11 00:42:55)
Hi Chris,
On Tue, Feb 11, 2020 at 12:37:42AM +0000, Chris Wilson wrote:
The engine names are now stored inside the iterator and not as static
strings. If we wish to use them later, we need to make a copy.
But we are not using them later. Your patch just copies and frees
an array.
They are used inside an igt_info() in the child processes. Output at the
moment is quite strange.
I also don't get this - child has a copy of everything how can it not work?
A copy of what? The intel_engine_data is scoped to the for_each_engine
loop. We're leaking pointers to locations on stack, so they get
clobbered and we print garbage in %s.
I misread the the patch while glancing it as forking being done inside
the for_engine_loop.
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx