Re: [PATCH v7 08/14] PCI: rzg3s-host: Drop nop instructions
From: Manivannan Sadhasivam
Date: Mon Nov 30 2026 - 02:21:09 EST
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 <claudiu.beznea.uj@xxxxxxxxxxxxxx>
> > >
> > > 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
--
மணிவண்ணன் சதாசிவம்