Nvidia 460.84 drm kernel crash while suspending

Nvidia kernel drm module crashing and taking X with it, which interrupts suspend and brings it back to sddm.

reproducible every time.

kernel log:

          Jun 13 23:54:31 predator715 kernel: [  123.042457] ------------[ cut here ]------------
          Jun 13 23:54:31 predator715 kernel: [  123.042460] WARNING: CPU: 2 PID: 3729 at /var/lib/dkms/nvidia/460.84/build/nvidia-drm/nvidia-drm-drv.c:530 nv_drm_master_set+0x27/0x30 [nvidia_drm]
          Jun 13 23:54:31 predator715 kernel: [  123.042466] Modules linked in: vhost_net vhost vhost_iotlb tap udp_diag tcp_diag inet_diag uhid nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype br_netfilter ccm rfcomm xt_MASQUERADE xt_conntrack xt_CHECKSUM ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_counter nf_tables nfnetlink nvidia_uvm(POE) bridge stp llc cmac algif_hash algif_skcipher af_alg overlay bnep lz4 zram binfmt_misc nvidia_drm(POE) nvidia_modeset(POE) snd_hda_codec_hdmi intel_rapl_msr mei_hdcp intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio kvm snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi ath10k_pci snd_hda_codec crct10dif_pclmul nls_iso8859_1 ghash_clmulni_intel snd_hda_core snd_hwdep aesni_intel snd_pcm ath10k_core crypto_simd cryptd nvidia(POE) snd_seq_midi rapl ath snd_seq_midi_event intel_cstate snd_rawmidi intel_wmi_thunderbolt uvcvideo mxm_wmi btusb
          Jun 13 23:54:31 predator715 kernel: [  123.042506]  mac80211 snd_seq videobuf2_vmalloc btrtl efi_pstore serio_raw btbcm videobuf2_memops btintel acer_wmi videobuf2_v4l2 snd_seq_device bluetooth ee1004 snd_timer sparse_keymap videobuf2_common drm_kms_helper cfg80211 videodev wmi_bmof snd cec rc_core libarc4 joydev input_leds mc soundcore fb_sys_fops ecdh_generic ucsi_acpi syscopyarea ecc typec_ucsi sysfillrect sysimgblt hid_multitouch typec intel_pch_thermal mei_me mei mac_hid acpi_pad sch_fq_codel msr parport_pc ppdev drm lp parport ip_tables x_tables autofs4 btrfs blake2b_generic raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor usbhid uas raid6_pq usb_storage libcrc32c raid1 raid0 multipath linear hid_generic crc32_pclmul psmouse i2c_i801 i2c_smbus alx i2c_hid_acpi intel_lpss_pci ahci mdio i2c_hid xhci_pci intel_lpss libahci idma64 xhci_pci_renesas hid video wmi
          Jun 13 23:54:31 predator715 kernel: [  123.042560] CPU: 2 PID: 3729 Comm: gst-plugin-scan Tainted: P           OE     5.12.10-051210-generic #202106101259
          Jun 13 23:54:31 predator715 kernel: [  123.042562] Hardware name: Acer NG-PT715-51-72HE/Falcon_KLS, BIOS V1.10 06/08/2018
          Jun 13 23:54:31 predator715 kernel: [  123.042563] RIP: 0010:nv_drm_master_set+0x27/0x30 [nvidia_drm]
          Jun 13 23:54:31 predator715 kernel: [  123.042567] Code: 2f 65 d8 0f 1f 44 00 00 55 48 8b 47 38 48 8b 78 20 48 8b 05 db 5c 00 00 48 89 e5 48 8b 40 28 e8 4f 60 a0 d8 84 c0 74 02 5d c3 <0f> 0b 5d c3 0f 1f 44 00 00 0f 1f 44 00 00 55 48 89 e5 41 57 41 56
          Jun 13 23:54:31 predator715 kernel: [  123.042568] RSP: 0018:ffffb6a9c4b83b78 EFLAGS: 00010246
          Jun 13 23:54:31 predator715 kernel: [  123.042570] RAX: 0000000000000000 RBX: ffff8f2865ca3600 RCX: 0000000000000008
          Jun 13 23:54:31 predator715 kernel: [  123.042571] RDX: ffffffffc313ce58 RSI: 0000000000000286 RDI: ffffffffc313ce20
          Jun 13 23:54:31 predator715 kernel: [  123.042572] RBP: ffffb6a9c4b83b78 R08: 0000000000000008 R09: ffffb6a9c4b83b60
          Jun 13 23:54:31 predator715 kernel: [  123.042573] R10: 0000000000000000 R11: ffff8f25439e548a R12: ffff8f263cd759c0
          Jun 13 23:54:31 predator715 kernel: [  123.042574] R13: ffff8f2548f7a000 R14: 0000000000000000 R15: ffff8f2548f7a000
          Jun 13 23:54:31 predator715 kernel: [  123.042575] FS:  00007f99d3c31740(0000) GS:ffff8f28eec80000(0000) knlGS:0000000000000000
          Jun 13 23:54:31 predator715 kernel: [  123.042576] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
          Jun 13 23:54:31 predator715 kernel: [  123.042577] CR2: 0000561241d97be8 CR3: 000000001b9c2004 CR4: 00000000003726e0
          Jun 13 23:54:31 predator715 kernel: [  123.042579] Call Trace:
          Jun 13 23:54:31 predator715 kernel: [  123.042581]  drm_new_set_master+0x7e/0x100 [drm]
          Jun 13 23:54:31 predator715 kernel: [  123.042601]  drm_master_open+0x6e/0xa0 [drm]
          Jun 13 23:54:31 predator715 kernel: [  123.042616]  drm_open+0xf8/0x250 [drm]
          Jun 13 23:54:31 predator715 kernel: [  123.042632]  drm_stub_open+0xba/0x140 [drm]
          Jun 13 23:54:31 predator715 kernel: [  123.042650]  chrdev_open+0xf7/0x220
          Jun 13 23:54:31 predator715 kernel: [  123.042654]  ? cdev_device_add+0x90/0x90
          Jun 13 23:54:31 predator715 kernel: [  123.042657]  do_dentry_open+0x156/0x370
          Jun 13 23:54:31 predator715 kernel: [  123.042660]  vfs_open+0x2d/0x30
          Jun 13 23:54:31 predator715 kernel: [  123.042661]  do_open+0x1b4/0x360
          Jun 13 23:54:31 predator715 kernel: [  123.042663]  path_openat+0x10a/0x1d0
          Jun 13 23:54:31 predator715 kernel: [  123.042665]  do_filp_open+0xa2/0x150
          Jun 13 23:54:31 predator715 kernel: [  123.042668]  ? __check_object_size+0x1c/0x20
          Jun 13 23:54:31 predator715 kernel: [  123.042670]  do_sys_openat2+0x9b/0x150
          Jun 13 23:54:31 predator715 kernel: [  123.042672]  __x64_sys_openat+0x56/0x90
          Jun 13 23:54:31 predator715 kernel: [  123.042673]  do_syscall_64+0x38/0x90
          Jun 13 23:54:31 predator715 kernel: [  123.042675]  entry_SYSCALL_64_after_hwframe+0x44/0xae
          Jun 13 23:54:31 predator715 kernel: [  123.042678] RIP: 0033:0x7f99d40db8db
          Jun 13 23:54:31 predator715 kernel: [  123.042679] Code: 25 00 00 41 00 3d 00 00 41 00 74 4b 64 8b 04 25 18 00 00 00 85 c0 75 67 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 91 00 00 00 48 8b 4c 24 28 64 48 2b 0c 25
          Jun 13 23:54:31 predator715 kernel: [  123.042681] RSP: 002b:00007ffc24513d20 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
          Jun 13 23:54:31 predator715 kernel: [  123.042683] RAX: ffffffffffffffda RBX: 0000561241d90120 RCX: 00007f99d40db8db
          Jun 13 23:54:31 predator715 kernel: [  123.042684] RDX: 0000000000080002 RSI: 0000561241d95300 RDI: 00000000ffffff9c
          Jun 13 23:54:31 predator715 kernel: [  123.042684] RBP: 0000561241d95300 R08: 00007f99d27964f0 R09: 0000561241d955c2
          Jun 13 23:54:31 predator715 kernel: [  123.042685] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080002
          Jun 13 23:54:31 predator715 kernel: [  123.042686] R13: 00007f99d2bb3120 R14: 0000561241d94ed0 R15: 00007f99d2b957a9
          Jun 13 23:54:31 predator715 kernel: [  123.042688] ---[ end trace 2209115e406f0f94 ]---

nvidia-bug-report.log.gz (621.8 KB)