drm/xe/guc: Initialize GuC ID manager sooner
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Sat, 6 Apr 2024 14:39:46 +0000 (16:39 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 8 Apr 2024 09:22:18 +0000 (11:22 +0200)
commit83787afe069ee2bc5ed4aaf6e29bdaabd06fb4db
tree51e7db13cbcd8c35d2ee134ab1fa3e60cc86f41d
parent104f7519db0a6ba4d1df1d77e4244e6f96d809ee
drm/xe/guc: Initialize GuC ID manager sooner

The GuC submission cleanup code may depend on the GuC ID manager,
thus we can't initialize it after registering a submission cleanup
action, as reverse cleanup sequence will destroy GuC ID manager
prior to a call to guc_submit_fini().

Move GuC ID manager initialization up, right after managed mutex
initialization, to have it available during guc_submit_fini().

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240406143946.979-2-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c