X crash when I turn off monitor

When I turn off my monitor I get the crash below. Linux 5.17.6-300.fc36.x86_64, NVIDIA-SMI 515.43.04 Driver Version: 515.43.04 CUDA Version: 11.7

Any ideas? Thanks


[ 1337.358504] WARNING: CPU: 3 PID: 2525 at drivers/gpu/drm/drm_gem_shmem_helper.c:302 drm_gem_shmem_vmap+0x181/0x190
[ 1337.358510] Modules linked in: dm_crypt rfcomm snd_seq_dummy snd_hrtimer xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_nat_tftp nft_objref nf_conntrack_tftp bridge stp llc nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_tables ebtable_nat ebtable_broute ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_raw iptable_security ip_set nfnetlink ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables qrtr bnep sunrpc vfat fat nvidia_drm(POE) nvidia_modeset(POE) nvidia_uvm(POE) nvidia(POE) intel_rapl_msr intel_rapl_common intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp coretemp ath10k_pci kvm_intel ath10k_core snd_hda_codec_realtek snd_hda_codec_hdmi kvm snd_hda_codec_generic iTCO_wdt intel_pmc_bxt snd_hda_intel ee1004 irqbypass iTCO_vendor_support snd_intel_dspcfg mac80211
[ 1337.358541] dell_smm_hwmon snd_intel_sdw_acpi mei_hdcp mei_pxp rapl intel_cstate libarc4 ath snd_hda_codec intel_uncore btusb dell_wmi cfg80211 ledtrig_audio i2c_i801 btrtl sparse_keymap pcspkr dell_smbios snd_hda_core btbcm dcdbas dell_wmi_descriptor btintel wmi_bmof snd_hwdep i2c_smbus mei_me snd_seq btmtk mei snd_seq_device bluetooth idma64 snd_pcm joydev snd_timer snd ecdh_generic rfkill soundcore acpi_pad zram hid_logitech ff_memless crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel r8169 uas usb_storage video wmi pinctrl_sunrisepoint fuse ipmi_devintf ipmi_msghandler
[ 1337.358566] CPU: 3 PID: 2525 Comm: Xorg Tainted: P OE 5.17.6-300.fc36.x86_64 #1
[ 1337.358568] Hardware name: Dell Inc. Inspiron 5680/0PXWHK, BIOS 1.3.2 07/18/2018
[ 1337.358569] RIP: 0010:drm_gem_shmem_vmap+0x181/0x190
[ 1337.358572] Code: c5 e9 5c ff ff ff 48 8d ab 48 01 00 00 48 89 ef e8 54 88 4c 00 48 89 df e8 ac f2 ff ff 48 89 ef e8 b4 82 4c 00 e9 35 ff ff ff <0f> 0b 41 be fb ff ff ff e9 1a ff ff ff 66 90 e9 6b fe ff ff cc cc
[ 1337.358573] RSP: 0018:ffffb261070ebc00 EFLAGS: 00010202
[ 1337.358575] RAX: 0000000000000000 RBX: ffff9661b0882600 RCX: ffffffffa1e10b28
[ 1337.358576] RDX: 0000000000000000 RSI: 8000000062067063 RDI: ffff9661b0883a28
[ 1337.358577] RBP: 0000000000000000 R08: ffff9661799a8a28 R09: ffff9661799a8f10
[ 1337.358578] R10: 0000000000000320 R11: ffffb2610df0d000 R12: ffff96615ca3fc98
[ 1337.358579] R13: ffff9661b0882798 R14: 0000000000000000 R15: ffff9660b3984700
[ 1337.358580] FS: 00007f8169f4efc0(0000) GS:ffff9662adec0000(0000) knlGS:0000000000000000
[ 1337.358582] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1337.358583] CR2: 000055d818d2c180 CR3: 000000014437a002 CR4: 00000000003706e0
[ 1337.358584] Call Trace:
[ 1337.358586]
[ 1337.358588] drm_gem_vmap+0x1e/0x40
[ 1337.358592] drm_gem_fb_vmap+0x39/0x100
[ 1337.358595] drm_atomic_helper_prepare_planes+0x74/0x150
[ 1337.358598] drm_atomic_helper_commit+0x6f/0x140
[ 1337.358600] drm_atomic_helper_set_config+0x6d/0xa0
[ 1337.358602] drm_mode_setcrtc+0x36d/0x760
[ 1337.358605] ? drm_mode_getcrtc+0x170/0x170
[ 1337.358607] drm_ioctl_kernel+0x9e/0x140
[ 1337.358608] drm_ioctl+0x21c/0x410
[ 1337.358610] ? drm_mode_getcrtc+0x170/0x170
[ 1337.358612] __x64_sys_ioctl+0x8d/0xc0
[ 1337.358615] do_syscall_64+0x3a/0x80
[ 1337.358617] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 1337.358620] RIP: 0033:0x7f816a7ca1bf
[ 1337.358637] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
[ 1337.358639] RSP: 002b:00007ffdd9c41580 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 1337.358640] RAX: ffffffffffffffda RBX: 00007ffdd9c416c0 RCX: 00007f816a7ca1bf
[ 1337.358641] RDX: 00007ffdd9c41610 RSI: 00000000c06864a2 RDI: 0000000000000017
[ 1337.358642] RBP: 00007ffdd9c41610 R08: 0000000000000000 R09: 000055d819c6e7c0
[ 1337.358643] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000c06864a2
[ 1337.358644] R13: 0000000000000017 R14: 000055d818f4c620 R15: 0000000000000001
[ 1337.358646]
[ 1337.358647] —[ end trace 0000000000000000 ]—
nvidia-bug-report.log.gz (334.3 KB)

It seems Xorg gets confused by simple_drm, thinking there’s a second gpu and trying to enable prime, which doesn’t work. Did this also happen with an earlier driver or kernel?

No. First this has ever happened.

Note other computers (laptop) with same OS, nvidia driver (but a different card) work fine.

using boot option nvidia-drm.modeset=1 has improved things. not so sure it is a full fix. still testing.

i see much of what’s been said in other threads about fedora36 and frame buffers.