diff options
| author | Raag Jadav <raag.jadav@intel.com> | 2026-08-19 17:05:19 +0530 |
|---|---|---|
| committer | Matt Roper <matthew.d.roper@intel.com> | 2026-08-19 09:05:52 -0700 |
| commit | 9b8234d176bb98e8612ddc4c3dbfd014219d5f6f (patch) | |
| tree | b61e1d4c01475df17f6c31709e3e9bc5f09240c8 /drivers/gpu | |
| parent | b4f95affc66ef76342c1f6bf3849f6c8ade6b9d6 (diff) | |
| download | linux-next-9b8234d176bb98e8612ddc4c3dbfd014219d5f6f.tar.gz linux-next-9b8234d176bb98e8612ddc4c3dbfd014219d5f6f.zip | |
drm/xe/pci_error: Allow debugging PCI errors
Update PCI error handling path to disconnect the device when
XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET is set. This prevents bus
reset and preserves the device state so that it is available to
the user for debugging.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
Link: https://patch.msgid.link/20260819113519.510853-1-raag.jadav@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/xe/xe_pci_error.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_pci_error.c b/drivers/gpu/drm/xe/xe_pci_error.c index fb965f52be5e..79ce0c671549 100644 --- a/drivers/gpu/drm/xe/xe_pci_error.c +++ b/drivers/gpu/drm/xe/xe_pci_error.c @@ -84,6 +84,12 @@ static pci_ers_result_t xe_pci_error_mmio_enabled(struct pci_dev *pdev) xe_info(xe, "PCI error: MMIO enabled\n"); action = xe_ras_process_errors(xe); + /* User wants to debug the error, prevent reset */ + if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET) { + xe_device_declare_wedged(xe); + return PCI_ERS_RESULT_DISCONNECT; + } + return ras_action_to_pci_result(pdev, action); } |
