Hi igor,
Thank you very mush for your reply.
I'm debugging the pci source, but it's recognized as Gen2 with the lspci -vv command.
How can I limit PCIe and fix it to Gen1 ?
(* I can't use any other kernel version because the external WLAN chip driver specifies kernel 4.14.78.)
About fsl-imx8mq.dtsi, whether max-link-speed is <2> or <1>, the result of "lspi -vv" is always Gen2.
Next, I checked how to judge Gen1 or Gen2 when starting kernel.
In pci-imx6.c, Link up GenX is calculated from the following values by the formula "(value >> 16) & 0xf".
imx6q-pcie 33c00000.pcie: *** [PCIE_RC_LCR ]: Link up, Gen1 (0x0071CC12)
imx6q-pcie 33c00000.pcie: *** [PCIE_RC_LCSR]: Link up, Gen2 (0x30120000)
PCIE_RC_LCR : (0x007 '1' CC12) --> Gen'1'
PCIE_RC_LCSR: (0x301 '2' 0000) --> Gen'2'
About PCIE_RC_LCR, any value can be written, but it does not affect the result of lspci -vv.
About PCIE_RC_LCSR, I thought I could make it Gen1 by writing (0x301 '1 '0000), but it seems it can't edit.
The value of PCIE_RC_LCSR (0x30120000) is fixed when pci_imx_ltssm_enable() is executed in imx_pcie_establish_link().
I don't know how to launch it as Gen1 here.
Best Regards,
Kawahata