From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E753EC3ABC5 for ; Thu, 8 May 2025 07:19:08 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4ZtNmC3fkFz3089; Thu, 8 May 2025 17:19:07 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2a01:37:1000::53df:5f64:0" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1746688747; cv=none; b=bCDCQuAKiE0OsNvxEH7ePwGdb4SVFEZ4ZBnjCo2EVQX2SHkR9NLab1GH/fietD6B5oK91LNL6KmIzkKBwm5jaqUyAqT/aYsDyFuQuAa1xzVL0M+h0g313wQvaKsn1fJyQUzkJvhmvvnmWHfyy+d1B45YYBgppljX1WtnxswALUgAjg/5DkfWirkY9Xlolk+rW2lv2cxpBIDrseXIoycOfBx1ozjSjMCLv33dh4aPetLSCGDc0x062DFnKbDjTwcoifwYetjuYgMk8Jy/HjoVTAfSdcYqnHbQVOZxnNdpdF4SAtHJQN914MN29xyBFAe/rLiC6zIzwN6lseF+4T9CKA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1746688747; c=relaxed/relaxed; bh=Xyksvq/un7NeztXrAHApIvxEOzekyWzlS8JtLs62uPc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XnnWn2AfJI9MTja4SPWXUOYHua0ydH/ATNF5TZ+87OVpdoebU4O7Kf9o+xXw9NBkA7XnSLkeIPtczxGNPy2gYkQ4BvvlyYVaP9CLZqPZZp4qr4m38Kilg5LWUkRlRWHSjDm+aRNSTu/vMUCKKGsJhoG1ecwHFC5WuEbUZDEhs1FCfKQ7jMpOdc9AtJGi6x4+oTOsO/buBgGhuj1eQiDbmKgf30GwED5DIHP4fx/DVtLAEKg0udY4hG45z2q30Z3Xb4WVjnjxwLp8ArRu2y1T9JOlRKF/qHLwxL9x19NcLfzH+9jz6a5nju/ztCuwb2YSKU5yoS0Q7Cz2h7g/GzGGWQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=wunner.de; spf=pass (client-ip=2a01:37:1000::53df:5f64:0; helo=bmailout1.hostsharing.net; envelope-from=foo00@h08.hostsharing.net; receiver=lists.ozlabs.org) smtp.helo=bmailout1.hostsharing.net Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.helo=bmailout1.hostsharing.net (client-ip=2a01:37:1000::53df:5f64:0; helo=bmailout1.hostsharing.net; envelope-from=foo00@h08.hostsharing.net; receiver=lists.ozlabs.org) Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [IPv6:2a01:37:1000::53df:5f64:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4ZtNmB2wpdz305n for ; Thu, 8 May 2025 17:19:06 +1000 (AEST) Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id 348912C00160; Thu, 8 May 2025 09:18:40 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id F0654178299; Thu, 8 May 2025 09:18:55 +0200 (CEST) Date: Thu, 8 May 2025 09:18:55 +0200 From: Lukas Wunner To: Manivannan Sadhasivam Cc: Mahesh J Salgaonkar , Oliver O'Halloran , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof Wilczy??ski , Rob Herring , Zhou Wang , Will Deacon , Robert Richter , Alyssa Rosenzweig , Marc Zyngier , Conor Dooley , Daire McNamara , dingwei@marvell.com, cassel@kernel.org, Krishna Chaitanya Chundru , linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v4 2/5] PCI/ERR: Add support for resetting the slots in a platform specific way Message-ID: References: <20250508-pcie-reset-slot-v4-0-7050093e2b50@linaro.org> <20250508-pcie-reset-slot-v4-2-7050093e2b50@linaro.org> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250508-pcie-reset-slot-v4-2-7050093e2b50@linaro.org> On Thu, May 08, 2025 at 12:40:31PM +0530, Manivannan Sadhasivam wrote: > Some host bridge devices require resetting the slots in a platform specific > way to recover them from error conditions such as Fatal AER errors, Link > Down etc... So introduce pci_host_bridge::reset_slot callback and call it > from pcibios_reset_secondary_bus() if available. > > The 'reset_slot' callback is responsible for resetting the given slot > referenced by the 'pci_dev' pointer in a platform specific way and bring it > back to the working state if possible. If any error occurs during the slot > reset operation, relevant errno should be returned. > > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Lukas Wunner