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 4240B31E0F2; Wed, 3 Dec 2025 16:24:46 +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=1764779086; cv=none; b=gfODwh9zTc+1iAjE9TiifpZlJBEJ+ZwYt1ie5Ii+G/VFGt+UPB28ibhB9xtJXs0/x77AdZGa2iPRBDNekRRzb/4VakTQ7T+lnovg2c5OSLWyh+HTZxXcgQYNZKuwA+XtbqJqz6oFjN2ulhH6V9az1gHjK50dTY7FiKQyqCCbQBU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764779086; c=relaxed/simple; bh=y9geqqRDQz1NuYUcKDh3005EnxCsEnSQBniDvdA0jP0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cmTGthRp5Qpj/byyJpEZnklHYo/bzaCvpKSVJoG/ynuDoJAVIqhneIlTohsD3yVc7Wf//pEMCvdaaOgaEbIF6OuJU3WYQ27F1EH0azfGpQLf3oJYH3gmShqKEjuN4Ltxpd4FsQk94UCTL1X4klA5OglGOGx67ZyabgJOjfPZfls= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2SPUuXAQ; 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="2SPUuXAQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17E3EC4CEF5; Wed, 3 Dec 2025 16:24:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764779085; bh=y9geqqRDQz1NuYUcKDh3005EnxCsEnSQBniDvdA0jP0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2SPUuXAQ1IOfF1na1Ft+EELWsH7wGCrYZoUGCDLiypzAbrT+0aySSaRWpnGUZHVlj hCcErK89RxNbUVcLH7fqCbHuQtPRpCkuFw5G1QnGVd8dYjmbMvP4V8uZK4Q/8x/p8B Ue2AjMmwCvHiRewh26W3CxMZ2TAdaADjOW+1oABw= 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 6.1 151/568] powerpc/eeh: Use result of error_detected() in uevent Date: Wed, 3 Dec 2025 16:22:33 +0100 Message-ID: <20251203152446.258036342@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251203152440.645416925@linuxfoundation.org> References: <20251203152440.645416925@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 6.1-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 429abaecad416..9a761f46c7b23 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