Manjaro freezes when I am watching video or playing games

My manjaro freezes randomly when I am watching videos or playing games and I have no idea how to fix it.

I tried adding iommu=pt idle=nomwait rcu_nocbs=0-11 kernel parameters as suggested in this post but no luck.

I am using a APU. lscpu output:

Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   48 bits physical, 48 bits virtual
CPU(s):                          12
On-line CPU(s) list:             0-11
Thread(s) per core:              2
Core(s) per socket:              6
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       AuthenticAMD
CPU family:                      23
Model:                           96
Model name:                      AMD Ryzen 5 PRO 4400G with Radeon Graphics
Stepping:                        1
Frequency boost:                 enabled
CPU MHz:                         1391.680
CPU max MHz:                     3700.0000
CPU min MHz:                     1400.0000
BogoMIPS:                        7400.52
Virtualization:                  AMD-V
L1d cache:                       192 KiB
L1i cache:                       192 KiB
L2 cache:                        3 MiB
L3 cache:                        8 MiB
NUMA node0 CPU(s):               0-11
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full AMD retpoline, IBPB conditional, IBRS_FW, STIBP conditional, RSB filling
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif umip rdpid overflow_recov succor smca

The output of journalctl -b0 is too long so I pasted it here

Any suggestions?

inxi -Fxz:

System:    Kernel: 5.10.30-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 Desktop: GNOME 3.38.4 Distro: Manjaro Linux 
           base: Arch Linux 
Machine:   Type: Desktop Mobo: Micro-Star model: B550M PRO-VDH WIFI (MS-7C95) v: 1.0 serial: <filter> 
           UEFI: American Megatrends v: 2.00 date: 06/04/2020 
CPU:       Info: 6-Core model: AMD Ryzen 5 PRO 4400G with Radeon Graphics bits: 64 type: MT MCP arch: Zen 2 rev: 1 cache: 
           L2: 3 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 88806 
           Speed: 1499 MHz min/max: 1400/3700 MHz boost: enabled Core speeds (MHz): 1: 1499 2: 1941 3: 1400 4: 1400 5: 3000 
           6: 1400 7: 1400 8: 1400 9: 1500 10: 1413 11: 2999 12: 1400 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Renoir driver: amdgpu v: kernel bus-ID: 30:00.0 
           Display: x11 server: 1.20.11 driver: loaded: amdgpu,ati unloaded: modesetting resolution: <missing: xdpyinfo> 
           OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.10.30-1-MANJARO LLVM 11.1.0) v: 4.6 Mesa 21.0.2 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 30:00.1 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel 
           bus-ID: 30:00.6 
           Sound Server-1: ALSA v: k5.10.30-1-MANJARO running: yes 
           Sound Server-2: JACK v: 0.125.0 running: no 
           Sound Server-3: PulseAudio v: 14.2 running: yes 
           Sound Server-4: PipeWire v: 0.3.25 running: yes 
Network:   Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi v: kernel bus-ID: 29:00.0 
           IF: wlo1 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI driver: r8169 v: kernel 
           port: f000 bus-ID: 2a:00.0 
           IF: enp42s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Bluetooth: Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-9:5 
           Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends 
Drives:    Local Storage: total: 1.38 TiB used: 167.05 GiB (11.9%) 
           ID-1: /dev/nvme0n1 vendor: Colorful model: CN600 512GB size: 476.94 GiB temp: 36.9 C 
           ID-2: /dev/sda vendor: Western Digital model: WD10EZEX-22MFCA0 size: 931.51 GiB 
Partition: ID-1: / size: 78.24 GiB used: 43.07 GiB (55.0%) fs: ext4 dev: /dev/nvme0n1p3 
           ID-2: /boot/efi size: 511 MiB used: 27.2 MiB (5.3%) fs: vfat dev: /dev/nvme0n1p9 
           ID-3: /home size: 97.93 GiB used: 84.67 GiB (86.5%) fs: ext4 dev: /dev/nvme0n1p1 
Swap:      ID-1: swap-1 type: partition size: 7.63 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p11 
Sensors:   System Temperatures: cpu: 31.6 C mobo: 0 C gpu: amdgpu temp: 28.0 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 320 Uptime: 17m Memory: 14.57 GiB used: 2.92 GiB (20.0%) Init: systemd Compilers: gcc: 10.2.0 
           clang: 11.1.0 Packages: 1755 Shell: Zsh v: 5.8 inxi: 3.3.04 

A post was merged into an existing topic: Manjaro installation – I need help urgently - Ryzen Pro