AMD will reinstate memory encryption on Ryzen 9000 CPUs via BIOS update in July
106 points
3 hours ago
| 10 comments
| tomshardware.com
| HN
theandrewbailey
1 hour ago
[-]
> TSME isn't a critical security feature for most consumer desktops, as it protects against attacks where the attacker needs physical access to the device.

If you think it's hard to gain physical access to a consumer desktop, you're out of touch. Most desktops aren't locked inside a datacenter. Memory encryption is a valuable desktop (and laptop) security feature.

reply
WillPostForFood
47 minutes ago
[-]
So my PC runs 5% slower because someone could break into my house to get physical access to decrypt memory? OK sure, but not my top concern, and a bad tradeoff for the lost performance. And not only fair, but completely accurate to describe TSME as non-critical for *most* consumer desktops. I'd go as far as to say useless and counter-productive for most, but not all, consumer desktops.
reply
futuraperdita
18 minutes ago
[-]
So you turn it off by default in BIOS and allow those that feel it's useful to them to enable it, and you solve for both sides of the problem.
reply
rr808
18 minutes ago
[-]
The last few companies have all had desktops in datacenters with the local PC just a virtual terminal.
reply
CivBase
59 minutes ago
[-]
You'd need physical access while it is running as the target is using it.
reply
hnuser123456
53 minutes ago
[-]
When the threat model is physical security, henchmen are also a consideration.
reply
Havoc
2 hours ago
[-]
I'm a little puzzled by the uproar given that all the oneline chatter seems to suggest nobody is using this. If this was AVX512 or something I could understand the give it back reaction...
reply
saghm
32 minutes ago
[-]
I think it's that principle. CPU firmware upgrades are not supposed be used for things like this, and if it became normal to use them for removing features, it would just lead to people not updating the firmware at all, and that's not a good scenario for anyone.
reply
jdsully
1 hour ago
[-]
Physical hardware products shouldn't lose features after launch. If this was a "mistaken" feature which they suggested it was they should have disabled it on future chips.
reply
RachelF
56 minutes ago
[-]
A lot of this has to do with segmenting the market into high-end and low-end products.

When they were the underdog to Intel, they gave away lots of premium features to beat Intel.

Since they got more popular, AMD has been taking away features, or not upgrading old tech, from their desktop/gaming CPUs: Their DDR5 interface is gimped, being slower than Intel now, and still limited to dual channel. Their chipset link is still PCIe 4x4 the same as two generations ago.

If you want these features now, you need a server product.

reply
saghm
34 minutes ago
[-]
None of that is a good rationale for patching the firmware to retroactively remove things from devices that were sold years ago. It's an abuse of a mechanism that's ostensibly meant for security fixes and maybe perf improvements, which is a dangerous game because it incentivizes people to just not update the firmware at all, which is a worse scenario for both parties than just resolving to not include the feature in CPUs going forward if it's such a huge loss to include it.
reply
stefanfisk
1 hour ago
[-]
Judging by the Reddit threads I saw, A LOT of people were upset even though it was clear that they had not idea what the feature actually provided beyond “encryption”. I’d guess that the majority assumed that the change would result in them basically having to “encryption” in affected AMD devices any more in some vague general sense.
reply
Havoc
1 hour ago
[-]
Exactly. Thus far I've seen 1 person use it...and they seemed to believe it provides rowhammer benefit...so somewhat tangential
reply
dijit
2 hours ago
[-]
People don’t like things being taken away, even if I don’t think many people are actually using this feature.

I don’t even think its exposed in most BIOS’s

reply
dist-epoch
1 hour ago
[-]
And it does reduce memory speed by about 0.5-1%.
reply
roboror
3 hours ago
[-]
Full title: AMD will reinstate memory encryption on Ryzen 9000 CPUs through a BIOS update in July — TSME is coming back after 'valuable community feedback'
reply
Modified3019
2 hours ago
[-]
They’ve been doing a bunch of stuff in agesa updates regarding memory stability lately, and also recently broke and fixed setting manual speed on DDR5 memory with ECC enabled (basically any setting higher or lower than 5200mhz or something was ignored).

I wonder if this was also something they just accidentally broke, or if it was an incompetent attempt at larger segmentation.

reply
KennyBlanken
35 minutes ago
[-]
We're talking about a company that five generations into its processor family still hasn't been able to figure out how to have USB work properly and reliably.

AMD Adrenalin, their software that manages things video/GPU features like clip saving, performance settings, game optimizations, update monitoring, performance overlaying, etc - is so fucking bad that if your mouse is set to a refresh rate over 500hz, it is virtually unusable because the mouse cursor takes half a second to respond to inputs. This is running on a card one step down from the flagship, current generation.

Don't even get me started about ROCm on Windows.

reply
close04
2 hours ago
[-]
> I wonder if this was also something they just accidentally broke

Their statement suggests it was a calculated decision, reversed after public backlash. I greatly appreciate they listened to user feedback, but they shouldn't have done it secretly to begin with.

> Based on valuable community feedback, we will reinstate this option in an upcoming BIOS release in July.

reply
jolmg
2 hours ago
[-]
Thought there were cases where other devices could have direct access to RAM (e.g. DMA, PCIe controllers outside the CPU, etc.). Wonder how that works in conjunction.
reply
wmf
1 hour ago
[-]
The encryption/decryption is done in the memory controller so it doesn't matter where the access is coming from.
reply
porridgeraisin
1 hour ago
[-]
There are many ways it can work depending on the cpu:

1. No dma, instead you use bounce buffers and the cpu manually encrypts and decrypts on behalf of the pcie

2. The IOMMU sets certain pages as unencrypted and ensures the pcie only accesses those pages and that part of ram alone is now not encrypted.

3. Newer pcie devices use the TDISP(handshake) and IDE(aes gcm hardware module related stuff) protocols to do encrypted communication with the CPUs PCIe root hub, where this functionality is called TIO i.e trusted io on amd and TX connect on intel. As far as nvidia GPUs go which is where I have used this, H100 onwards have the feature. Only server xeons and turins etc support this feature on the cpu side. I think some server SSDs do too. Here you get full encryption full DMA at full bandwidth.

reply
helterskelter
2 hours ago
[-]
Good. Intel's equivalent processors have this feature and BS market segmentation is the kind of thing that AMD was historically against. Even if something wasn't officially supported, they didn't go out of their way to prevent its use.
reply
ChrisArchitect
1 hour ago
[-]
Discussion on the previous development:

AMD silently removes memory encryption from consumer Ryzen CPUs

https://news.ycombinator.com/item?id=48582320

reply
varispeed
1 hour ago
[-]
I wish they could enable use of non-ECC ram on Threadrippers.
reply
timschmidt
19 minutes ago
[-]
I wish we'd stop pretending that non-ECC ram is ok on any platform.
reply
opengrass
2 hours ago
[-]
Rust developer: "Ba da Ba Ba Ba"
reply
saghm
29 minutes ago
[-]
Sure, as long as your OS is written in Rust (and doesn't use any unsafe)
reply