Linux Ryzen crashes likely due to hardware bug, kernel workaround attempted in DragonFly BSD.
gitweb.dragonflybsd.org/dragonfly.git/commitd...Posted Jun 5, 2017, 6:00 PM UTC
Posted Jun 5, 2017, 6:00 PM UTC
So, the questions are now: is it limited to Linux (what about Windows MSYS/MinGW or Visual Studio), and if it can be fixed by AGESA/Bios update?
If it's related to IRET then the problem sits closer to how the OS handles interrupts and the compiler isn't relevant.
As for fixing it with a microcode update, it can for sure be fixed, the question is, can it be fixed without performance impact.
Out of curiosity, what crashing is this in reference to? Been running Linux on my build for a bit over a month now and things have been relatively solid (aside from problems with my Gigabyte AX370 Gaming 5 making running Ubuntu a hassle). Not that it's been a totally problem-free experience, but curious if there is something I just haven't noticed yet.
is this related to freezing/deadlocking or the segfaults when compiling? or are they the exact same thing?
Hope this gets fixed soon, I have experienced two segfaults and many deadlocks in compiling the linux kernel
In the original support topic on amd.com, AMD now recommends either disabling SMT or (if offered by the mainboard) the OPCache (uop cache?): https://community.amd.com/message/2796982
There are some indications the problem is related to handling conditions near the edge of the address space, which is why fiddling with the address space randomization options help too.
Unlike reported earlier here, there's no relation to the GCC version in use nor does using a Ryzen aware GCC help anything.
That's highly annoying
Not crashing for me after upgrading to latest stable kernel. Ubuntu 16.04
I don't know of any workaround committed to Linux yet, so you simply haven't encountered the issue -yet-.
It was crashing with the stock ubuntu kernel... I believe 4.3? With 4.11 I don't get crashes anymore...
This problem isn't about crashing the kernel (which 4.3 did because it had no support for Ryzen whatsoever), it's about a CPU bug that will cause userland applications to crash on heavy SMT load, and is not worked around in any Linux kernel right now.
Again, updating to the latest kernel won't do anything yet, it's not fixed on Ubuntu 16.04 (which is largely irrelevant to this anyway). If you are stable you simply haven't encountered the problem yet.
AMD's recommended fix so far is disabling SMT or the OPCache.