r/eGPU•
chx_

U series chips, PCIe lanes and Thunderbolt 3

PinnedPSA

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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)

  6. 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.

  7. 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".

  8. 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.

  9. 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:

  1. 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

4518
Eightarmedpet•

Nice to see some new info and research done... too much is parroted from unchecked sources (doesnt check this source).

3
chx_OP•

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.

3
sovereign007Mantiz Venus + R9 Fury•

Good info, stickied to the top for the foreseeable future. This is a recurring question around these parts.

2
chx_OP•

Thanks! Yes, I have seen a great many questions regarding these things...

1
theitsageAKiTiO Thunder2 + Vega FE•

Regarding your outstanding question, each Thunderbolt controller is to host one eGPU. This is how it behaves during my testings in both macOS and Windows. Two external graphics cards may show up but only one would work. I have also tried daisy-chaining them for one TB3 port system and got similar outcome.

There's at least one exception to point 5. The Razer Blade Stealth with 7th and 8th gen U CPU has had x4 PCIe for its single TB3 port. The Toshiba Portege X20W might be the same way but I couldn't find the screen caps atm to confirm.

2
chx_OP•

Doh, I read https://egpu.io/forums/implementation-guides/2017-13-razer-blade-stealth-rx-vega5632gbps-tb3-mantiz-venus-win10-theitsage/ but only for the GT2/GT4 speed and didn't realize the Blade Stealth is U CPU! You are right, there's a JHL6340 there. Fixing.

2
FJFG84•

I've looked for the same OPI GT2/GT4, but all I could find is about SkyLake U, but what about SkyLake Y? In my case, my 7Y75 has for pcie lanes for ThunderBolt, but I don't know if the OPI is configured as GT2 or GT4... https://egpu.io/forums/pc-setup/skykaby-lake-u-cpu-opi-gt2-half-bandwidth-issue/#post-30926

1
chx_OP•

As I linked over there, the truth is in the PCH I/O datasheet but alas it doesn't help you as under the PCH-Y CPU interface you will only find 2GT/s and 4GT/s. I would bet anything, though, that Y is using 2GT/s even more so as it's a battery saving measure primarily and Y is even more battery focused than U.

2
FJFG84•

In my case, the 7Y75 is 7th gen, and somewhere I read that the Latitude 7275 which has an Core M, has 4GT/s enabled... so almost for me, its a mistery...

1
chx_OP•

Regarding the outstanding q, the brief has:

For a single Thunderbolt chip with two ports, the x4 PCIe interface data rate is shared across the ports

Now you say, "Two external graphics cards may show up but only one would work", that would be a very odd sharing.

1
kwhali•

Why would it be odd? Is this not any different from how other host controllers are like USB? They have a controller with multiple ports and can share the max bandwidth for the host controller across the ports/devices.

1
chx_OP•

But read what our sage said: Two external graphics cards may show up but only one would work.

1
kwhali•

Right but TB3 isn't just for eGPU, so it's perfectly fine/acceptable.

Two eGPU connected don't meet the min requirements/resources to run on a single controller presumably, or is enforced for some other technical reason. On USB host controllers, a device may not work if it's not able to get enough bandwidth or power draw. Eg I've had a wireless dongle that was power hungry, when plugging in an external drive without it's own power supply, it was unable to power on because the amount of power supplied via the controller was not enough for both devices. Two external drives would be fine though.

I'd be interested in how a system with two TB3 controllers behaves with two eGPU? I assume that's fine, although only one could power the internal display via iGPU I think?

1
[deleted]•

[deleted]

1
[deleted]•

[deleted]

1
[deleted]•

[deleted]

1
[deleted]•

[deleted]

1
[deleted]•

[deleted]

1