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 CDCB6606A31C for ; Mon, 30 Nov 2026 09:15:55 +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=0UNUFCLA; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UBEw/6jE DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type: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=H+2eGXeIkyaBX8xukhbNqA7RqnweRy8BJMqbctpSt6M=; b=0UNUFCLASX9h0WdUNAjCo2uALD 7rUANmEqjbz0b8kuro8hR4k7YpEMPPX7O8Ifgcy7E8zkSLUZ47MSZNKg8UOHOLKCJNgfBWr/SmlU0 UONf962mcIH1gBOTiUcWW0HddlTRJOrNy5tJajI4GjsMDYOHMauh5KXGrMYdUTJUxoPaHsYrtwl5Q Idd6n9l9hk+Wk7TQ6b1tmfDHYHuBQur/4Dy7VBO3EM4WSyGsEN4UxrKMRKrLOX8bw95/QcaUl1eli DWPc6OPQ9cG/Z1ERnsWknGnFqPbU/+YnykDXBt1DQR9dGP7154SzVnexkDZA2UNE8Pjr+B19LO893 Z3oYMtpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXxU2-00000003uH0-418o; Mon, 30 Nov 2026 09:15:38 +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 1xXxU2-00000003uGr-2NxH; Mon, 30 Nov 2026 09:15:38 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 3DD074439D; Mon, 30 Nov 2026 09:15:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5BD81F00897; Mon, 30 Nov 2026 09:15:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796030138; bh=H+2eGXeIkyaBX8xukhbNqA7RqnweRy8BJMqbctpSt6M=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=UBEw/6jEFzi4aav/UqOg+JH82oa3vZraJIsdeIHzKsq2whhC0hmuoSlISLhkISq8D utCdZDzwE7tKxDChTzZGGEKHn+Df7b96FRyTaO3cIOy0tCZQ9lfdaPk+dB0/3opbY0 C/0Z40QfaZsUiBsioh3xFIQjEJQFOjQaV84hXf1oxCkQ/yzjl6u7tpJpc70m/5CJWM qmRlqEVXehPMxfDwv/xWNdYOAvSc/o5cZLwMJy/O1dCVhHVmMXEvcdjrZFOle7dnjF tmY0G/sDbnEv2HitW/mVdTrrhMGXlzrGwHD066ReHfQHgsYEmv2tEiE0CQISP0wxdi HlIqHNCvs6oCQ== Date: Mon, 30 Nov 2026 14:45:28 +0530 From: Manivannan Sadhasivam To: Shawn Lin Cc: Igor Velkov , Enrique =?utf-8?Q?Hern=C3=A1ndez?= Bello , lpieralisi@kernel.org, kwilczynski@kernel.org, bhelgaas@google.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, dlemoal@kernel.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/2] PCI: rockchip-host: Make the PERST# inactive delay configurable Message-ID: References: <20261104215848.2087944-1-ehbello@gmail.com> <20261104215848.2087944-3-ehbello@gmail.com> <179596114526.2288.5995800864070065544.b4-reply@b4> <20261129-rockchip-pcie-ltssm-order-1@iav.lv> <5b757016-3926-4123-a02b-d7348448b535@rock-chips.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5b757016-3926-4123-a02b-d7348448b535@rock-chips.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 30, 2026 at 04:40:28PM +0800, Shawn Lin wrote: > 在 2026/11/30 星期一 15:57, Manivannan Sadhasivam 写道: > > On Sun, Nov 29, 2026 at 08:20:36PM +0200, Igor Velkov wrote: > > > On 2026-11-29 19:35 +0530, Manivannan Sadhasivam wrote: > > > > Basically, I just moved the LTSSM start after PERST# deassert and increased the > > > > status check to 1s as per the spec. > > > > > > The diff does not move the start of training: rockchip_pcie_init_port() > > > already sets PCIE_CLIENT_LINK_TRAIN_ENABLE for the RC, in the > > > PCIE_CLIENT_CONFIG write before the core resets are released. The moved > > > write only sets the bit again, so the 1 s timeout is the only change. > > > > Ah, I didn't look into the implementation of rockchip_pcie_init_port(). But it > > feels super weird to start the LTSSM in two successive places without a comment > > in the code. > > > > Looking back through the git history, this appears to be a leftover from > the rework that added EP support. In practice, rockchip_pcie_init_port() > should not enable LTSSM, that call can simply be removed. The LTSSM > enable in rockchip_pcie_host_init_port() could then be moved to after > #PERST is deasserted. > Thanks for confirming. I believe Enrique can submit a patch for this. - Mani -- மணிவண்ணன் சதாசிவம்