drm/xe/exec_queue: Prepare last fence for hw engine group resume context
authorFrancois Dugast <francois.dugast@intel.com>
Fri, 9 Aug 2024 15:51:31 +0000 (17:51 +0200)
committerMatthew Brost <matthew.brost@intel.com>
Sun, 18 Aug 2024 01:31:54 +0000 (18:31 -0700)
commit0d92cd8935a3fffbbfee0fd59cdc89ac5167b14a
treeeace304386e95f1c45b648e977f872e8bf4fff71
parent7f0d7bee2079fc899c8280e177b0c0feb8b9debe
drm/xe/exec_queue: Prepare last fence for hw engine group resume context

Ensure we can safely take a ref of the exec queue's last fence from the
context of resuming jobs from the hw engine group. The locking requirements
differ from the general case, hence the introduction of this new function.

v2: Add kernel doc, rework the code to prevent code duplication

v3: Fix kernel doc, remove now unnecessary lockdep variants (Matt Brost)

v4: Remove new put function (Matt Brost)

Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240809155156.1955925-7-francois.dugast@intel.com
drivers/gpu/drm/xe/xe_exec_queue.c
drivers/gpu/drm/xe/xe_exec_queue.h