Maximum PCIe lanes for the Pi Compute module 4? #274
-
Hi Jeff Geerling, I am a long term viewer and a fan of you for a long time, I checked out multiple videos of you integrating and testing out different PCIe based devices in your compute module, Thank you for your attention. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey Hiruks, The CM4 only exposes a single PCI-e Gen 2 lane. Normally, this would mean that you would really only be able to attach one device to the Pi, as the lane is really a point to point connection, rather than a bus connection. The receive and transmit pairs cannot just be connected to multiple devices without some serious side effects. To get around this, a lot of boards being made right now use PCI-e switches. Think of these the same way you'd think of an Ethernet switch with all-gigabit ports. You still only have one lane of bandwidth, but the switch can process all the different information and make the most possible use out of that x1 link to your upstream port on the CM4. You can look into ICs like the ASMedia 1806 or the Diodes/Pericom PI7C9X2G404SL. This also does come with some limitations though. A board that uses NVMe through one of these switches are not currently able to use the beta 'boot from NVMe' feature, as the NVMe is hidden behind the PCIe switch until the right driver is initialized in the OS. |
Beta Was this translation helpful? Give feedback.
Hey Hiruks,
The CM4 only exposes a single PCI-e Gen 2 lane. Normally, this would mean that you would really only be able to attach one device to the Pi, as the lane is really a point to point connection, rather than a bus connection. The receive and transmit pairs cannot just be connected to multiple devices without some serious side effects.
To get around this, a lot of boards being made right now use PCI-e switches. Think of these the same way you'd think of an Ethernet switch with all-gigabit ports. You still only have one lane of bandwidth, but the switch can process all the different information and make the most possible use out of that x1 link to your upstream port on the CM4.
You …