mirror of
https://github.com/torvalds/linux.git
synced 2026-11-13 05:04:29 +01:00
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>
This commit is contained in:
parent
b4f95affc6
commit
9b8234d176
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user