Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Deadlocking on AMD Ryzen
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
zamlz
n00b
n00b


Joined: 22 Jul 2017
Posts: 42

PostPosted: Sat Jun 09, 2018 9:39 pm    Post subject: Gentoo Deadlocking on AMD Ryzen Reply with quote

Hi everyone,

I recently installed Gentoo on my desktop computer which currently uses the AMD Ryzen 5 1600.
Before I setup the kernel to utilize the zen architecture, my system would deadlock.
However this occurred quite rarely, maybe like once every 3-4 days.
I read that this might be a problem with the the software on the system not being compiled with the proper MAKEOPTS.
So I set it to znver1 and rebuilt the whole system,world, and kernel.
However while I building the whole system, 4 programs failed to be rebuilt.

  • x11-libs/libxcb-1.13:0/1.12
  • media-libs/mesa-17.3.9:0/0
  • media-gfxgraphviz-2.40.1-r1
  • x11-libs/gtk+-3.22.29:3/3

Also I tried to compile luakit and it failed under -march=znver1 but it compiled under -march=native. I wonder if its related.
While running luakit, I ended up getting frequent deadlocks within like a minute or two while using it and had to force shutdown my machine to recover.

I have not overclocked my system in any way and would like your guys help to proceed.

EDIT: Fixed typo

Thanks,
zamlz
_________________
AI/ML/Robotics/Linux - zamlz


Last edited by zamlz on Sun Jun 10, 2018 3:12 am; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Jun 10, 2018 12:11 am    Post subject: Reply with quote

ryzen+deadlock -> https://forums.gentoo.org/viewtopic-p-8169516.html#8169516
Back to top
View user's profile Send private message
zamlz
n00b
n00b


Joined: 22 Jul 2017
Posts: 42

PostPosted: Sun Jun 10, 2018 12:46 am    Post subject: Reply with quote

krinn wrote:
ryzen+deadlock -> https://forums.gentoo.org/viewtopic-p-8169516.html#8169516

krinn,

That is very much the problem that's happening on my end.
I'll try the solution that James Le Cuirot mentions in bugzilla.kernel.org and get back to you if it works.
Thanks for digging up that thread!

EDIT:
Alright, I was able to compile luakit under -march=znver1 and it seems to be running smoothly without any problems.
Thanks very much for the help.
I shall proceed to rebuild the other packages that failed under -march=znver1 as well.

I am curious why that solution fixed the compilation problem however. I figured it would only solve the problem of deadlocks.
Anyone know why?

zamlz
_________________
AI/ML/Robotics/Linux - zamlz
Back to top
View user's profile Send private message
xdarma
l33t
l33t


Joined: 08 Dec 2003
Posts: 720
Location: tra veneto e friuli (italy)

PostPosted: Sun Aug 05, 2018 1:55 pm    Post subject: Reply with quote

zamlz wrote:

I am curious why that solution fixed the compilation problem however. I figured it would only solve the problem of deadlocks.
Anyone know why?

zamlz

Hello,
maybe a useful thread: Ryzen linux kernel bug 196683 - Random Soft Lockup

So, IMO, upgrade your bios, search for the option "Power Supply Idle Control" and change to "typical" or something like. Upgrade your kernel at least to 4.17.
_________________
proud user of faKeDE-4.7.3 -> back to windowmaker -> moved to LXQt
Back to top
View user's profile Send private message
zamlz
n00b
n00b


Joined: 22 Jul 2017
Posts: 42

PostPosted: Thu Aug 30, 2018 9:47 pm    Post subject: Reply with quote

xdarma wrote:
zamlz wrote:

I am curious why that solution fixed the compilation problem however. I figured it would only solve the problem of deadlocks.
Anyone know why?

zamlz

Hello,
maybe a useful thread: Ryzen linux kernel bug 196683 - Random Soft Lockup

So, IMO, upgrade your bios, search for the option "Power Supply Idle Control" and change to "typical" or something like. Upgrade your kernel at least to 4.17.


Hmmm. I upgrade to 4.17.17 but I started getting some random deadlocks for some reason. Went back down to 4.14.65 and stopped getting them. Otherwise, everything in my system seems pretty stable for the most part.
_________________
AI/ML/Robotics/Linux - zamlz
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Fri Aug 31, 2018 7:31 am    Post subject: Reply with quote

My UEFI / Bios has no option "Power Supply Idle Control".

For me, the kernel 4.17.14-gentoo works very well with Zen1 without kernel parameters.

The 4.18.xx-gentoo kernels are in my experience so far not suitable for Ryzen 5 1600 six-core.
_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
zamlz
n00b
n00b


Joined: 22 Jul 2017
Posts: 42

PostPosted: Fri Aug 31, 2018 8:11 am    Post subject: Reply with quote

Marlo wrote:
My UEFI / Bios has no option "Power Supply Idle Control".

For me, the kernel 4.17.14-gentoo works very well with Zen1 without kernel parameters.

The 4.18.xx-gentoo kernels are in my experience so far not suitable for Ryzen 5 1600 six-core.


I didn't try 4.17.14 unfortunately. I might give it a go tomorrow morning and report back how it goes.
_________________
AI/ML/Robotics/Linux - zamlz
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum