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=1796023259; b=xf2rnnNOPbimMTvoe20mSomVNCW8MVB7aOoBB20+Ix9+HyE+pGV4oi1gm8xvRjoMyaxu x+b2556OIKSl+yn3Su4nNyA2hhcG1Ftc/qLttYbCWNsarBaIYWrs73Ym4rk5lA75mSOcy 4iuoJrtlQOg3o+wMW1eMW5Twqvcm9aMNDwLs82ujzS0X30uKedj8VOm0sm6rxiVOOHewe LDQeQ7kDgoPAOi5MX4T/jBxHjwG0MBcFJ+WsHIhXQotVecAqnTqAd7OebqnloxQqIZMyb 0+Ry7umXFyB+5l1+CSquD558IRuOOG37vgtXV0RLMF9zZl+v0SvefPcVWltSXHSljdg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796023259; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=Cu4aLJkiGS4kLf32LMz1OKBa0pJHEX8MUXzWbAog92E=; b=XJwy1126jAPW1vO2CgBvnBVo5oWofWGxIQDq/yf6XLE1Nu849pjU/exDYUcw5A8C0c1i SHAc+wUvueHL/yRYnQ/EsW3q/InLe9OwnJTLzq9DoFLANKmJGM7L6mncu6y/gP3ATQSE1 rl5qJ41SqNr4hVI2nduVb8V9ttUi2WZYHMNPlnLvjyY2Ukc0fc6llCSl3itiuZ91dbyfT RNR5/M+7DSrH8iWve4yeD/FRqkTiZlssBLtb+lseWtf+/49fBLjtblZVrCpNXcKEtdDV5 IP4LfshaVvGCehkBmdhNbrvn5/vr2llkZjbEIcnhkbZGLrueAXABFZj9jLFjyayWHlw== 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=TWilb3h+; 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 23B79606A333; Mon, 30 Nov 2026 07:20:58 +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=TWilb3h+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 703A21F000C1; Mon, 30 Nov 2026 07:20:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796023258; bh=Cu4aLJkiGS4kLf32LMz1OKBa0pJHEX8MUXzWbAog92E=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=TWilb3h+a63tiyN7wvLo19310gedYd4qXe/zHE5TafAEldFR1GESr6KHrMhEHC31K 79lmyRZ9ZxyERIbBYxdM9em4hNvAx4xQWCusegBG1FuqDaXLhPA7r8ejZwQ/saqBIq I3MuPZ5QtGQiKsykc7Zrv/4bT2L9299CSdwXFaGXweAkRtypTUfq5l9U8W6Zfn7tVu +X1meAQGy97L6DC9GK3jF0SbqtoERMEEUhS590v1hXxav9kgU+NQJAwhWB9SJuUCKR eMt4OGpYfBR+g3anIPUrkEyvTYDvyQ88ivyfK8sB0Pict8ZkOoLX2q3u98GTJLrSze vf6qAhLdRs/Kg== Date: Mon, 30 Nov 2026 12:50:49 +0530 From: Manivannan Sadhasivam To: Claudiu Beznea Cc: lpieralisi@kernel.org, kwilczynski@kernel.org, robh@kernel.org, bhelgaas@google.com, p.zabel@pengutronix.de, geert+renesas@glider.be, magnus.damm@gmail.com, claudiu.beznea@tuxon.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Claudiu Beznea , Lad Prabhakar Subject: Re: [PATCH v7 08/14] PCI: rzg3s-host: Drop nop instructions Message-ID: References: <20261019065025.2146539-1-claudiu.beznea@kernel.org> <20261019065025.2146539-9-claudiu.beznea@kernel.org> <179562566319.5580.8113747221186721413.b4-reply@b4> <452f2156-2040-4d9b-81e2-6e2b2ffe520c@kernel.org> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <452f2156-2040-4d9b-81e2-6e2b2ffe520c@kernel.org> On Thu, Nov 26, 2026 at 07:20:52PM +0200, Claudiu Beznea wrote: > > > On 11/25/26 18:54, Manivannan Sadhasivam wrote: > > On 2026-10-19 09:50 +0300, Claudiu Beznea wrote: > > > From: Claudiu Beznea > > > > > > On the RZ/G3S PCIe IP variant (which is similar to those used on the > > > RZ/G3E, RZ/V2H, and RZ/V2N SoCs), access to the PCIe Type 1 registers > > > requires setting the PCI_PERM.CFG_HWINIT_EN bit. Since this bit is not > > > set on the code paths where rzg3s_pcie_set_max_link_speed() is called, > > > the writes to PCI_EXP_LNKCTL2.TLS are nops. Drop them. > > > > > > > Shouldn't you ensure that TLS is written by setting HWINIT_EN? If not required, > > please state the reason. > The manual don't mention setting PCI_EXP_LNKCTL2.TLS when changing the link > speed. It specified this should be done through the > PCI_PCCTRL2.UI_LINK_SPEED_CHANGE instead. Steps to follow, described in [1], > chapter 34.6.3 Caution when Changing the Speed Spontaneously are: > > 1. Wait until the home node is placed in the L0 state. > 2. Read the value of the STATE_DATA_RATE_IDENTIFIER_RECEIVED bit to check the > supported speed of the other-party node. > 3. If the home node supports the speed to which the other-party node wants to > change, set the UI_LINK_SPEED_CHANGE[1:0] bits and assert the > UI_LINK_SPEED_CHANGE_REQ bit. > 4. Wait for the UI_LINK_SPEED_CHANGE_DONE bit to be asserted (wait for the > completion). > Ok, thanks for the clarification. Please state the reasoning in the commit message. - Mani -- மணிவண்ணன் சதாசிவம்