[Solved] Complete system freezes randomly

Hi Guys,

I installed Manjaro using Architect on testing branch yesterday (wanted the 5.7.6 kernel for brightness fix), and am now on stable branch.. and did a whole bunch of app installations (and fixes related touchpad as per archwiki) and some customizations yesterday all went good..

But today while i was watching some netflix, the video froze, (I can still hear the audio)
Hitting Space seems to be actually pausing the video somehow (because audio was stopping) and resuming if it hit it again, but the mouse won't move, Alt+F4 or Alt+Ctrl+Del or none of those worked, so i had to longpress the powerkey to force it down (assume this is called hard reset)

Then after reboot, had same issue - Boot 2

Another hard reset and was doing some ML (CPU usage at 100%), but everything was fine for sometime and the system froze again.. - Boot 3

Force-Reboot Again
Again ran the same ML stuff, assuming brave browser could be causing the issue, i tried using vivaldi (first time launch, so no extensions or anything installed), yet it froze again

I received the laptop after around 2 months of waiting, hope this is not any hardware issue :cry:

Below are the logs/info for commands i see often here (Attached journalctl log for Boot 2 and 3)

inxi -Fxxxz

System:    Host: winterfell Kernel: 5.7.6-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 Desktop: KDE Plasma 5.19.2 
           tk: Qt 5.15.0 info: latte-dock wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Laptop System: LENOVO product: 81YQ v: IdeaPad 5 15ARE05 serial: <filter> Chassis: type: 10 
           v: IdeaPad 5 15ARE05 serial: <filter> 
           Mobo: LENOVO model: LNVNB161216 v: No DPK serial: <filter> UEFI: LENOVO v: E7CN24WW date: 03/25/2020 
Battery:   ID-1: BAT0 charge: 38.3 Wh condition: 72.6/70.0 Wh (104%) volts: 15.3/15.0 model: SMP L19M4PF1 type: Li-poly 
           serial: <filter> status: Discharging cycles: 2 
CPU:       Topology: 8-Core model: AMD Ryzen 7 4800U with Radeon Graphics bits: 64 type: MT MCP arch: Zen rev: 1 
           L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 57526 
           Speed: 1397 MHz min/max: 1400/1800 MHz boost: enabled Core speeds (MHz): 1: 1399 2: 1398 3: 1399 4: 1395 5: 1397 
           6: 1397 7: 1392 8: 1396 9: 1397 10: 1394 11: 1400 12: 1397 13: 1400 14: 1393 15: 1395 16: 1395 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Renoir vendor: Lenovo driver: amdgpu v: kernel bus ID: 03:00.0 
           chip ID: 1002:1636 
           Display: x11 server: X.Org 1.20.8 driver: amdgpu FAILED: ati unloaded: modesetting alternate: fbdev,vesa 
           compositor: kwin_x11 resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD RENOIR (DRM 3.37.0 5.7.6-1-MANJARO LLVM 10.0.0) v: 4.6 Mesa 20.1.2 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 03:00.1 
           chip ID: 1002:1637 
           Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo driver: N/A 
           bus ID: 03:00.5 chip ID: 1022:15e2 
           Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 03:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.7.6-1-MANJARO 
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus ID: 01:00.0 chip ID: 8086:2723 
           IF: wlp1s0 state: up mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 190.80 GiB (40.0%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730 SDBPNTY-512G-1101 size: 476.94 GiB speed: 31.6 Gb/s 
           lanes: 4 serial: <filter> rev: 11130001 scheme: GPT 
Partition: ID-1: / size: 200.00 GiB used: 26.03 GiB (13.0%) fs: btrfs dev: /dev/nvme0n1p2 
           ID-2: /home size: 200.00 GiB used: 26.03 GiB (13.0%) fs: btrfs dev: /dev/nvme0n1p2 
Sensors:   System Temperatures: cpu: 43.6 C mobo: N/A gpu: amdgpu temp: 42 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 371 Uptime: 28m Memory: 15.07 GiB used: 2.26 GiB (15.0%) Init: systemd v: 245 Compilers: gcc: 10.1.0 
           Shell: zsh v: 5.8 running in: konsole inxi: 3.0.37 
    ~ 

journalctl -b-3 -p err

                                                                                                                                                            ✔  took 19s   
-- Logs begin at Fri 2020-06-26 22:25:44 BST, end at Sun 2020-06-28 00:40:31 BST. --
Jun 27 21:02:33 winterfell kernel: pci 0000:00:00.2: AMD-Vi: Unable to read/write to IOMMU perf counter.
Jun 27 21:02:33 winterfell kernel: snd_pci_acp3x 0000:03:00.5: Invalid ACP audio mode : 0
Jun 27 21:02:35 winterfell systemd-backlight[2443]: Failed to get backlight or LED device 'backlight:acpi_video0': No such device
Jun 27 21:02:35 winterfell systemd[1]: Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video0.
Jun 27 21:02:35 winterfell kernel: [drm:mod_hdcp_add_display_to_topology [amdgpu]] *ERROR* Failed to add display topology, DTM TA is not initialized.
Jun 27 21:02:41 winterfell sddm-helper[2598]: gkr-pam: unable to locate daemon control file
Jun 27 21:02:43 winterfell bluetoothd[2508]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Jun 27 21:02:43 winterfell bluetoothd[2508]: RFCOMM server failed for :1.50/Profile/HSPHS/00001108-0000-1000-8000-00805F9B34FB: rfcomm_bind: Address already in use (98)
Jun 27 21:11:04 winterfell kernel: [drm:dc_commit_updates_for_stream [amdgpu]] *ERROR* Mode validation failed for stream update!
Jun 27 21:11:14 winterfell kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:56:crtc-0] flip_done timed out
Jun 27 21:11:21 winterfell kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:56:crtc-0] flip_done timed out
Jun 27 21:11:21 winterfell kernel: [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* got no status for stream 0000000054c47f38 on acrtc000000003c772d3a
Jun 27 21:12:03 winterfell kernel: [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* got no status for stream 0000000054c47f38 on acrtc000000003c772d3a-- Logs begin at Fri 2020-06-26 22:25:44 BST, end at Sun 2020-06-28 00:40:31 BST. --
Jun 27 21:02:33 winterfell kernel: pci 0000:00:00.2: AMD-Vi: Unable to read/write to IOMMU perf counter.
Jun 27 21:02:33 winterfell kernel: snd_pci_acp3x 0000:03:00.5: Invalid ACP audio mode : 0
Jun 27 21:02:35 winterfell systemd-backlight[2443]: Failed to get backlight or LED device 'backlight:acpi_video0': No such device
Jun 27 21:02:35 winterfell systemd[1]: Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video0.
Jun 27 21:02:35 winterfell kernel: [drm:mod_hdcp_add_display_to_topology [amdgpu]] *ERROR* Failed to add display topology, DTM TA is not initialized.
Jun 27 21:02:41 winterfell sddm-helper[2598]: gkr-pam: unable to locate daemon control file
Jun 27 21:02:43 winterfell bluetoothd[2508]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Jun 27 21:02:43 winterfell bluetoothd[2508]: RFCOMM server failed for :1.50/Profile/HSPHS/00001108-0000-1000-8000-00805F9B34FB: rfcomm_bind: Address already in use (98)
Jun 27 21:11:04 winterfell kernel: [drm:dc_commit_updates_for_stream [amdgpu]] *ERROR* Mode validation failed for stream update!
Jun 27 21:11:14 winterfell kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:56:crtc-0] flip_done timed out
Jun 27 21:11:21 winterfell kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:56:crtc-0] flip_done timed out
Jun 27 21:11:21 winterfell kernel: [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* got no status for stream 0000000054c47f38 on acrtc000000003c772d3a
Jun 27 21:12:03 winterfell kernel: [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* got no status for stream 0000000054c47f38 on acrtc000000003c772d3a

journalctl -b-2 -p err

-- Logs begin at Fri 2020-06-26 22:25:44 BST, end at Sun 2020-06-28 00:49:31 BST. --
Jun 27 21:13:34 winterfell kernel: pci 0000:00:00.2: AMD-Vi: Unable to read/write to IOMMU perf counter.
Jun 27 21:13:34 winterfell kernel: snd_pci_acp3x 0000:03:00.5: Invalid ACP audio mode : 0
Jun 27 21:13:36 winterfell systemd-backlight[2434]: Failed to get backlight or LED device 'backlight:acpi_video0': No such device
Jun 27 21:13:36 winterfell systemd[1]: Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video0.
Jun 27 21:13:36 winterfell kernel: [drm:mod_hdcp_add_display_to_topology [amdgpu]] *ERROR* Failed to add display topology, DTM TA is not initialized.
Jun 27 21:13:39 winterfell sddm-helper[2598]: gkr-pam: unable to locate daemon control file
Jun 27 21:13:41 winterfell bluetoothd[2503]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Jun 27 21:13:41 winterfell bluetoothd[2503]: RFCOMM server failed for :1.60/Profile/HSPHS/00001108-0000-1000-8000-00805F9B34FB: rfcomm_bind: Address already in use (98)
Jun 27 23:30:33 winterfell systemd-coredump[167420]: Process 147129 (jupyterlab) of user 1000 dumped core.
                                                     
                                                     Stack trace of thread 147189:
                                                     #0  0x0000560fb13abcc9 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x540fcc9)
                                                     #1  0x0000560fb13ab65b n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x540f65b)
                                                     #2  0x0000560faff249a8 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f889a8)
                                                     #3  0x0000560faff354b4 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f994b4)
                                                     #4  0x0000560faff35242 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f99242)
                                                     #5  0x0000560fafef6781 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f5a781)
                                                     #6  0x0000560faff35aa4 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f99aa4)
                                                     #7  0x0000560faff0f93e n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f7393e)
                                                     #8  0x0000560faff4b817 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3faf817)
                                                     #9  0x0000560faff84c25 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3fe8c25)
                                                     #10 0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #11 0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147200:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147175:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147172:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147181:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147197:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147186:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147165:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147180:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147176:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147201:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147204:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147168:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147198:
                                                     #0  0x00007f2d8d71ce32 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfe32)
                                                     #1  0x00007f2d87fe767c n/a (radeonsi_dri.so + 0x4af67c)
                                                     #2  0x00007f2d87fe6078 n/a (radeonsi_dri.so + 0x4ae078)
                                                     #3  0x00007f2d8d716422 start_thread (libpthread.so.0 + 0x9422)
                                                     #4  0x00007f2d8c0ffbf3 __clone (libc.so.6 + 0xffbf3)
                                                     
                                                     Stack trace of thread 147129:
                                                     #0  0x00007f2d8c0f505f __poll (libc.so.6 + 0xf505f)
                                                     #1  0x00007f2d8d26363b n/a (libxcb.so.1 + 0xc63b)
                                                     #2  0x00007f2d8d26545b xcb_wait_for_special_event (libxcb.so.1 + 0xe45b)
                                                     #3  0x00007f2d8934e381 n/a (libGLX_mesa.so.0 + 0x57381)
                                                     #4  0x00007f2d8934232b n/a (libGLX_mesa.so.0 + 0x4b32b)
                                                     #5  0x0000560fb0b9bf7c n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x4bfff7c)
                                                     #6  0x0000560fb0b9d443 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x4c01443)
                                                     #7  0x0000560faff249a8 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f889a8)
                                                     #8  0x0000560faff354b4 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f994b4)
                                                     #9  0x0000560faff35242 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f99242)
                                                     #10 0x0000560fafef6a9a n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f5aa9a)
                                                     #11 0x0000560faff35aa4 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f99aa4)
                                                     #12 0x0000560faff0f93e n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3f7393e)
                                                     #13 0x0000560fb2bc7a49 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x6c2ba49)
                                                     #14 0x0000560faf2f43ab n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x33583ab)
                                                     #15 0x0000560faf2f5518 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x3359518)
                                                     #16 0x0000560fb13fb4fa n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x545f4fa)
                                                     #17 0x0000560fae66e221 n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x26d2221)
                                                     #18 0x0000560fada6443d n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x1ac843d)
                                                     #19 0x00007f2d8c027002 __libc_start_main (libc.so.6 + 0x27002)
                                                     #20 0x0000560fada6416a n/a (/home/royce/apps/jupyterlab-linux-x64/jupyterlab + 0x1ac816a)

Edit: I ran memtest86 from grub and also ran mprime type blend torture test for about 40-50 mins, so think the hardware is good

Note: Solved, i am marking 5.7.4 by @Phil2Sat as solution as i have tried only that version and solved my issues, others can try other versions 5.7.6 and 5.7.7 as needed. I will update here if i try them

Hello :slightly_smiling_face:!
Just a quick side note - are you using Timeshift and if yes do you use RSYNC mode? If yes, let me know, if no, just forget about that.
As far as the error messages tells, there seems to be an issue with the Machine Learning stuff you're trying to do. You system may run out of CPU power to maintain a running kernel.
Can you try to run whatever the ML apllication is with the prefix nice -n 19 ionice -c 3?
This prefix will lower the priority of the ML processes to give your system more headroom.
e.g.

nice -n 19 ionice -c 3 python3 <name_of_ml_python_file>.py

Another possibility is your system running out of RAM.
Do you have swap on your system? If yes, how much? Can you audit you ram usage while doing ML and check if you run out of RAM? For example, compiling TensorFlow with an 8-Core CPU requires at least 32GB RAM, which isn't too common even these days.

1 Like

Hi, I m using Timeshift with btrfs snapshot mode

And the first 2 freezes happened when I was running only browser with netflix on it

And for the ML stuff (it's just basic stuff, no high level tensor low), I randthe same on my 6 year old laptop (which was on deepin), and it went good there, I wanted to compare the performance times with the new one..

But anyway I will give it a try and see, if that solves in that particular scenario, but the low CPU netflix scenario still remains

Ryzen processors (especially the 1000 and 2000 series) are notorious for freezing randomly on Linux (see this bug report). Have you already tried following the below tutorial post?

I've not had my PC freeze on me ever since I applied those tweaks several months ago.

1 Like

awesome, let me go through that post and apply it and see how it goes

Just an update

@acarasimon96
i tried using iommu=soft, but it didn't work
i haven't yet tried the soft lock thing because i don't see the soft lock error message anywhere in my log (even after 7 freezes till now)

@DarkWav
I was actually running a jupyter notebook, i launched it on firefox and ran it and it went fine
came to brave again and it froze...

Till now i had 7 freezes, my analysis or guesses as below (experts here can point out my wrong guesses :slight_smile: )
Good / Hopeful guesses to eliminate hardware problem

  • Doesn't seem to be CPU issue, freezes happened during both high CPU load and Low CPU load. Also did mprime torture test for about 40-50 mins
  • Doesn't seem to be RAM issue either, my RAM usage was around 9GB during the ML tests, around 4GB on average during other use cases. Also ran the memtest86+ from grub and it said all good too
  • Another support for the above 2 arguments is i ran the same ML test on my 6 year old hardware and it ran fine there

Now coming to the bad parts - Possible suspects

  • All the 7 freezes seems to have happened when i was using one of the chromium browser (Vivaldi / Brave), unless i forgot any
  • As everyone is saying AMD GPU compatablity could be the issue, as i can notice the animations being laggy sometimes
  • I just switched to latest 5.6 stable (5.6.16) instead of 5.7.6 which is still on testing branch, to see if its the kernel (but drawback is i am locked at 90% brightness). As of past couple of hours there is no freeze. I used brave, ran the same ML test, with a youtube video playing in the background and me parallelly doing my other work). As its just been couple of hours since i moved to this kernel, i can't confirm it fixed the issue, but will update again after more usage

I appreciate the update. That sounds like the iommu=soft kernel parameter didn't help, so try updating your BIOS first, then if that doesn't make the freezing go away, try each of these steps one by one (i.e. move on to the next one after the system freezes):

See the tutorial post for details on how to do steps 2 and 3.

Also, do you have entries in journalctl that look something like below?

If you have those types of messages, then you're most likely experiencing that nasty issue.

Not sure how to update the Bios,
Moreover, just got my laptop delivered yesterday (and the laptop was up for orders only from april end), so probably the bios is latest, if not i m not sure if playing with it will void the warrenty or something :frowning:

I don't have Power Supply idle control or anything similar to it in the bios setting, but there was some setting called "AMD Security Processor", not sure what it does though

Steps 2, 3 i will try out if the issue still repeats (after my current kernel downgrade as describe in previous reply) :slight_smile:

And for the soft lock, i don't see any messages with soft lock in journalctl (journalctl | grep "soft lock")
But thanks for that post, will keep you updated :+1: :+1:

1 Like

Either you aren't looking hard enough for it, or you need to update your BIOS. Every AMD MOBO should have it, at least from what I've seen. Unless laptop manufacturers sucks and leave out a ton of functionality. That was the ONLY thing I needed to do to make my computer fully stable.

Location of it is dependent on each MOBO manufacturer, but for me with my Asrock, it's:

Advanced > AMD CBS > Power Supply Idle Control > Typical Current Idle

1 Like

Those are the only config available on my bios

I own a HP Envy 13-ay0251ng (Ryzen 4500U + Vega 8) and experience the exact same freezes. I tried Kernel 5.7 and Kernel 5.8RC3 without success.
I think its the gpu that locks up with this error:

[ 5440.974625] [drm:dc_commit_updates_for_stream [amdgpu]] ERROR Mode validati on failed for stream update!
[ 5451.093408] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] ERRO R [CRTC:56:crtc-0] flip_done timed out

I find the exact same message in my journal. HP locked down the BIOS pretty much, i also don´t have any advanced options in my BIOS settings.

The BIOS in many Lenovo Laptops are really simple (maybe except the Lenovo Thinkpad series)...

Mine is 4800u, did you have any success with 5.6?

I tried a downgrade to 5.6 but i get a kernel panic caused by amdgpu after booting it, so i came back to 5.8rc3

You're thinking about PC BIOS-es, right?
On laptops the BIOS is usually as bare-bones as it gets. Mine with a 2500U has even fewer options than what GeethanadhP shows...

@GeethanadhP how it worked with my HP laptop is that the BIOS update gets done through some Windows-only utility from the website (or preinstalled)

You can download the BIOS-Upgrader for HP on Windows on another PC and create the USB-Update-Stick for upgrading on another device. This is what I have done with my Envy on Linux.

yaa i checked the lenovo website, they gave a exe file to run from windows, but looking at the change log dont think that adds any new config setting in the menu, so don't plan on installing windows just for that

I'm using Arch Linux and I had the same freeze.
I have a ThinkPad E14 (Gen2) Ryzen 5 4500U. I added idle=nomwait to the kernel options, and it no longer freezes.
(However, I'm not sure if this is a solution or not, so I'm writing to you.)

1 Like

I will give it a try, I m good with anything that can make my laptop usable without have to punch the power button hard 5 times a day

1 Like

Switching the kernel option didn't completely eliminate the freezing, but it did reduce the number of times it froze.

Forum kindly sponsored by