Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System halts [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Thu Apr 15, 2021 2:02 pm    Post subject: System halts [solved] Reply with quote

After exactly 7260 seconds the system comes to a complete halt ending the kern.log file with.

[drm:drm_atomic_helper_wait_for_flip_done] *ERROR* [CRTC:57:crtc-1] flip_done timed out
[drm:drm_atomic_helper_wait_for_flip_done] *ERROR* [CRTC:54:crtc-0] flip_done timed out
[drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CRTC:60:crtc-2] flip_done timed out

full kernel log of that run : https://pastebin.com/nygNQRMn

Im using amdgpu and an rx570 8GB [As this seems somehow GPU related]


Last edited by JohnJanzen on Wed Oct 27, 2021 6:53 pm; edited 8 times in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Thu Apr 15, 2021 2:12 pm    Post subject: Reply with quote

Hi
Welcome to Gentoo Forums!
Would it be ok with
Code:

CONFIG_DRM_KMS_HELPER=n

in /usr/src/linux/.config
plus a kernel rebuild
?
See also this
https://askubuntu.com/questions/1266668/ubuntu-20-04-very-slow-boot-drmdrm-atomic-helper-wait-for-dependencies-drm-km/1292436#1292436
_________________
:)
Back to top
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Thu Apr 15, 2021 2:26 pm    Post subject: Reply with quote

alamahant wrote:
Hi
Welcome to Gentoo Forums!
Would it be ok with
Code:

CONFIG_DRM_KMS_HELPER=n

in /usr/src/linux/.config
plus a kernel rebuild
?
See also this
https://askubuntu.com/questions/1266668/ubuntu-20-04-very-slow-boot-drmdrm-atomic-helper-wait-for-dependencies-drm-km/1292436#1292436


rebuild & boot worked.
As this takes 7260 seconds to crash, I hope I know if it does in about 2hrs

Btw is there any menuconfig way to do edit the CONFIG_DRM_KMS_HELPER key , I was told to basically never edit the .config file directly
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1391
Location: Germany

PostPosted: Thu Apr 15, 2021 2:51 pm    Post subject: Reply with quote

you can search for the key CONFIG_DRM_KMS_HELPER in menuconfig and then use the result number to jump to the entry
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Thu Apr 15, 2021 7:17 pm    Post subject: Reply with quote

It seems the drm error wasn't the error that was crash/halt ing my system

However it halted again, I took a walk (that took longer than expected) and my System still works as I come back, however 3-4 minutes after using it, it halted again

However the time it failed wasn't logged at all


I will try to get a kernel log tomorrow as it's late here.
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1391
Location: Germany

PostPosted: Fri Apr 16, 2021 8:50 am    Post subject: Reply with quote

did you do some memory and disk check? Maybe something is corrupt and leads to this error.
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Fri Apr 16, 2021 11:37 am    Post subject: Reply with quote

smartctl tells me my drive passed their check

Currently running a memtest
Back to top
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Fri Apr 16, 2021 11:38 am    Post subject: Reply with quote

Also I've seen the new kernel log has some starts with root@livecd in it, despite me not booting from the livedisk today, (will post the log when my memtest finishes)
Back to top
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Fri Apr 16, 2021 4:11 pm    Post subject: Reply with quote

The Memtest was normal [no errors] with all my ram [16GB] detected and all 12 cores of my CPU [Ryzen 5 1600x] working
Disk also hassed passed the smartctl test
result here : https://pastebin.com/94wMzn0C

The kernel Logs of Today are here
https://pastebin.com/vEBC7q7U <- link edited as it didn't paste fully


It says root@livecd at the start as my System as I rebuild my kernel with a liveUSB [Recompiled right now, so on future logs it'll say root@gentuwu]
I used chroot and mounted partitions from my normal SSD + settings of course


The last time this happened, instead of the output just getting stuck, after pressing ALT+SHIFT+F2 [Something I always try] my screens went black [with backlight still on]
Although I don't know if this was caused by the keypresses, as me logging in blindly as root and touching a file didn't leave a file in the /root directory [I could have misspelled something tho]


I might try to run Audio nonstop next time to see if it continues [And maybe even accepts commands from my keyboard][Maybe remote control through spotify will work ?]
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Fri Apr 16, 2021 5:14 pm    Post subject: Reply with quote

I've noted freezes with 5.10.27 Haven't checked kern.log
Try using 5.4.97 and see if the problem persists.
Back to top
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Fri Apr 16, 2021 7:43 pm    Post subject: Reply with quote

Idk if this system is trolling me, but since last rebuild I didn't encounter any freeze [Only 3h and 20minutes uptime yet, might run it through the night]

with constant mouse movement / drags over a browser window [Pyautogui script]

Maybe it has to do with going into Xorg power saving mode ?

Won't conduct many tests tomorrow as I am not going to be home after 1pm.
Back to top
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Sun Apr 25, 2021 8:53 am    Post subject: Reply with quote

Okay it happened again, alltough after only very little time

I turned my PC on, connected my Phone and enabled tethering

with this log
https://pastebin.com/39Z5T4Gh


first my keyboard controls where not recognized but my mouse moved, but that stopped too shortly after
Back to top
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Sun Apr 25, 2021 9:03 am    Post subject: Reply with quote

I have thought about this being an Xorg issue, as my Xorg logs are ended with "your system is too slow"
But after researching this further that doesn't seem to be the issue

Xorg log:
https://pastebin.com/U0YfFBqt


will try using prebuilt kernel / older kernel
Back to top
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Sun Apr 25, 2021 3:03 pm    Post subject: Reply with quote

It happened again, but now I can move the mouse with some "lag spikes" (freezes on spot but 1-2 seconds later I can move it again)

I can't press any keys / get no output from that, it's just a moving mouse on a background. with everything being redrawn (aka if I move my mouse, the background reapears without the mouse making a "trail")
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sun Apr 25, 2021 6:01 pm    Post subject: Reply with quote

Can you click on anything and see an effect?
Back to top
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Mon Apr 26, 2021 12:04 pm    Post subject: Reply with quote

No, neither dwm nor any Graphical programs, seem to register anything
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Mon Apr 26, 2021 12:54 pm    Post subject: Reply with quote

Same here, but not as regular as yours. The first time I used the power button but thereafter, I've gone to another computer, ssh'd in and rebooted. The fact that we can ssh means the processor isn't frozen. Yes, it must be Xorg. There were a lot of changes in the last year. I wonder if I (we?) revert to an older version, the problems will dsappear.
Back to top
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 17

PostPosted: Wed Oct 27, 2021 6:53 pm    Post subject: Reply with quote

I actually found out what caused this a while ago.

It was the C states of the ryzen 1x00 series not being correct / non existant at level 6
Which is used for powersaving, wich explains why the freeze didn't occur under full load but only when the system goes idle.

And it is fixed by disabling the C6 state. (Using tools like zenstates.py)
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Wed Oct 27, 2021 6:55 pm    Post subject: Reply with quote

Ah! Unfortunately, it doesn't happen on my 2700X but on my Phenom II X6
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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