I am having issues with PCIe on a Rev D I.MX7 dual sabresd development board. I am trying to use a pcie NIC, but can't get PCIe to work (with or without the card inserted). During boot I see the following:
imx6q-pcie 33800000.pcie: phy link never came up
imx6q-pcie 33800000.pcie: failed to initialize host
imx6q-pcie: probe of 33800000.pcie failed with error -22
I have enabled PCI in the Linux configuration (it isn't enabled by default).
I am using Linux built from source from git://git.freescale.com/imx/linux-2.6-imx.git, revision 77f61547834c4f127b44b13e43c59133a35880dc. I’m using the imx7d-sdb.dtb. I’ve attached my .config as well.
Has anyone seen this issue before? Can someone attempt to recreate the issue I'm seeing to rule out hardware issues? Thank you for your help in advanced
-Ryan
Original Attachment has been moved to: linux.config.zip
已解决! 转到解答。
Hi Ryan (ryanschaefer),
BTW, the StarTech 10G card (and Intel x550 card) use PCIe x4 connection, and the miniPCIe to FullSize PCIe adapter supports only PCIe x1 Connections.
Cheers,
Glen
Hi Ryan
please check that Linux 4.1.15_1.2.0 BSP used (only this release was tested for i.MX7D Sabre)
http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/?id=rel_imx_4.1.15_1.2.0_ga
- try several PCIe cards
- some cards require PCIE_RST correct timing assertion, please check it with oscilloscope
and card documentation
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor,
-The git commit I mentioned and the release tag that you mentioned are the same.
-The error appears regardless of whether a pcie card is used. I believe it is a problem with the pcie host controller
Thanks,
Ryan
In short, the answer is yes - the latter is used.
The git tag rel_imx_4.1.15_1.2.0_ga and the commit 77f6154783... reference the same thing. You can see that here - http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tag/?h=imx_4.1.15_1.0.0_ga&id=rel_imx_4....
Note that even though this branch is imx_4.1.15_1.0.0_ga, it is still the 4.1.15_1.2.0 release.
Thanks,
Ryan
I have checked the known issues and limitations. I confirmed that the RevD board in my possession does in fact have this hardware rework.
I do not have any of the cards listed. Unlike in 40.4.1, the 'lspci' command shows neither the Unkown Device nor the PCIe NIC that I have installed.
Hi Glen,
You can leave this one alive as it may help others.
The x550 from intel, while it is a x4 connection, it does specify in this datasheet that it is compatible with PCIe x1
Intel x550 family datasheet. I am hoping that means it will work.
Thanks,
Ryan