266 points · by thg · 5y ago · 84 comments
I've experienced the following issues on my laptop (Dell G5 SE):
* Crashes on suspend/resume. [1]
* Kernel warning on boot [2]
* It crashes for me without amdgpu.runpm=0 kernel config [3] (fixed?)
* Crashes when inserting and removing USB-C monitor (fixed?)
* The onboard GPU works, but the dedicated GPU crashes with vsync. (didn't test recently)
1. https://gitlab.freedesktop.org/drm/amd/-/issues/1222
On my work computer with a Ryzen 7 "Renoir" GPU the problem was not the drivers but the fact that the latest Ubuntu LTS ships with an older kernel, so having to run latest mainline.
I have a feeling this sort of situation will become more and more problematic, especially when new architectures are released. Somewhere the Linux community may have to step up for more easily having recent kernels.
The experience of running old hardware on Linux is much better than that of running new hardware.
Except for certain products at least (I run latest nvidia compute cards and the drivers just work).
- Upgrade to _the very latest_ kernels. I'm not kidding, you need to start following mainline stable builds. In Ubuntu or ubuntu-based derivatives check out the ubuntu-mainline-kernel script: https://wiki.ubuntu.com/Kernel/MainlineBuilds I'm on 5.10.4 right now but probably should uprade. You need a _minimum_ 5.4 kernel to fix some egregious instability issues, but in general keep your kernel bleeding edge updated.
- Disable MWAIT instructions. This was the final missing piece of making my machine stable. The TL;DR is that AMD put out errata recently that MWAIT is basically 100% broken on these early Ryzen processors: https://www.amd.com/system/files/TechDocs/55449_Fam_17h_M_00... You can read much more in this enormous kernel bug report: https://bugzilla.kernel.org/show_bug.cgi?id=196683 The fix is to add a "idle=nomwait" flag to your kernel startup.
It's a night and day difference with these fixes in place. I still sometimes get a touchpad lockup on wake from sleep, but it's maybe 1 out of every 50 times and kind of expected for linux. No longer do I have random kernel panic-level lockups every hour. The little laptop just flies and flies with these Ryzen processors.
Took 2 years for a BIOS update that solved the final problems allowing it to work without custom kernel perimeters.
Ubuntu 20.4 was the first version of Linux that was totally stable.
2 weeks after everything was perfect - the fan died :(
I got a RX 6900 XT in december and have not had any significant issues with the drivers. YMMV on less bleeding edge distros.
And yes, Gnome is still sometimes completely unresponsive...
https://news.ycombinator.com/newsguidelines.html
> Comments should get more thoughtful and substantive, not less, as a topic gets more divisive.
One one had, the performance really sucks.
On the other, there's no way we would've had Spotify, Slack, Teams, and all these big apps supported on Linux.
Meh... Where are the remote jobs? I bet if you open an office in Oregon (where there's tons of Intel Open Source people) you'll find a lot of candidates. Or, you know, act like the old times of 2020 and hire remote employees?
Or just how often development hardware self-bricks and needs to be recovered.
Doing hardware work remotely is a lot slower. Possible, but slower.
Edit: Or how there is that one person who is really good at assembly and if you can walk down and ask them a question it'll save you a couple hours (days) of debugging.
And then there is that one person who is really good with an oscilloscope and while in theory you shouldn't need to have decode messages by sight from waveforms, well, this one person can and it sure is useful time to time....
would guess since this is AMD and low level Linux, there may be a good deal of interfacing with physical hardware, in addition to any other preferences they might have
[0] https://www.phoronix.com/scan.php?page=news_item&px=Mesa-21....
If I were AMD or Intel, I'd keep investing in HPC, but be terrified that my lead there was just one good ARM BLAS library away from evaporating.
And those are big cores. For a ton of little cores, looks less clear-cut for me because of the communication overhead. (could work out though, but won't be exactly easy).
E: A64FX seems like a really cool chip, but it sure is much easier to get time on AWS than Fugaku. :)
It can see a future where x86 is the modern equivalent of a “mainframe”
I want to be wrong though...
The new M1 Mac is fairly open too in that you can boot non-MacOS OSes on it. It differs from the iPhone and iPad in this way as the Mac is made for a different market niche.
The best way to fight closed devices is to not buy them regardless of their CPU ISA.
ARM is just a different ISA with somewhat superior efficiency characteristics due to fixed length easier to decode instruction encoding. That's about it.
If you're working on online services and NOT looking at or using ARM servers right now--you are in big trouble and already too late to the game.
I only know about unaligned reads and the weaker memory model, but both of them are already undefined behaviour in C/C++/Rust.
If it is for their Ryzen processors... please hire more. I am thinking about going back to Intel laptops after the pitiful support in the current Linux kernel.
Random freezes when I am actually using the laptop are the most common. Infuriating.
Scrolling a webpage in Firefox using touchpad gestures is a risky business, more than half of the freezes happen when scrolling.
The fact that hibernation and sleep also don't work is just the icing on the cake.