Arch Linux: System Freeze NVIDIA: Wait for channel idle timed out

My Desktop keeps freezing any time for a minute or two. Just before the system resumed working as normal I can see “(WW) NVIDIA: Wait for channel idle timed out.”
Here are the logs just after freeze: http://0x0.st/o1Cj.txt

Thanks for reporting the problem. Can you please share complete bug report and confirm if freeze happens while running particular application or it’s complete random.

/usr/lib/gdm3/gdm-x-session[1314]: (EE) NVIDIA(0):     recover...
Apr 28 22:41:42 ASUS-TUF-Gaming-F17-- kernel: [ 4505.659439] NVRM: GPU at PCI:0000:01:00: GPU-e855c7dc-5820-b61d-1071-e40298b0aa08
Apr 28 22:41:42 ASUS-TUF-Gaming-F17-- kernel: [ 4505.659443] NVRM: Xid (PCI:0000:01:00): 109, pid=1316, name=Xorg, Ch 00000008, errorString CTX SWITCH TIMEOUT, Info 0x34005
Apr 28 22:41:42 ASUS-TUF-Gaming-F17-- kernel: [ 4505.659443] 
Apr 28 22:41:43 ASUS-TUF-Gaming-F17-- kernel: [ 4506.952766] sched: RT throttling activated
Apr 28 22:41:44 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (II) event6  - Logitech G502 HERO Gaming Mouse: SYN_DROPPED event - some input events have been lost.
Apr 28 22:41:48 ASUS-TUF-Gaming-F17-- kernel: [ 4511.449242] NVRM: Xid (PCI:0000:01:00): 109, pid=1482, name=gnome-shell, Ch 00000010, errorString CTX SWITCH TIMEOUT, Info 0x54005
Apr 28 22:41:48 ASUS-TUF-Gaming-F17-- kernel: [ 4511.449242] 
Apr 28 22:41:48 ASUS-TUF-Gaming-F17-- kernel: [ 4511.450197] NVRM: Xid (PCI:0000:01:00): 109, pid=1482, name=gnome-shell, Ch 00000010, errorString CTX SWITCH TIMEOUT, Info 0x54005
Apr 28 22:41:48 ASUS-TUF-Gaming-F17-- kernel: [ 4511.450197] 
Apr 28 22:41:49 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (WW) NVIDIA: Wait for channel idle timed out.
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (EE) NVIDIA(GPU-0): Failed to initialize DMA.
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (EE) NVIDIA(0): Failed to allocate push buffer
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (EE) NVIDIA(0): Error recovery failed.
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (EE) NVIDIA(0):  *** Aborting ***
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (EE)
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: Fatal server error:
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (EE) Failed to recover from error!
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (EE)
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (EE)
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: Please consult the The X.Org Foundation support
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: #011 at http://wiki.x.org
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]:  for help.
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
Apr 28 22:41:52 ASUS-TUF-Gaming-F17-- /usr/lib/gdm3/gdm-x-session[1314]: (EE)
Apr 28 22:41:55 ASUS-TUF-Gaming-F17-- kernel: [ 4519.018455] nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
Apr 28 22:42:23 ASUS-TUF-Gaming-F17-- kernel: [ 4546.516751] NVRM: Xid (PCI:0000:01:00): 109, pid=1026, name=nvidia-persiste, Ch 00000001, errorString CTX SWITCH TIMEOUT, Info 0x14005
Apr 28 22:42:23 ASUS-TUF-Gaming-F17-- kernel: [ 4546.516751] 
Apr 28 22:42:23 ASUS-TUF-Gaming-F17-- kernel: [ 4546.517689] NVRM: Xid (PCI:0000:01:00): 109, pid=1026, name=nvidia-persiste, Ch 00000001, errorString CTX SWITCH TIMEOUT, Info 0x14005
Apr 28 22:42:23 ASUS-TUF-Gaming-F17-- kernel: [ 4546.517689] 

ubuntu 20 kernel 6.2.8 driver 530

4060