public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/1] phy: freescale: imx8m-pcie: facing pcie link-up instability
@ 2024-03-22 13:06 Marcel Ziswiler
  2024-03-22 13:06 ` [PATCH v1 1/1] phy: freescale: imx8m-pcie: fix " Marcel Ziswiler
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Marcel Ziswiler @ 2024-03-22 13:06 UTC (permalink / raw)
  To: linux-phy
  Cc: linux-imx, Lucas Stach, linux-arm-kernel, kernel, Richard Zhu,
	linux-kernel, Marcel Ziswiler, Fabio Estevam, Heiko Stuebner,
	Kishon Vijay Abraham I, Marc Kleine-Budde, Rob Herring,
	Sascha Hauer, Shawn Guo, Tim Harvey, Vinod Koul, Yang Li, imx

From: Marcel Ziswiler <marcel.ziswiler@toradex.com>


In our automated testing setup, we use Delock Mini-PCIe SATA cards [1].
While this setup has proven very stable overall we noticed upstream on
the i.MX8M Mini fails quite regularly (about 50/50) to bring up the PCIe
link while with NXP's downstream BSP 5.15.71_2.2.2 it always works. As
that old downstream stuff was quite different, I first also tried NXP's
latest downstream BSP 6.1.55_2.2.0 which from a PCIe point of view is
fairly vanilla, however, also there the PCIe link-up was not stable.
Comparing and debugging I noticed that upstream explicitly configures
the AUX_PLL_REFCLK_SEL to I_PLL_REFCLK_FROM_SYSPLL while working
downstream [2] leaving it at reset defaults of AUX_IN (PLL clock).
Unfortunately, the TRM does not mention any further details about this
register (both for the i.MX 8M Mini as well as the Plus). Maybe somebody
from NXP could further comment on this?

BTW: On the i.MX 8M Plus we have not seen any issues with PCIe with the
exact same setup which is why I left it unchanged.

[1] https://www.delock.com/produkt/95233/merkmale.html
[2] https://github.com/nxp-imx/linux-imx/blob/lf-5.15.71-2.2.0/drivers/pci/controller/dwc/pci-imx6.c#L1548


Marcel Ziswiler (1):
  phy: freescale: imx8m-pcie: fix pcie link-up instability

 drivers/phy/freescale/phy-fsl-imx8m-pcie.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--
2.44.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-04-15 20:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22 13:06 [PATCH v1 0/1] phy: freescale: imx8m-pcie: facing pcie link-up instability Marcel Ziswiler
2024-03-22 13:06 ` [PATCH v1 1/1] phy: freescale: imx8m-pcie: fix " Marcel Ziswiler
2024-03-25  3:33   ` Hongxing Zhu
2024-04-06  6:28   ` Vinod Koul
2024-04-06  6:30   ` Vinod Koul
2024-03-22 16:29 ` [PATCH v1 0/1] phy: freescale: imx8m-pcie: facing " Fabio Estevam
2024-04-06  9:18 ` Vinod Koul
2024-04-07 22:22   ` Marcel Ziswiler
2024-04-12 11:24     ` Vinod Koul
2024-04-15 20:07       ` Marcel Ziswiler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox