]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe: Cancel pending TLB inval workers on teardown
authorStuart Summers <stuart.summers@intel.com>
Tue, 26 Aug 2025 18:29:04 +0000 (18:29 +0000)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 27 Aug 2025 18:48:56 +0000 (11:48 -0700)
commit76186a253a4b9eb41c5a83224c14efdf30960a71
tree94ad4c51c623fd8aeb3dc3cabf79702b46a5ca8b
parentce5059bf851b7286ec27797d786aab28c8a62e5e
drm/xe: Cancel pending TLB inval workers on teardown

Add a new _fini() routine on the GT TLB invalidation
side to handle this worker cleanup on driver teardown.

v2: Move the TLB teardown to the gt fini() routine called during
    gt_init rather than in gt_alloc. This way the GT structure stays
    alive for while we reset the TLB state.

Signed-off-by: Stuart Summers <stuart.summers@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250826182911.392550-3-stuart.summers@intel.com
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h