]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/hw_engine_group: Add helper to suspend faulting LR jobs
authorFrancois Dugast <francois.dugast@intel.com>
Fri, 9 Aug 2024 15:51:29 +0000 (17:51 +0200)
committerMatthew Brost <matthew.brost@intel.com>
Sun, 18 Aug 2024 01:31:52 +0000 (18:31 -0700)
commit53fdfa19e6a9220a14c0bb21273880774ea70dbd
tree464086b37f8a7d01c0c6a6114614b763ef22b4ba
parent7970cb36966c9b9183255dc097ae0446300eebcf
drm/xe/hw_engine_group: Add helper to suspend faulting LR jobs

This is a required feature for dma fence jobs to preempt faulting long
running jobs in order to ensure mutual exclusion on a given hw engine
group.

v2: Pipeline calls to suspend(q) and suspend_wait(q) to improve
    efficiency, switch to lockdep_assert_held_write (Matt Brost)

v3: Return error on suspend_wait failure to propagate on the call stack
    up to IOCTL (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-5-francois.dugast@intel.com
drivers/gpu/drm/xe/xe_hw_engine_group.c