From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=136.143.169.15 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795976488; b=E1rGLacKWyLHwn3PBR+HHeHGa4IR0qKV0WOgh1Lpm8LIlZEMNUD4xcFmI/QZ9drLAa3p nAWHSpxVamDFkc/YcuLVEsnCrgHgMwzXhW0AFW/uqIzWwanaUcduLak2uRpeOc/KZ3jZl 00aOUuxJ3EBHiz+jyeioKI1bcf4N8cFyRFdLkanLcap88WPNaPHDpymYXoOBtoYwzu6VL KO06XdLEy19ZzQQgdJ9ic08K+dfT9YDf9Kfu9qp7yXSJ5jK82e6OWZHkjJ4Xbj17F05Zw 4CCGrXxjfQ9p0MUsz/Rd2tQKq3JGkUFLm4OX5VRAuOXy+lRJsFN4h9pdVRiCUISOMNQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795976488; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=CHosJ+ehSyuIlKS5CkFkkkpdhIA53nv3qpjreEaDKUY=; b=cPZ8YAH/u+mjTy0V/HnK7OYOjajqJaGBvCBoodZaT681MrIBSILBJnfcnyXoPXUM8cB8 WATnIKKJhWhwDehSdYuNsILuGoT44XhjdGjzy1rVmLgwo/xZICy+iJYqPAKHh3jPIO4ob tI1eA/OfNHaShOs2yj2joANnNUHRt/aF1w2bIn4RYj6LGCFgzF/WggSummsbO23Vi3Mn2 Xi8ZkVa4Hg7oaP5loD0L/LFbBF2RVXa6apZu2gNvgzGmWSbWDZGlk2RS3ul/fRnJqwEOt D8At1VViWL/7vo5Rw7b7uvZ1Gk28KVTJVdzlttaVe//dubDcxcFwLXmuzXHCAy8MQLQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=iav.lv; spf=pass smtp.mailfrom=iav.lv; dkim=pass header.d=iav.lv header.i=@iav.lv header.a=rsa-sha256 header.s=zoho header.b=Zohj1vEw; arc=pass header.oldest-pass=0 smtp.remote-ip=136.143.169.15 Received: from sender-op-o15.zoho.eu (sender-op-o15.zoho.eu [136.143.169.15]) (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 333F8606A31C; Sun, 29 Nov 2026 18:21:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 333F8606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iav.lv Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iav.lv Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=iav.lv header.i=@iav.lv header.a=rsa-sha256 header.s=zoho header.b=Zohj1vEw ARC-Seal: i=1; a=rsa-sha256; t=1795976440; cv=none; d=zohomail.eu; s=zohoarc; b=FzTdP6i8S6LpW5J0GBHPz0EbN4BeP0yP5bsv+gW/hXklwOtslcMvBOVCZZ53jvN6M7/GPbcw/Lnj3wflqw527qozCXiV38JIlIF0OhrQ3YlqQAHcyp2l3/ufwWqKXNsPVffwvJHK7yPVxnA7tclIAdV40bpPtfnkVltZE8JxDbw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1795976440; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=CHosJ+ehSyuIlKS5CkFkkkpdhIA53nv3qpjreEaDKUY=; b=lEKnYPoX0rqyBfoWSy4NAUbrR3lo5KXHNU6PXTnIGgGhTIcajyjO5vFvDEWnHSydRUGAbyGzsrlM7bChoKJoxwYX55HR6E1baGzBKmVKmUcWigB/ml1qsMic3FIX6IMf4l8iXJokFOpxJVYOxiIy0cszYxunmVp3UvUBfJ2JDXY= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=iav.lv; spf=pass smtp.mailfrom=iav@iav.lv; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=Zohj1vEwkjuTi519MB91VJwKiDvuGcT6WIifSQZF0+foJkfGUvlZ2DBTWGYcDltFLCzcdHLtSOOANKGCdFCDsi7gCiHwhu03CHGXENIiOH9ASHAguA5Bqr5k2plqVCIOavE9oVa6fYcohIQqfwX331R9q3pkRgdPuwIOeqWOUyY=; c=relaxed/relaxed; s=zoho; d=iav.lv; v=1; bh=CHosJ+ehSyuIlKS5CkFkkkpdhIA53nv3qpjreEaDKUY=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zoho.eu with SMTPS id 1795976437952383.2108449917009; Sun, 29 Nov 2026 19:20:37 +0100 (CET) Date: Sun, 29 Nov 2026 20:20:36 +0200 From: Igor Velkov To: Manivannan Sadhasivam Cc: Enrique Hernández Bello , shawn.lin@rock-chips.com, lpieralisi@kernel.org, kwilczynski@kernel.org, mani@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, Igor Velkov Subject: Re: [PATCH v5 2/2] PCI: rockchip-host: Make the PERST# inactive delay configurable Message-ID: <20261129-rockchip-pcie-ltssm-order-1@iav.lv> In-Reply-To: <179596114526.2288.5995800864070065544.b4-reply@b4> References: <20261104215848.2087944-1-ehbello@gmail.com> <20261104215848.2087944-3-ehbello@gmail.com> <179596114526.2288.5995800864070065544.b4-reply@b4> X-Mailing-List: linux-kernel@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=utf-8 Content-Transfer-Encoding: 8bit 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. To start training after PERST#, init_port() would have to clear the bit for the RC (PCIE_CLIENT_LINK_TRAIN_DISABLE). Enrique, a test on the ROCK Pi 4C that needs no register change: move msleep(PCIE_T_PVPERL_MS) to before rockchip_pcie_init_port(). The pulse stays ~100 ms, but training starts only just before PERST# is released. -- Igor Velkov