Arch linux amd ryzen

Arch linux amd ryzen

I bought a Ryzen 2400G on the beginning of April and I was totally excited to try out Linux on that machine. I installed Arch Linux and I was disappointed.

At that time, its kernel was 4.15 and I’ve tried some packages like amd-ryzen-drm-next and my system had severe screen freezes and got unusable. So I installed Windows 10 where AMD provide dedicated drivers and support.

But that is not the case here. Linux kernel 4.16.3 stable is here and Mesa 18.0.1 with LLVM 6 with the latest linux-firmware. Now its quite hard to get the screen booted up due to kernel panics and boot screen freezes.

But when the system is ON, a fully powered system. I installed GNOME 3.28.1 on Wayland and it works super cool. No screen freezes or anything like that. Pretty solid now. I have no games on Linux but I used GiMP, Darktable and Kdenlive a lot. None of them landed me on a freeze and I am happy now !! I have added some boot parameters also (amdgpu.dc=1 iommu=pt )

I have some errors during the boot and I hope it will be fixed soon. Anyone with similar hardware, please share your experience on Linux with Raven Ridge.

Edit : Boot is also slow. No improvement in boot time for Linux since I’ve upgraded from my Intel Core 2 Duo. There are notable changes in the Windows Boot. I think I need an SSD.

Edit : I am currently using boot parameter : iommu=soft rcu_nocbs=0-7

Edit : Currently, I’ve compiled the kernel 4.17 rc2 and using it.

Edit : Now, I am not having a boot screen freeze. The keyboard works. The display is actually black after starting amdgpu. So the graphics driver for raven ridge is not yet fixed. If I didn’t get those errors, another screen freeze is waiting for me inside after booting up(This happens LESS frequent)

Источник

Arch Linux User Repository

GCC13.1 is mainlined in arch, so this means znver4 support can kick off on this kernel. The graysky compile patches have been updated too.

This kernel now natively supports the znver4 arch, but this kernel will most likely keep working on all AMD ryzen hardware. It’s better to be able to address certain small perks or issues per architecture now and in the future.

If you use znver3 based hardware, please use linux-amd-znver3 If you use znver2 based hardware, please use linux-amd-znver2 If you use raven based hardware, please use linux-amd-raven 

eggz commented on 2019-11-10 15:23 (UTC) (edited on 2020-02-18 12:08 (UTC) by eggz)

Tired of compiling? Use this binary repo instead! Add this at the end of /etc/pacman.conf :

[linuxkernels] Server = http://nhameh.ovh/$repo/$arch SigLevel = Optional TrustAll 

Latest Comments

eggz commented on 2023-07-08 11:20 (UTC)

ty for the notice and feedback

Читайте также:  Сброс пароля linux через grub загрузчик

dekart811 commented on 2023-07-08 11:05 (UTC)

@eggz I did run the kernel for several hours yesterday, without having any issues. Firefox didn’t crash and Conky didn’t freeze, so it seems that the issues has been solved, thanks.

dekart811 commented on 2023-07-07 15:36 (UTC)

@eggz will do, compiling it right now

eggz commented on 2023-07-07 14:17 (UTC)

@dekart811 I think this should do it. Maybe you can test?

eggz commented on 2023-07-07 13:56 (UTC)

I will use the patch proposed on top of your given thread, this seems to work. hold on.

eggz commented on 2023-07-07 13:41 (UTC)

it seems CONFIG_PER_VMA_LOCK is overidden by another dependency, i need time to search them, hold on.

eggz commented on 2023-07-07 13:39 (UTC)

thx for the heads up dekart, this bug went over my head.

dekart811 commented on 2023-07-07 11:16 (UTC)

There seem to be some issues when having CONFIG_PER_VMA_LOCK=y set with kernel 6.4, e.g. with Conky (https://github.com/brndnmtthws/conky/issues/1544) and Firefox does also randomly crash for me. Would you please compile the kernel without CONFIG_PER_VMA_LOCK ?

eggz commented on 2023-05-04 16:38 (UTC)

GCC13.1 is mainlined in arch, so this means znver4 support can kick off on this kernel. The graysky compile patches have been updated too.

This kernel now natively supports the znver4 arch, but this kernel will most likely keep working on all AMD ryzen hardware. It’s better to be able to address certain small perks or issues per architecture now and in the future.

If you use znver3 based hardware, please use linux-amd-znver3 If you use znver2 based hardware, please use linux-amd-znver2 If you use raven based hardware, please use linux-amd-raven 

flakusha commented on 2023-04-28 15:07 (UTC) (edited on 2023-04-28 15:08 (UTC) by flakusha)

Gaming performance is much worse, although energy saving is really there and other workloads are the same, but I need more testing too.

Copyright © 2004-2023 aurweb Development Team.

AUR packages are user produced content. Any use of the provided files is at your own risk.

Источник

Ryzen

Install the amd-ucode package to enable microcode updates and enable it with the help of the Microcode page. These updates provide bug fixes that can be critical to the stability of your system. It is highly recommended to use it despite it being proprietary.

Tweaking Ryzen

Voltage, power and temperature monitoring

lm_sensors should be able to monitor temperatures out of the box. However, for more detailed information such as power consumption and voltage, zenpower3-dkms AUR is needed. For GUI based monitoring tools, use zenmonitor AUR or zenmonitor3-git AUR for Zen 3 CPUs.

Power management, undervolting and overclocking

  • RyzenAdj — RyzenAdj is a command-line tool that can adjust power management settings for Ryzen mobile processors.
  • Ryzen Controller — Ryzen Controller is a GUI for RyzenAdj.
  • amdctl — amdctl is a command-line tool for under/over clocking/volting AMD CPUs, currently supporting AMD CPU families 10h, 11h, 12h, 15h, 16h, 17h and 19h.
  • ZenStates-Linux — ZenStates is a command-line tool to adjust the clock speed and voltage. A detailed setup example is given in Level1Techs forum.
Читайте также:  Распаковка tar xz linux консоль

Compiling a kernel

See Gentoo:Ryzen#Kernel on enabling Ryzen support. The officially supported kernels have the required configuration by default.

Troubleshooting

Random reboots

With Ryzen 5000 series, particularly the higher-end models of 5950X and 5900X there seem to be some slight instability issues under Linux, related possibly to the 5.11+ kernel, as shown by this kernel bug. After investigating and reading reports on the Internet, It seems that out of the box, Windows seems to run the CPUs at higher voltage and lower peak frequencies, compared to the stock linux kernel, which depending on your draw from the silicon lottery could cause a host of random application crashes or hardware errors that lead to reboots. You will recognise those by dmesg logs that look like:

kernel: mce: [Hardware Error]: Machine check events logged kernel: mce: [Hardware Error]: CPU 22: Machine Check: 0 Bank 1: bc800800060c0859 kernel: mce: [Hardware Error]: TSC 0 ADDR 7ea8f5b00 MISC d012000000000000 IPID 100b000000000 kernel: mce: [Hardware Error]: PROCESSOR 2:a20f10 TIME 1636645367 SOCKET 0 APIC d microcode a201016

The CPU ID and the Processor number may vary. To solve this problem you need to supply higher voltage to your CPU so that it is stable when running at peak frequencies. The easiest way to achieve this is to use the AMD curve optimiser which is accessible via your motherboard’s bios. Access it and put a positive offset of 4 points, which will increase the voltage your CPU is getting at higher loads. It will limit overclocking potential due to higher heat dissipation requirements, but it will run stable. For more details check this forum post. When I did this for my 5950X, my processor stabilised and the frequency and voltage ranges were more similar to those observed under windows.

Screen-tearing (APU)

If you are using Xorg and are experiencing screen-tearing, see AMDGPU#Tear free rendering.

Soft lock freezing

This bug is well known and is being discussed on bugzilla and launchpad. While the solution is not the same in all cases, this one helped some users. Add the output of this command echo rcu_nocbs=0-$(($(nproc)-1)) as a kernel parameter where the command nproc just prints your CPU’s threads. For this option to be applied, you need a compiled kernel with option CONFIG_RCU_NOCB_CPU (like linux ).

A different cause for the freezes is the power saving management indicated by c-states. The maximum power saving state c6 can cause problems. Adding the kernel parameter processor.max_cstate=5 helped in some cases but other users reported that the option is not applied and the c6 state is still entered. For them, this package disable-c6-systemd AUR helped. Before using it, modprobe msr needs to be run in order to activate that kernel module.

Some laptops with Ryzen CPUs such as the HP Envy x360 15-bq100na may experience CPU soft locks which result in a frozen system. These can be avoided with the kernel parameter idle=nomwait added.

Читайте также:  Connect linux and mac

In some cases, kernel parameter pci=nomsi fixes the issue.

In some other cases, the issue is simply bad hardware, and warranty claiming the CPU for a new one may just solve your issues.

Freeze on shutdown, reboot and suspend

This seems to be related to the C6 c-state, that does not seem to be well supported (if at all) in Linux.

To fix this issue, go into UEFI Setup and search for an option labelled something like this: «Power idle control». Change its value to «Typical current idle». Note that these names are dependent on what the motherboard manufacturer calls them, so they may be a little different in your particular case.

Other less ideal solutions include disabling c-states in the UEFI Setup or adding processor.max_cstate=1 to your kernel command line arguments.

Источник

Arch Linux User Repository

Tired of compiling? Use this binary repo instead! Add this at the end of /etc/pacman.conf :

[linuxkernels] Server = http://nhameh.ovh/$repo/$arch SigLevel = Optional TrustAll 

Latest Comments

PancakeSparkle1 commented on 2023-06-24 23:02 (UTC)

@eggz Compiling again, thanks for the fix!

eggz commented on 2023-06-24 21:56 (UTC)

OK should be done, thanks again for the feedback.

eggz commented on 2023-06-24 21:40 (UTC)

Nevermind, it is CONFIG_LEDS_CLASS_MULTICOLOR. okay, gimme some time to publish it.

eggz commented on 2023-06-24 21:36 (UTC)

Its not that simple of just adding those lines, they are depending on something which I do not have in my kernel, otherwise it would have said «is not set» in my kernel config. Ill keep looking.

PancakeSparkle1 commented on 2023-06-24 20:26 (UTC) (edited on 2023-06-24 20:31 (UTC) by PancakeSparkle1)

Update on the ps4 controller driver thing, the hid-playstation driver seems to be missing from this kernel, it is provided in the stock kernel, checked the stock arch kernel config, and there is a line that enables config_hid_playstation, to be more specific, these two lines, CONFIG_HID_PLAYSTATION=m and CONFIG_PLAYSTATION_FF=y

PancakeSparkle1 commented on 2023-06-23 17:54 (UTC)

@eggz actually, it didn’t work in the previous version(6.3.8) either, I tested it before updating to 6.3.9. Trying to compile the kernel myself just in case, if you need any logs or anything, feel free to ask, one thing I’ve spotted is the controller uses the snd-usb-audio module instead of hid-sony, so it tries to behave like a usb soundcard

eggz commented on 2023-06-23 17:27 (UTC)

The latest update had no config change and I dont have a ps4 controller so its going to be hard for me to find the problem 🙂

PancakeSparkle1 commented on 2023-06-23 17:19 (UTC)

Hey! the latest update somehow broke ps4 controller support, it works on the stock arch kernel, with this kernel, the controller stays in charging mode

eggz commented on 2023-04-28 08:20 (UTC) (edited on 2023-04-28 08:21 (UTC) by eggz)

Can be activated now on select znver2 CPÜ’s using

kernel cmdparameter in grub. As the pstate driver takes precedence over de regular acpi driver its still in here as fallback, since not all znver2 cpus seem to react the same here.

eggz commented on 2023-03-11 10:13 (UTC)

Building new version of the kernel. Which is exactly the same as this one.

Copyright © 2004-2023 aurweb Development Team.

AUR packages are user produced content. Any use of the provided files is at your own risk.

Источник

Оцените статью
Adblock
detector