U series chips, PCIe lanes and Thunderbolt 3
tl;dr: if you want to use an external monitor with a single eGPU (even on TB2), stop reading, ignore everything you read about restrictions and enjoy your setup. If you want to accelerate the internal display of your U chip based laptop with an 1070 or faster (for slower chips all this matters little) then read on.
Details:
-
Haswell and later U chips have the PCH integrated into a single package. Up until 2018 Feb at least, all the U chips have 12 PCIe lanes in total and that's the package total, they all come from the PCH and none are coming from the CPU. This is laid out in layman terms in this article but also p25 of the Intel PCH I/O datasheet says 12 PCIe lanes are coming from the PCH and we know there are 12 PCIe lanes in total.
-
The CPU and the PCH is communicating via the On Package Interconnect which is very much like the Direct Media Interface except it is on the package (duh). This has the same bandwidth as four PCI Express 3.0 lanes (4GT/s) but can be configured via the laptop vendor to be only two wide (2GT/s) for power savings. source. The vendor can change this but it's a complicated BIOS upgrade, it's not a setting you can change in the BIOS and it's definitely not runtime. I am not 100% how to get the speed of the OPI aside from benchmarking.
-
How bad is 2GT/s? One might think it's bad: if you are looking hard enough then you can find some benchmark where the fastest M.2 NVMe disks running on an x4 link are pretty close to be constrained by that x4 link, running at 3100 MB/s while limiting an NVMe disk to PCIe x2 (via 2GT/s and/or simply by feeding only two lanes into an M.2 key B or M slot) means it can't exceed 1700MB/s (x2 is 16gbps). But if you compare the Crystaldiskmark results of the 960 Evo to one in a T470 (which is x2 NVMe) you will find the difference to be much smaller (same for AS benchmark). These benchmarks are much closer to a real world usage than the "full throttle" nature of that single Atto benchmark. Because of this, most laptops which use U (reminder: low wattage) CPUs will vote on saving power via a 2GT/s link instead of trying to squeeze the last performance drop from their SSDs. After all, you only gain from disk speed when you are using the disk a lot but you always have shorter battery life if OPI is running at 4GT/s. Also, the OEM SSDs will not be as fast as a 960 Evo/Pro anyways.
-
The [Thunderbolt 3 technology brief] (https://thunderbolttechnology.net/sites/default/files/Thunderbolt3_TechBrief_FINAL.pdf) makes it clear every TB3 port must have at least two lanes. It also says dual port controllers are fed by four lanes.
-
Intel sells a single port Thunderbolt 3 controller called Alpine Ridge LP (JHL6240) which indeed only requires the minimum two lanes. Almost all laptops with an U chip (and more than a few gaming laptops with HQ chips too) and a single TB3 port uses this. Dell admits this, Lenovo also since 2018, HP I do not know. (The single port x4 TB3 controller is typically used by workstations.) Notable exceptions include the Razer Stealth Blade 2017 and later (not the 2016, tho). (source)
-
Laptops with two Thunderbolt 3 ports always have a single controller (providing both ports) fed by x4. Also, in this case the laptop might even have an OPI 4GT/s link, otherwise it will have 2GT/s as there's no component which realistically needs 4GT/s as outlined above. hwinfo will tell you what sort of controller you have and how many PCIe lanes does it have.
-
In the same tech brief you can read Intel limited the host-to-device bandwidth to 22gbps. Techpowerup did a great PCIe scaling analysis on the desktop: there's less than 10% difference between PCIe 2.0 x4 (equivalent to 3.0 x2, both are 16gbps) and PCIe 3.0 x4 (32gbps) at 1080p using a GTX 1080, shrinking further as the resolution increases. This small difference just diminishes to nothing if you compare 3.0x x2 and "x2.75".
-
Indeed, there are benchmarks (1 2) showing no difference at all when the eGPU is connected to an external display whether using an x2 or an x4 TB3 controller.
-
However, the second benchmark also shows that accelerating the internal display with an 1070 or faster does get a major performance hit from the x2 TB3. This makes sense: accelerating the internal display means copying the rendered data back into the framebuffer of the internal GPU driving the internal screen and it's possible a fast enough GPU can produce enough data to saturate the 16gps connection. Since the internal GPU is going to be the Intel IGP connected to the CPU, the data must cross the OPI link -- remember, PCIe lanes are connected to the PCH. So having 4GT/s and an x4 TB3 controller is important for this use case. (Plus of course up to date eGPU enclosure firmware and a proper cable.) But, if you check that benchmark it says an x4 gives you 70% of the desktop performance and x2 gives you 60% which is nowhere near the double speed the links would allow. Still, this 16% difference can be important.
Outstanding question:
- what happens if you connect two eGPUs to a single Thunderbolt controller providing two ports? Will one of them just not work, will the controller somehow balance the dynamic bandwidth needs of them or just assign two lanes? Note this won't be that useful for games as the Multiple Adapter DX12 feature is typically not well supported.
Note: while the Intel BIOS upgrade note does use the nomenclature "GT4" instead of "4GT/s" this is, I believe, a mistake where the note writer mixed up the GT4 graphics chip with the speed of the link which is 4GT/s. In fact, I have been unable to find any other Intel doccument which would use "GT4" for the speed of the link or any document whatsoever using "GT2" -- while the few other places where the OPI speed shows up, it's given as 2GT/s or 4GT/s which are indeed measurements of speed. GT2/GT3/GT4 are names of Intel graphics chips, the BIOS note writer got confused, Anandtech raised awareness to this particular note and the misnaming spread.
Posted Feb 5, 2018, 12:45 AM UTC · edited
Nice to see some new info and research done... too much is parroted from unchecked sources (doesnt check this source).
Even for me there's new information: I only put it together while writing and editing it that the internal display acceleration must cross the OPI link. After all, a PCI device can talk to another or the main memory without talking to the CPU so I was not 100% what happens there but after re-reading and fixing my post several times it dawned on me that the PCIe lanes and the IGP is on the opposite sides of the OPI.