es; this makes the initial event consistent. - Aligns cross-arch semantics: Consistent uevent reporting across AER, EEH, and s390 reduces user space special-casing and potential errors. Potential side effects and why acceptable - For drivers returning `PCI_ERS_RESULT_DISCONNECT` at `error_detected()`, user space will now see `FAILED_RECOVERY` immediately instead of a misleading `BEGIN_RECOVERY`. This is a correctness fix. - For returns like `PCI_ERS_RESULT_NEED_RESET`, no initial uevent is emitted (consistent with AER); user space will still receive final RECOVERED/FAILED, as today. Any scripts that strictly expected an initial BEGIN_RECOVERY for all cases are already inconsistent with AER and should not rely on that behavior. Historical context - Uevent support was added by 856e1eb9bdd4 (“PCI/AER: Add uevents in AER and EEH error/resume”), initially emitting `NONE` at error detection for both AER and EEH. - AER was corrected by 7b42d97e99d3 (“PCI/ERR: Always report current recovery status for udev”) to emit the actual `error_detected()` result. - This patch brings EEH to parity with that established AER behavior. Conclusion - This is a targeted, low-risk correctness fix that improves user space observability and cross-arch consistency without changing kernel-side recovery logic. It fits stable backport rules (important bugfix, minimal change, low regression risk, confined to a subsystem). arch/powerpc/kernel/eeh_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/eeh_driver.c b/arch/powerpc/kernel/eeh_driver.c index 48ad0116f3590..ef78ff77cf8f2 100644 --- a/arch/powerpc/kernel/eeh_driver.c +++ b/arch/powerpc/kernel/eeh_driver.c @@ -334,7 +334,7 @@ static enum pci_ers_result eeh_report_error(struct eeh_dev *edev, rc = driver->err_handler->error_detected(pdev, pci_channel_io_frozen); edev->in_error = true; - pci_uevent_ers(pdev, PCI_ERS_RESULT_NONE); + pci_uevent_ers(pdev, rc); return rc; } -- 2.51.0[PATCH AUTOSEL 6.17-5.4] powerpc/eeh: Use result of error_detected() in ueventSasha Levin undefinedpatches@lists.linux.dev, stable@vger.kernel.org undefined undefined undefined undefined undefined undefined undefined undefined'G