From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01FE934D3B5; Wed, 3 Dec 2025 16:02:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764777754; cv=none; b=uwwUrXN12g7RuYUt9bgVxhd77/ktVUf1tuBF+6iinQLYD79YPONlDP+1+LP9GLXriUHNpd+/AmCBlRcMIEsOI+6bUEj8CP9OwnJkexBWkNC9p5KbEW/7A+zHMardiPhRilo+kopkKg5vpi+FR26/DgNHrhi8gWkKCMOdOtWsRZ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764777754; c=relaxed/simple; bh=vnQGA7ev2Ltrt3hVPelcb0yjpTZl2eDiGXYSPfu0KAI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fBHV/r/plkjaeG70/7kS6WNdfGuvY8ogoUq5CJrHk20/HgZa9IRmbBiGhpH9LgSHsX9nauvFVK9pXoG2iDgPrPnoDpD6hwI+uml2zAHmg7D0kmrWiCpr5FgecIsM3fhRZ2cLCvqirVc0JaWAfH9WxpLgJzPPexpAQ2EvaDhc4gY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KSUl7G+Y; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KSUl7G+Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81896C4CEF5; Wed, 3 Dec 2025 16:02:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764777753; bh=vnQGA7ev2Ltrt3hVPelcb0yjpTZl2eDiGXYSPfu0KAI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KSUl7G+YQjEBXlDPBzoVWD1XYC/Lv65fz7VdPcsVSYXOcM5ultXP9Ohb/Ux+Ml/PR JMSbKeIH7KN4u2IA+YyLAvKavmXMH45eEW3rymFEn+LWXzXN4v93N0PupSiPQ8zR0C WbK+q7NWHAMNdi4dy3kvX2JLQ3LutXoteI356ZYs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Lukas Wunner , Niklas Schnelle , Bjorn Helgaas , Kuppuswamy Sathyanarayanan , Mahesh Salgaonkar , Sasha Levin Subject: [PATCH 5.15 104/392] powerpc/eeh: Use result of error_detected() in uevent Date: Wed, 3 Dec 2025 16:24:14 +0100 Message-ID: <20251203152417.926062783@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251203152414.082328008@linuxfoundation.org> References: <20251203152414.082328008@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Niklas Schnelle [ Upstream commit 704e5dd1c02371dfc7d22e1520102b197a3b628b ] Ever since uevent support was added for AER and EEH with commit 856e1eb9bdd4 ("PCI/AER: Add uevents in AER and EEH error/resume"), it reported PCI_ERS_RESULT_NONE as uevent when recovery begins. Commit 7b42d97e99d3 ("PCI/ERR: Always report current recovery status for udev") subsequently amended AER to report the actual return value of error_detected(). Make the same change to EEH to align it with AER and s390. Suggested-by: Lukas Wunner Link: https://lore.kernel.org/linux-pci/aIp6LiKJor9KLVpv@wunner.de/ Signed-off-by: Niklas Schnelle Signed-off-by: Bjorn Helgaas Reviewed-by: Lukas Wunner Reviewed-by: Kuppuswamy Sathyanarayanan Acked-by: Mahesh Salgaonkar Link: https://patch.msgid.link/20250807-add_err_uevents-v5-3-adf85b0620b0@linux.ibm.com Signed-off-by: Sasha Levin --- 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 ed5be1bff60ca..2f13d906e1fcb 100644 --- a/arch/powerpc/kernel/eeh_driver.c +++ b/arch/powerpc/kernel/eeh_driver.c @@ -335,7 +335,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