Re: [Intel-gfx] [PATCH v2 1/4] drm/i915/gt: Cleanup partial engine discovery failures

2022-09-16 Thread Janusz Krzysztofik
On Friday, 16 September 2022 01:26:51 CEST Matt Roper wrote: > From: Chris Wilson > > If we abort driver initialisation in the middle of gt/engine discovery, > some engines will be fully setup and some not. Those incompletely setup > engines only have 'engine->release == NULL' and so will leak an

[Intel-gfx] [PATCH v2 1/4] drm/i915/gt: Cleanup partial engine discovery failures

2022-09-15 Thread Matt Roper
From: Chris Wilson If we abort driver initialisation in the middle of gt/engine discovery, some engines will be fully setup and some not. Those incompletely setup engines only have 'engine->release == NULL' and so will leak any of the common objects allocated. v2: - Drop the destroy_pinned_cont