Every Intel CPU, like every CPU made by any other company, has dozens or even hundreds of errata.
So it makes sense that they do not have a press release for each one of them.
Intel has the euphemistically named documents "Specification Update", which contain the list of bugs and workarounds. The corresponding lists of AMD bugs have also an euphemistic name: "Revision Guide".
Any developer facing low-level problems, like compiler writers, device driver writers, operating system contributors, must search and read Intel's "Specification Update" documents and AMD's "Revision Guide" documents.
Unfortunately the quality of technical documentation at all companies has been steadily degrading for more than a quarter of century, so nowadays these lists of bugs and workarounds, at least in their public versions, i.e. available without an NDA, are much more frequently incomplete or not up-to-date, than in the past.
FDIV is getting on for one entire chip developer career ago, I think?
The Pentium project started in 1989; there cannot be that many current Intel employees who were designing silicon then who are involved with silicon design now.
So most people are working from the war story, rather than the shared experience.
People begin to forget, but Chesterton's Fence pops up everywhere.
(FDIV was interesting — it seemed like everyone knew all of a sudden computers could be fallible at maths. Really random people who you would not expect to know would joke "I hope a Pentium didn't come up with these numbers!" Real tabloid stuff, first of its kind)
Other engineering projects have design errors, too. Differences with CPUs are that they often are easier to fix in the field. Cars get recalls, for example, and bridges get fixes to prevent excessive rusting or excessive vibration.
CPUs also typically are made in quantities that are rarely seen in other complex long-lived products (yes, nails and screws are made by the billions, too, but those are simpler than CPUs)
There’s a reason building regulations are often very strict: it’s because you can’t always trust businesses to do the right thing when it comes to human safety.
Repeatability is the hallmark of mature development processes.
A lot of our work is actually dealing with exceptions and corner cases and processes do have tremendous value but management often falls for the safety illusion it provides.
> There’s a reason building regulations are often very strict: it’s because you can’t always trust businesses to do the right thing when it comes to human safety.
Watch some Cy Porter on Youtube. Holy shit it's insane what builders try to get away with it.
1) are actual trained, qualified engineers, usually with liability
2) do not become billionaires six months after dropping out of their degree with a business plan sketched on the back of someone's "HAVE YOU SEEN MY DOG" flyer
To be fair I’m pretty sure Intel still employs chip designers with actual digital electronics engineering degrees, probably PhDs, even though chip design is much more like programming than it was in Pentium’s days.
CPUs have had so many issues over the past decade, from both AMD and Intel, it's not likely they've forgotten what a disaster is.
Just from the top of my head, I'm probably missing half their failures.
Intel: Intel 13th/14th gen (RPL) self-cooking CPUs (Vmin, eTVB, ...), RPL instability, RPL manufacturing defects, Atom C3000 manufacturing defect causing mass field failures, TSX being completely broken and largely removed, the Skylake Prime95 bug, Somethinglake crashing when HT is enabled, the general P/E-core compatibility fiasco and subsequent AVX512 removal from consumer lines, ...
AMD: AMD AM5 exploding CPUs and the 9000X3D fiasco, AMD SoCs with self-degrading kinks (yes daddy AXMP punish me with 1.4 V), all the Zen 1 bugs (remember GCC crashing Zen 1?), Zen 2 never managing advertised clocks/performance before being replaced with Zen 3, AM4 never having reliable USB, X570/B550 PCIe 4.0 being completely bug-ridden, the AM4 APU failures, ...
And both have a nearly infinite list of CPU security vulnerabilities, Meltdown, Spectre, then ten years of Meltdown-and-Spectre-Variations, VM escapes, though Intel is definitely leading there. Which could be because Intel gets more research attention or AMD does a better job. Anyway, in either case the fixes are usually microcode updates or kernel workarounds which usually slightly degrade performance, but the cumulative effect of slightly degrading performance 30 times in a row is a substantial degradation.
I remember very well gcc crashing Zen 1, because AMD made me loose with that almost EUR 1000.
I pre-ordered the best Ryzen, one of the best motherboards for it and 64 GB of ECC memory.
After discovering that under Linux the Ryzen was unusable garbage, I dumped it together with the motherboard and I bought an Intel Kaby Lake Xeon and a motherboard for it. From the Ryzen fiasco I could keep only the 64 GB of ECC memory, but at that time memory was cheap, unlike today.
Nonetheless, I did not keep a grunge against AMD for my financial loss, and after the launch of Zen 2 I had to buy only AMD CPUs, because after every launch of new Intel CPUs, they were never cheap enough to justify their inferior performance (my needs are biased towards high multi-threaded performance, where starting with Zen 2 AMD was always better).
AMD has never given an adequate explanation of the Zen 1 bug, even if eventually, after a lot of delays, they accepted to replace the CPUs upon request, but I did not attempt to use that, because sending the CPU from Europe to AMD was costly and there was no clear guarantee that the replacement CPU will not also be buggy.
This goes in cycles, though. We're about due another Therac-25 (which is now fully outside of a single developer career duration). Had they not been caught, perhaps Theranos would have been that scandal.
The real serious issues seem to start around page 17 -- these are necessary reading for anyone who is going to invest heavily in these CPU's, i.e., owners/investors of datacenters and tech CEO's that are heavily vested in cloud/datacenter infrastructures, etc., etc.
While some or even most of these issues may not be all that severe in their scope or implications -- what's scary about this document is the overwhelming quantity of issues that are flagged as "no fix" -- as it would take only one severe unfixed/unpatched one of them to lead to yet another future security "rabbit-hole" nightmare...
What's the old proverbial saying?
"A chain is only as strong as its weakest link..." ?
Anyway, a must-read for any datacenter/cloud CEO/owner/investor and a must read for any tech CEO whose products/services rely on datacenter/cloud infrastructures...
A very important document for early awareness of potential future problems!
Based on my experience, hyper threading was anyway a workaround until multicore became widely available, not sure how much it is still worthwhile, given the impact in shared units across the CPU.
Usually having hyperthreads killing each other's cache entries, is much worse that splitting the work across multiple real cores, with a few synchronisation points.
It can often still be worthwhile to keep SMT enabled (if available), and very often it is for many general use cases, but it definitely depends on the workload.
Modern cores have become exceptionally good at extracting instruction-level parallelism from a single thread, so SMT becomes relatively less useful all else being equal. At the same time, modern cores also have much wider and more numerous internal resources where a single thread will be more likely to leave more of these resources idle (which could be useful to another simultaneously executing thread).
It seems that if you have two threads that tend to each saturate or bottleneck on the same internal CPU resources (execution resources, various buffers, caches, etc.), then SMT is more likely to reduce overall performance compared to just running a single thread at a time sequentially. But you need to measure to be sure.
As a fun anecdote, one of the best relative improvements I've seen in leaving SMT enabled (vs. disabled) was on one of the earliest (in-order!) Intel Atom CPUs. I suppose getting good ILP out of a single thread was simply not possible there, so even with the tiny execution resources available in that CPU there was still plenty to allow another thread to benefit from substantially.
Hyper-threading is a way to make better use of the execution engines of a CPU core. Some instructions stall (for example, because they need to wait for memory), so you want to run something else in the mean time. Instruction reordering and speculative execution only goes so far. If you have a completely separate thread available that can do some useful work, then you improve the overal efficiency.
Note that GPUs basically are hyper-threaded CPUs that not have just 2 or 4 threads per core, but thousands. This approach avoids needing all the complicated out-of-order circuitry, but it only works if you really have thousands of threads, which for a GPU is actually the case.
Back in 2010 I disabled hyperthreading on development machines, due to decrease in performance on Java and .NET application servers.
They were much faster using only real cores.
So maybe my experience is tainted due to the runtimes not being written in a way that they could take advantage of hyperthreading, however I have my doubts it has improved since then, unless the code is aware of being executed in hypethreads and act accordingly.
Hyperthreading was also a workaround for software that did all its networking by leaving hundreds (or even thousands) of OS threads blocked on IO.
As epoll/kqueue/iocp/io_uring et al have become more widely adopted, and we offload a lot more of this IO multiplexing into userspace, the value proposition gets hazier.
A thread blocked on IO gets taken off the CPU by the operating system though, so it isn't "running" as a thread on the CPU, and it isn't using up any resources in this context that might be contending with another SMT thread (other than maybe things like leftover TLB entries or cache lines that become much more likely to just get evicted soon anyway).
In some sense you can think of SMT as a lower-level resource sharing capability (of execution units and various buffers and such) inside the CPU core, which is somewhat analogous to how the operating system shares the higher-level logical CPU by timeslicing access to it across different runnable threads. The latter capability also layers on top of the former, which makes for some interesting performance implications from an operating system scheduler's point of view, but they're still different things.
Doesn't HT help mask cache latencies if your code is very cache-unfriendly? Ie there is computing that can move forward whilst the memory system is waiting?
ISTR a problem from a few months ago in which the processor could time out entering SMI across a core, allowing one thread on a core to be in SMI while the other runs user code, allowing that user thread (via other shenanigans) to explore and mutate SMI state.
To find the YouTube conference presentation I had to jump through some hoops because most attempts to Google or YouTube this bring up nothing but AI slopcopies. Here it is thanks to some random YouTube user's public playlist. https://www.youtube.com/watch?v=O43cvXUmQ80
This is Christopher Domas's talk about using slow instructions to break SMM transitions. It's more about the BIOS than the processor though. This is the same person who brought us Sandsifter, MOVfuscator, the hidden RISC mode in some obscure CPU, and the SMM memory sinkhole. I'm just noticing his slides are partially AI.
The winning instruction took 62 seconds to execute. As far as any software can possibly tell, like the BIOS or operating system, that processor core has completely hung, disappeared, or exploded, until it suddenly and unexpectedly wakes up again a minute later.
> The issue only affects systems with Hyper-Threading enabled; disabling Hyper-Threading is not listed as an official workaround but is suggested by some commentators as a potential mitigation.
Is an strange reading - Intel literally says it only affects systems with HT enabled.
Over the last years, there have been so many software mitigations for different CPU bugs, almost all of which negatively impact performance. Makes me question the benchmarks when the new CPU comes out. Yeah, it is faster by X% on the day it is released, but in a couple of years you're lucky to get the previous generation's performance.
Okay is this just a minor performance bug where some workloads become a tiny bit slower than they normally would? This really doesn't seem like a big deal.
But the article makes no attempt what so ever to describe the impact. What's up with that?
Yeah, the 1st generation of AMD Ryzen were defective in the initial retail batches - under heavy load they actually caused programs to segfault (https://www.phoronix.com/review/new-ryzen-fixed). I had one!
HT was always a hack and it might have had a point in early mono-core or dual-core processors, but today it is not justified as we have plenty of actual cores to spare. We have more cores than the OS or the average program can take advantage of. These hacks only add complexity and security issues now.
It was useful for not stalling the pipeline on things like a cache miss. It was more about just doing more work and keeping everything moving. This is complicated though and can slow things down when done wrong which actually leads to timing attacks and things.
IBM and Oracle CPUs do the same thing, where it's called symmetrical multi-threading. They take security very seriously, as do their users. Instead of two threads per CPU, they do like, eight. It could be a security through obscurity thing, but I think that if running multiple threads on one CPU core was inherently a security issue, of all people, they would have noticed it by now.
HT has its place, it is a handy way to process more work when waiting on more data for ram but more slots for queries remain on the memory controller.
One of the ways that make gpu workloads less sensitive to ram latency.
AVX512 was also a great invention until they found out that the CPU heats up too much while using and clocking its core down because of it. Rendering other - theoretically slower calculation paths - more efficient.
Issue is fixed with new latest generation of CPUs. But back then it needed a Compiler fix avoiding these instructions.
Should mods replace these kinds of links?
https://edc.intel.com/content/www/us/en/design/ipla/software...
https://edc.intel.com/content/www/us/en/design/products/plat...
https://edc.intel.com/content/www/us/en/design/products/plat...
https://edc.intel.com/content/www/us/en/design/products/plat...
https://edc.intel.com/content/www/us/en/design/products-and-...
https://edc.intel.com/content/www/us/en/design/products-and-...
https://edc.intel.com/content/www/us/en/design/products-and-...
This seems at odds with that.
So it makes sense that they do not have a press release for each one of them.
Intel has the euphemistically named documents "Specification Update", which contain the list of bugs and workarounds. The corresponding lists of AMD bugs have also an euphemistic name: "Revision Guide".
Any developer facing low-level problems, like compiler writers, device driver writers, operating system contributors, must search and read Intel's "Specification Update" documents and AMD's "Revision Guide" documents.
Unfortunately the quality of technical documentation at all companies has been steadily degrading for more than a quarter of century, so nowadays these lists of bugs and workarounds, at least in their public versions, i.e. available without an NDA, are much more frequently incomplete or not up-to-date, than in the past.
The Pentium project started in 1989; there cannot be that many current Intel employees who were designing silicon then who are involved with silicon design now.
So most people are working from the war story, rather than the shared experience.
People begin to forget, but Chesterton's Fence pops up everywhere.
(FDIV was interesting — it seemed like everyone knew all of a sudden computers could be fallible at maths. Really random people who you would not expect to know would joke "I hope a Pentium didn't come up with these numbers!" Real tabloid stuff, first of its kind)
CPUs also typically are made in quantities that are rarely seen in other complex long-lived products (yes, nails and screws are made by the billions, too, but those are simpler than CPUs)
There’s a reason building regulations are often very strict: it’s because you can’t always trust businesses to do the right thing when it comes to human safety.
A lot of our work is actually dealing with exceptions and corner cases and processes do have tremendous value but management often falls for the safety illusion it provides.
Watch some Cy Porter on Youtube. Holy shit it's insane what builders try to get away with it.
1) are actual trained, qualified engineers, usually with liability
2) do not become billionaires six months after dropping out of their degree with a business plan sketched on the back of someone's "HAVE YOU SEEN MY DOG" flyer
Just from the top of my head, I'm probably missing half their failures.
Intel: Intel 13th/14th gen (RPL) self-cooking CPUs (Vmin, eTVB, ...), RPL instability, RPL manufacturing defects, Atom C3000 manufacturing defect causing mass field failures, TSX being completely broken and largely removed, the Skylake Prime95 bug, Somethinglake crashing when HT is enabled, the general P/E-core compatibility fiasco and subsequent AVX512 removal from consumer lines, ...
AMD: AMD AM5 exploding CPUs and the 9000X3D fiasco, AMD SoCs with self-degrading kinks (yes daddy AXMP punish me with 1.4 V), all the Zen 1 bugs (remember GCC crashing Zen 1?), Zen 2 never managing advertised clocks/performance before being replaced with Zen 3, AM4 never having reliable USB, X570/B550 PCIe 4.0 being completely bug-ridden, the AM4 APU failures, ...
And both have a nearly infinite list of CPU security vulnerabilities, Meltdown, Spectre, then ten years of Meltdown-and-Spectre-Variations, VM escapes, though Intel is definitely leading there. Which could be because Intel gets more research attention or AMD does a better job. Anyway, in either case the fixes are usually microcode updates or kernel workarounds which usually slightly degrade performance, but the cumulative effect of slightly degrading performance 30 times in a row is a substantial degradation.
I pre-ordered the best Ryzen, one of the best motherboards for it and 64 GB of ECC memory.
After discovering that under Linux the Ryzen was unusable garbage, I dumped it together with the motherboard and I bought an Intel Kaby Lake Xeon and a motherboard for it. From the Ryzen fiasco I could keep only the 64 GB of ECC memory, but at that time memory was cheap, unlike today.
Nonetheless, I did not keep a grunge against AMD for my financial loss, and after the launch of Zen 2 I had to buy only AMD CPUs, because after every launch of new Intel CPUs, they were never cheap enough to justify their inferior performance (my needs are biased towards high multi-threaded performance, where starting with Zen 2 AMD was always better).
AMD has never given an adequate explanation of the Zen 1 bug, even if eventually, after a lot of delays, they accepted to replace the CPUs upon request, but I did not attempt to use that, because sending the CPU from Europe to AMD was costly and there was no clear guarantee that the replacement CPU will not also be buggy.
It is outside any developer's working lifetime, realistically. Even the office junior in 1982 would be in their sixties.
I imagine most of the Therac team are either long retired or no longer with us.
Plenty of companies pay endless lip service as long as it's free and doesn't cost them anything in money or negative press.
Rare to have a company stick to its (alleged) values in a crisis.
Do they mean they delay it even if suitable execution ports are actually available?
I would have tough it normal that one thread can stale another...
The real serious issues seem to start around page 17 -- these are necessary reading for anyone who is going to invest heavily in these CPU's, i.e., owners/investors of datacenters and tech CEO's that are heavily vested in cloud/datacenter infrastructures, etc., etc.
While some or even most of these issues may not be all that severe in their scope or implications -- what's scary about this document is the overwhelming quantity of issues that are flagged as "no fix" -- as it would take only one severe unfixed/unpatched one of them to lead to yet another future security "rabbit-hole" nightmare...
What's the old proverbial saying?
"A chain is only as strong as its weakest link..." ?
Anyway, a must-read for any datacenter/cloud CEO/owner/investor and a must read for any tech CEO whose products/services rely on datacenter/cloud infrastructures...
A very important document for early awareness of potential future problems!
Usually having hyperthreads killing each other's cache entries, is much worse that splitting the work across multiple real cores, with a few synchronisation points.
Modern cores have become exceptionally good at extracting instruction-level parallelism from a single thread, so SMT becomes relatively less useful all else being equal. At the same time, modern cores also have much wider and more numerous internal resources where a single thread will be more likely to leave more of these resources idle (which could be useful to another simultaneously executing thread).
It seems that if you have two threads that tend to each saturate or bottleneck on the same internal CPU resources (execution resources, various buffers, caches, etc.), then SMT is more likely to reduce overall performance compared to just running a single thread at a time sequentially. But you need to measure to be sure.
As a fun anecdote, one of the best relative improvements I've seen in leaving SMT enabled (vs. disabled) was on one of the earliest (in-order!) Intel Atom CPUs. I suppose getting good ILP out of a single thread was simply not possible there, so even with the tiny execution resources available in that CPU there was still plenty to allow another thread to benefit from substantially.
Note that GPUs basically are hyper-threaded CPUs that not have just 2 or 4 threads per core, but thousands. This approach avoids needing all the complicated out-of-order circuitry, but it only works if you really have thousands of threads, which for a GPU is actually the case.
They were much faster using only real cores.
So maybe my experience is tainted due to the runtimes not being written in a way that they could take advantage of hyperthreading, however I have my doubts it has improved since then, unless the code is aware of being executed in hypethreads and act accordingly.
As epoll/kqueue/iocp/io_uring et al have become more widely adopted, and we offload a lot more of this IO multiplexing into userspace, the value proposition gets hazier.
In some sense you can think of SMT as a lower-level resource sharing capability (of execution units and various buffers and such) inside the CPU core, which is somewhat analogous to how the operating system shares the higher-level logical CPU by timeslicing access to it across different runnable threads. The latter capability also layers on top of the former, which makes for some interesting performance implications from an operating system scheduler's point of view, but they're still different things.
Raptor Lake: "Believe me, I've been asking myself the same question for four years."
edit: Original title was:
> Intel confirms unfixable Hyper-Threading flaw in several CPUs
for example disabling hyper-treading is a "fix"..
Is this that? If so, this is a SMI break, yes?
This is Christopher Domas's talk about using slow instructions to break SMM transitions. It's more about the BIOS than the processor though. This is the same person who brought us Sandsifter, MOVfuscator, the hidden RISC mode in some obscure CPU, and the SMM memory sinkhole. I'm just noticing his slides are partially AI.
And the GitHub slow instructions list: https://github.com/xoreaxeaxeax/asm-hall-of-shame
The winning instruction took 62 seconds to execute. As far as any software can possibly tell, like the BIOS or operating system, that processor core has completely hung, disappeared, or exploded, until it suddenly and unexpectedly wakes up again a minute later.
Anyways both it and the techpowerup:
> The issue only affects systems with Hyper-Threading enabled; disabling Hyper-Threading is not listed as an official workaround but is suggested by some commentators as a potential mitigation.
Is an strange reading - Intel literally says it only affects systems with HT enabled.
But the article makes no attempt what so ever to describe the impact. What's up with that?
Doesn't matter for single-user machines, but cloud providers might care a bit.
Disappointing.
Hah. Can you imagine cloud providers instantly losing half their advertised CPU "cores" on every Intel machine?
Making fast CPUs is hard, let alone secure ones.
Or unless it can be used as a covert comm channel.
https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/c...
AVX512 was also a great invention until they found out that the CPU heats up too much while using and clocking its core down because of it. Rendering other - theoretically slower calculation paths - more efficient.
Issue is fixed with new latest generation of CPUs. But back then it needed a Compiler fix avoiding these instructions.
The transfer of data from memory to CPU on the other hand caused the CPU to throttle.
Today, a 512-bit version of an algorithm will typically be significantly faster than the 256-bit version of the algorithm.