From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796303188; b=IwXfAYSH5Wn7KKWtRBer5tPg8JvpCL8hJdhvhUMV9waNn9WWurHUZhzYfZ4R30ZN5cRZ LLyjCQEMBRt+Z/SukXto8XUSRuofMEeN0Tbp0WVY4fwBb3sBcPBPSRviXCvkqghKvSAfu oH545L/6NFUcqy3M0zWY/GVUkin/VRIdK0xhUaLP1HqWctmRwqtMpV1TTTo3l6lZDLeca +4yTaB07QsKkDICo4WtH/knu8aCMtg+53cSsX7ofvxvPJ/C5VjctGWVHrlWU7+k2AfKcE /YWfQVlO8ZpbUDlYo11/r22VATpNW79WJIDcOKTPlwUrsHBemf0QtRZv/zSYHT/JirQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796303188; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=2mN7gT2t/mJro9RU11E/95sbMIT3YIYIHualoViV5Bk=; b=RlkuuxTZm3ENlLE7xY8gtKWp+EIvuN/i5htI5VFPElir6mhuKkxbmIyK8qus//lzGfr/ 2k2H7PVKLMZo/Acg9f+5LFLSnKTQQEKmElaM71NknimaxhEg+atYvPbl6PRjKp4IPM2YY GFiFifTrkxO9iaB1koD1cHcXlLBeDZ+q3P6BMDMbf42ZZyn/UA+6Elcuo7WJuc141CQ4r QFMuXzSmphyC1vV7BMPEk/XfR6l0RdL1RiHX/AOosy+nFPz3C5ItN5MDWUXPWB9VB9yHd DGS4C9U6cgxl9jQgdJPHkgE8UZ3GEdT6dD84/vQ2KeAtbiMLwvC25j0Jcw29KkZdrRQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HV8J5WZ9; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 839DD606A333; Thu, 3 Dec 2026 13:06:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HV8J5WZ9 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-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261123121217.1107902-2-cassel@kernel.org> 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