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

2022-09-15 Thread Janusz Krzysztofik
Hi Matt, On Thursday, 15 September 2022 00:04:24 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

[PATCH 1/4] drm/i915/gt: Cleanup partial engine discovery failures

2022-09-14 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. Signed-off-by: Chris Wilson Cc: Ja