From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BB21606A332 for ; Thu, 3 Dec 2026 13:06:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=K2nyReFA; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HV8J5WZ9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=DvXsnUT+ognXnpHsNV4Qh3sRkvb3HZZbLeuTaYpXO3Q=; b=K2nyReFA2HQmNhYmP1I37YK0Du GAqB2emejodQkjFeoqNvKKDtXI+UistLxX2i5avM3zEpX/IPuDPwNwR4Vpsjl8RNg14rzsfSulUF8 uoOLO2SBAJYoABOGQJsPmJQssEmnPSeQ8/rYnlF/ZZDpAxcI3XlEWKabzXJPcvGnM/CFIu1iLP/E1 k4MuIi5x+TwxBXeUSRZuZmDQ6wxlWcSBpm2y+FUtl8F84N/jQ5RLC7SvV/0b0dAI4huaSJAmYCGHy 9yOyaNt1F97wdTvPmP6X5WRPHobLeTppzj7Vc3blHgYY48i6RDnPI1d36GNDBXuneTMBwN5nsu2QE sTei/x6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ6W6-0000000Eg40-3xlA; Thu, 03 Dec 2026 13:06:30 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ6W5-0000000Eg2H-1hqP; Thu, 03 Dec 2026 13:06:29 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 4692B400B4; Thu, 3 Dec 2026 13:06:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5469D1F00899; Thu, 3 Dec 2026 13:06:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796303188; bh=2mN7gT2t/mJro9RU11E/95sbMIT3YIYIHualoViV5Bk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=HV8J5WZ9bhRuST0xOhLmaBHBdWsObhCCvtCijiy+FxmEIPqp6mhAiR3xvVQr2owTT IVpMaPv3SKWA0fm+EIyGOZmCzGhL6nxTN/vLldjAPfrC/gyNxwsIuy5XITqCfnpjaS ZFdU0IOU1zrWTvAepSspslZZlED+uHGzXr3LTUDLb48rNih7SElIrSELKStjG6zoNK pEJJcTjoEuo9a5BWU3mF5rvLgXS0pblWyg6xljheFZH9rMXvDA/TpoSTb8yiJQmTYL Bhk6KyS4WstFE8ws4HxFvk89Y7ZBVGwC2/CyxS5BACFvgmmizsS2e1ud5YnahPBKTa mo8SLW8z8J3bw== Date: Thu, 3 Dec 2026 14:06:23 +0100 From: Niklas Cassel To: Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , Heiko Stuebner , Wilfred Mallawa Cc: Sebastian Reichel , Shawn Lin , James Le Cuirot , stable@vger.kernel.org, Manivannan Sadhasivam , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH] PCI: dw-rockchip: Clear stale link down interrupt before unmasking it Message-ID: References: <20261123121217.1107902-2-cassel@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20261123121217.1107902-2-cassel@kernel.org> X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Mon, Nov 23, 2026 at 01:12:17PM +0100, Niklas Cassel wrote: > PCIE_LINK_REQ_RST_NOT_INT is set by smlh_req_rst_not, which according to > the RK3568 TRM "is asserted after power-on reset until first link up". > The bit is thus already pending when the driver unmasks the interrupt > after resetting the controller, both in probe and in .reset_root_port(), > so the interrupt fires as soon as it is unmasked, even though the link > is up. Since each recovery resets the controller again, this results in > an endless loop, as seen on a Quartz64 Model B (RK3566): > > pcieport 0000:00:00.0: Recovering Root Port due to Link Down > pcieport 0000:00:00.0: Root Port has been reset > pcieport 0000:00:00.0: AER: device recovery successful > pcieport 0000:00:00.0: Recovering Root Port due to Link Down > > Clear the bit before unmasking the interrupt, and in .reset_root_port() > only unmask it once the link is back up, like in probe. Also keep the > interrupt masked while .reset_root_port() resets the controller, so the > link down caused by the reset itself is not reported. > > Fixes: b376b3ff9cb0 ("PCI: dw-rockchip: Implement .reset_root_port() and use for link down") > Reported-by: James Le Cuirot > Closes: https://lore.kernel.org/linux-pci/08cc96c5171fc969b074371692e6d95d46eba60b.camel@gentoo.org/ > Cc: stable@vger.kernel.org > Signed-off-by: Niklas Cassel (snip) > base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f Ping on this patch, since it is a recent regression, it is targeting the current release 7.4 and is based on v7.4-rc4. Looking at the changes in pci/for-next, I think there might be conflicts if you try to queue it for the next release instead of the current release. Kind regards, Niklas _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip