drm/i915/guc: Skip cleaning up the doorbells on error-before-allocate
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Jul 2018 10:58:30 +0000 (11:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Jul 2018 13:15:39 +0000 (14:15 +0100)
commit5bfbeacf1983de58782b3aeb59b87d216091751c
treeb6b417781eb2de73cf04c2c345cec5b24e4b6dda
parent818fed4f25bbfa729096d2adcdc779c52c932fa7
drm/i915/guc: Skip cleaning up the doorbells on error-before-allocate

If we fail the module load, we may try and cleanup before we even
allocate the GuC clients. KISS in order to try and re-enable
drv_module_reload for BAT.

Testcase: igt/drv_module_reload/basic-reload-inject
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180712105830.20390-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_guc_submission.c