Daniele Ceraolo Spurio 923e423817 drm/xe: split kernel vs permanent engine flags
If an engine is only destroyed on driver unload, we can skip its
clean-up steps with the GuC because the GuC is going to be tuned off as
well, so it doesn't matter if we're in sync with it or not. Currently,
we apply this optimization to all engines marked as kernel, but this
stops us to supporting kernel engines that don't stick around until
unload. To remove this limitation, add a separate flag to indicate if
the engine is expected to only be destryed on driver unload and use that
to trigger the optimzation.

While at it, add a small comment to explain what each engine flag
represents.

v2: s/XE_BUG_ON/XE_WARN_ON, s/ENGINE/EXEC_QUEUE
v3: rebased

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20230822173334.1664332-3-daniele.ceraolospurio@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2023-12-21 11:40:27 -05:00
..
2023-12-08 16:27:00 +10:00
2023-11-27 13:56:32 -06:00
2023-11-27 13:56:32 -06:00
2023-11-27 13:56:32 -06:00
2023-11-15 10:56:44 +01:00
2023-11-03 15:44:25 -10:00
2023-12-08 16:27:00 +10:00
2023-11-28 15:32:24 +01:00
2023-11-27 13:56:32 -06:00
2023-12-04 09:42:32 +01:00
2023-12-08 16:27:00 +10:00
2023-11-28 11:55:56 +01:00