summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaag Jadav <raag.jadav@intel.com>2026-10-22 10:42:30 +0530
committerDave Airlie <airlied@redhat.com>2026-11-09 19:17:59 +1000
commit1eb526467c96ddaf87791c2b3cefa9f93ff45358 (patch)
treec87a6bc77a70f144de94cc6da23f5a4a5dd5e144
parentb828d2b7326b535d2581598071875e8400b03bf7 (diff)
drm/xe/pci_error: Flush GT wedge worker before bus reset
With GT wedging now done async, make sure the wedge worker is flushed to avoid side-effects during PCI bus reset. Fixes: 13b9555ffb03 ("drm/xe/xe_pci_error: Implement PCI error recovery callbacks") Signed-off-by: Raag Jadav <raag.jadav@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patch.msgid.link/20261022051303.282805-7-raag.jadav@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com> (cherry picked from commit 0dbc1d0762bc89649aeaea98a63f6e5f786ea1b8) Signed-off-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/xe/xe_pci_error.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_pci_error.c b/drivers/gpu/drm/xe/xe_pci_error.c
index e1b9dc5f0a6d..a5c8fd67738c 100644
--- a/drivers/gpu/drm/xe/xe_pci_error.c
+++ b/drivers/gpu/drm/xe/xe_pci_error.c
@@ -30,8 +30,10 @@ static void prepare_device_for_reset(struct pci_dev *pdev)
xe_device_set_in_reset(xe);
- for_each_gt(gt, xe, id)
+ for_each_gt(gt, xe, id) {
xe_gt_declare_wedged(gt);
+ flush_work(&gt->wedge.worker);
+ }
pci_disable_device(pdev);
}