Package Details: linux-ryzen-git 4.16rc3.r0.g4a3928c6f8a5-1

Git Clone URL: (read-only)
Package Base: linux-ryzen-git
Description: The Linux kernel and modules (git version), with GCC optimization patch and Ryzen-friendly config flags (CONFIG_RCU_NOCB_CPU=y) to enable the rcu_nocbs=0-x boot argument
Upstream URL:
Licenses: GPL2
Provides: linux
Submitter: ssorgatem
Maintainer: ssorgatem
Last Packager: ssorgatem
Votes: 7
Popularity: 2.628047
First Submitted: 2017-12-01 11:30
Last Updated: 2018-02-26 09:52

Required by (193)

Sources (4)

Latest Comments

Vagr9K commented on 2018-03-16 13:34

@mrpg I agree with you, but to be fair to AMD, idle kernel lockup bug has been fixed with a BIOS update recently (you can now disable the Package C state from AMD CBS if you experience crashes). On the other hand, C-States were and still are a mess for some people even in case of Intel.

The last soft lockup that I was dealing with was an Arch specific issue that had nothing to do with the CPU itself. Ubuntu 17.10 had no issues whatsoever for the record. I also posted a fix.

As of right now the only issue I have with AMD hardware is AMDGPU DC creating screen flicker/corruption when using auto power profile, but AMD is aware of the bug (, and as long as I still have amdgpu.dc=0parameter available to me, I don't see it as a serious issue. After all they are adding Freesync/HDMI audio support to their OSS drivers, and it's not a simple task.

With all those issues considered, overall I'd say that Ryzen/RX580 redeemed themselves for me.

I just wish they were a little bit more polished.

mrpg commented on 2018-03-16 10:57

@Vagr9K I appreciate the followup, thank you. Sadly, I can't really help. Anyways, I agree wholeheartedly with your annoyance at these issues. AMD (and in my case, also MSI) should be ashamed for selling such (at best) alpha-level hardware.

Is it really too much to ask these vendors to test their hardware on ONE LINUX BOX? It is just stunning that after one year (!) there is still tremendous uncertainty in everyday operation of these systems. If AMD really wants to challenge Intel, they will have to do MUCH better. Not in ten years have I ever had any CPU bugs with Intel; once started, these machines run forever. Not so with Ryzen. Just today, I experienced another soft lockup, and this under no load whatsoever. And since installing a new MSI BIOS, the whole situation has become even worse.

This is just completely execrable. While I very much appreciate all your hard work (and of all the others here who also deal with these issues), I would much rather not have to deal with these issues at all. It is unacceptable, and these vendors should be truly ashamed of themselves for selling this stuff.

Vagr9K commented on 2018-03-16 05:23

Sorry for an off-topic comment again but I don't want to leave people having the issue in the dark.

Apparently OPCache has nothing to do with it. It just degrades performance enough to make reproduction much harder.

Update to the latest GCC from testing that fixes This will also fix unexplainable issues like fork() resource starvation and strange lockups.

At least it did it for me.

No more issues when compiling with '-j16'.

Vagr9K commented on 2018-03-13 22:52

Seems like I've found a workaround.

Disable OPCache from BIOS (AMD CBS->Zen Common Options-> OPcache control).

Keep mind that it comes with a ~5% performance penalty (at least in Cinebench).

On a side note, I am getting really tired of all this CPU bugs.

Vagr9K commented on 2018-03-13 15:52

Okay. I tried disabling power-saving features, locking my CPU at 3.7GHz, disabling boosts/etc, completely resetting the BIOS and still got random lockups while compiling.

Kernel regression is also out of question, since I was running versions starting from 4.13 to 4.16 when crashes happened.

I suspect this might be related to:


2) High poll rate Keyboards/Mouses, ckb-next driver

3) ccache

4) Latest AGESA update

5) Pulseaudio (during one of the crashes audio was still working perfectly, I'll try rolling back pulseaudio updates)

6) RAM. Even though I have CL14 Samsung B-Die RAM, still don't want to exclude the possibility.

@mrpg and @quasd. Sorry for bothering again, but any tips/suggestion besides the -j12 trick? I'll collect some dmesg samples from lockups and try reporting upstream too.

mrpg commented on 2018-03-12 16:38

@Vagr9K Nope, I have a MSI X370 Gaming Pro Carbon.

I also had my CPU RMA'd, but there are still weird issues that occur rarely. When I used this package, I sometimes had this effect that the computer became unresponsive and the CPU LED on the mainboard started lighting up. Due to this, I am currently not using this kernel, but the standard kernel in the "linux" package.

However, when doing heavy compression (for example), sometimes these (hard) lockups still occur.

As to your description of what sometimes happens when compiling the kernel, I can second that -- I had exactly the same issues. Literally the same. Very, very weird.

Vagr9K commented on 2018-03-12 16:33

@mrpg Do you have Crosshair 6 Hero with the latest BIOS by any chance?

I've been trying to bisect an amdgpu-dc flickering bug recently, and every 5th kernel compilation ended up soft-locking the threads one by one until the system became completely unresponsive. There are also a bunch of cgroup warnings about rejecting fork() due to lack of resources and then a CPU trace in dmesg.

The CPU is segfault bug free (AMD RMA). Interestingly enough this issue wasn't happening in December when I originally received the CPU and compiled a bunch of stuff (including kernels and GCC). I am also using '-j16' for compilation speed.

ssorgatem commented on 2018-02-26 10:52

Well, I used an updated patch from that issue, I hope it works well (seems to work in my system; can't fully test due to an unrelated bug in linux 4.16 with Vega GPUs)

ssorgatem commented on 2018-02-26 09:18

Currently the GCC optimization patch fails to apply. I've opened an issue upstream:

Until it's fixed you may want to comment out the patch line in the PKGBUILD or just use the linux-git package instead.

gtpitch commented on 2018-02-20 05:23

21544 100 21544 0 0 90142 0 --:--:-- --:--:-- --:--:-- 90142 ==> Validating source files with sha256sums... linux ... Skipped config.x86_64 ... Skipped linux-ryzen-git.preset ... Passed enable_additional_cpu_optimizations_for_gcc_v4.9%2B_kernel_v4.13%2B.patch ... Passed ==> Extracting sources... -> Creating working copy of linux git repo... Cloning into 'linux'... done. Checking out files: 100% (62911/62911), done. ==> Starting prepare()... patching file arch/x86/include/asm/module.h Hunk #1 succeeded at 25 (offset 10 lines). Hunk #2 succeeded at 61 (offset 10 lines). patching file arch/x86/Kconfig.cpu Hunk #1 succeeded at 116 (offset 1 line). Hunk #2 succeeded at 149 (offset 1 line). Hunk #3 succeeded at 158 (offset 1 line). Hunk #4 succeeded at 166 (offset 1 line). Hunk #5 succeeded at 324 (offset 1 line). Hunk #6 succeeded at 334 (offset 1 line). Hunk #7 succeeded at 354 (offset 1 line). Hunk #8 succeeded at 435 (offset 1 line). Hunk #9 succeeded at 472 (offset 1 line). Hunk #10 FAILED at 502. 1 out of 10 hunks FAILED -- saving rejects to file arch/x86/Kconfig.cpu.rej patching file arch/x86/Makefile Hunk #1 succeeded at 124 (offset 3 lines). patching file arch/x86/Makefile_32.cpu Hunk #1 succeeded at 23 (offset 1 line). Hunk #2 succeeded at 43 (offset 1 line). ==> ERROR: A failure occurred in prepare(). Aborting... ==> ERROR: Makepkg was unable to build linux-ryzen-git. ==> Restart building linux-ryzen-git ? [y/N] ==> ----------------------------------------

All comments