Nvidia 470 gdm(wayland) fail to start when a monitor is plugged in

if you comment out “WaylandEnable=false” in /etc/gdm/custom.conf gdm with use wayland instead of xorg.

the problem is that as soon as you plug in a monitor in gdm wayland it completely freeze and you need to restart it by pressing the power button 5seconds.
i could not find gdm’s logs /var/log/gdm is empty

Im running a 1050 4Gb mobile

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

2 Likes

I also have the same issue on a RTX2060 Mobile, running Ubuntu 21.04 and with Wayland. Running in on-demand mode (Reverse PRIME), driven by an Intel integrated graphics in modesetting, or in full NVIDIA mode.

Wayland works fine with no external displays connected, but as soon as I plug an external monitor on either the HDMI or miniDP port, it immediately freezes and I need to force-shutdown the laptop.

Those displays work fine in Xorg mode. I’ll grab a bug report as soon as I can.

I have the same issue, here is my bug report.

data (931.7 KB)

I also have this issue, seems reverse-prime is not working in wayland with the beta 470 driver

This is still happening as of 470.57. I can’t get a bug report as the machine is completely frozen (no SSH or anything).

@aplattner Is there anything we can do to help, or any workaround?

EDIT (30m later):
I could catch the following kernel panic stack trace:

Jul 24 13:31:45 veigar kernel: [ 2629.423157] ------------[ cut here ]------------
Jul 24 13:31:45 veigar kernel: [ 2629.423160] WARNING: CPU: 3 PID: 22000 at /var/lib/dkms/nvidia/470.57.02/build/nvidia-drm/nvidia-drm-drv.c:574 nv_drm_master_set+0x27/0x30 [nvidia_drm]
Jul 24 13:31:45 veigar kernel: [ 2629.423168] Modules linked in: rfcomm xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo nft_counter xt_addrtype nft_compat nf_tables libcrc32c nfnetlink br_netfilter vboxnetadp(OE) vboxnetflt(
OE) vboxdrv(OE) cmac algif_hash algif_skcipher af_alg bridge stp llc snd_usb_audio snd_usbmidi_lib overlay bnep uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev btusb btrtl btbcm mc btintel bluetooth input_leds ecdh_generic ecc binfmt_misc nls_iso8859_1 ucsi_ccg typec_ucs
i typec mei_hdcp intel_rapl_msr snd_sof_pci snd_hda_codec_realtek snd_sof_intel_hda_common snd_soc_hdac_hda snd_hda_codec_generic snd_sof_intel_hda snd_sof_intel_byt snd_sof_intel_ipc snd_sof snd_sof_xtensa_dsp snd_hda_codec_hdmi snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi ledtrig_audio snd_hda_i
ntel snd_intel_dspcfg x86_pkg_temp_thermal soundwire_intel intel_powerclamp soundwire_generic_allocation
Jul 24 13:31:45 veigar kernel: [ 2629.423216]  coretemp soundwire_cadence snd_hda_codec kvm_intel snd_hda_core snd_hwdep kvm soundwire_bus snd_soc_core rapl iwlmvm snd_compress intel_cstate ac97_bus snd_pcm_dmaengine snd_pcm mac80211 snd_seq_midi snd_seq_midi_event snd_rawmidi joydev dcdbas snd_seq dell_wmi
_descriptor wmi_bmof intel_wmi_thunderbolt efi_pstore libarc4 snd_seq_device snd_timer mxm_wmi snd ee1004 iwlwifi soundcore 8250_dw mei_me processor_thermal_device cfg80211 hid_multitouch mei processor_thermal_rfim processor_thermal_mbox processor_thermal_rapl intel_rapl_common intel_soc_dts_iosf intel_pch_
thermal int3403_thermal int340x_thermal_zone int3400_thermal acpi_thermal_rel mac_hid acpi_pad nvidia_uvm(POE) sch_fq_codel msr parport_pc ppdev lp parport ip_tables x_tables autofs4 dm_crypt usbhid nvidia_drm(POE) nvidia_modeset(POE) hid_generic nvidia(POE) i915 i2c_algo_bit nvme drm_kms_helper crct10dif_p
clmul crc32_pclmul ghash_clmulni_intel aesni_intel syscopyarea sysfillrect sysimgblt fb_sys_fops i2c_i801 cec
Jul 24 13:31:45 veigar kernel: [ 2629.423267]  crypto_simd cryptd rc_core glue_helper thunderbolt i2c_smbus nvme_core intel_lpss_pci drm intel_lpss idma64 r8169 ahci realtek i2c_hid libahci xhci_pci virt_dma i2c_nvidia_gpu xhci_pci_renesas hid wmi video pinctrl_cannonlake
Jul 24 13:31:45 veigar kernel: [ 2629.423284] CPU: 3 PID: 22000 Comm: plymouthd Tainted: P     U     OE     5.11.0-25-lowlatency #27-Ubuntu
Jul 24 13:31:45 veigar kernel: [ 2629.423286] Hardware name: Razer Blade 15 Mid 2019-Base/DA530, BIOS 1.03 06/06/2019
Jul 24 13:31:45 veigar kernel: [ 2629.423287] RIP: 0010:nv_drm_master_set+0x27/0x30 [nvidia_drm]
Jul 24 13:31:45 veigar kernel: [ 2629.423291] Code: d7 e0 c5 0f 1f 44 00 00 55 48 8b 47 48 48 8b 78 20 48 8b 05 bb 6c 00 00 48 89 e5 48 8b 40 28 e8 2f 40 1c c6 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
Jul 24 13:31:45 veigar kernel: [ 2629.423293] RSP: 0018:ffffbf6b854b7b80 EFLAGS: 00010246
Jul 24 13:31:45 veigar kernel: [ 2629.423295] RAX: 0000000000000000 RBX: ffff998ecf401200 RCX: 0000000000000008
Jul 24 13:31:45 veigar kernel: [ 2629.423297] RDX: ffffffffc2e5aed8 RSI: 0000000000000292 RDI: ffffffffc2e5aea0
Jul 24 13:31:45 veigar kernel: [ 2629.423298] RBP: ffffbf6b854b7b80 R08: 0000000000000008 R09: ffffbf6b854b7b68
Jul 24 13:31:45 veigar kernel: [ 2629.423299] R10: 0000000000000000 R11: ffff998e1a4dd6d2 R12: ffff998e93404780
Jul 24 13:31:45 veigar kernel: [ 2629.423301] R13: ffff998e1cb96000 R14: 0000000000000000 R15: ffff998e1cb96000
Jul 24 13:31:45 veigar kernel: [ 2629.423302] FS:  00007f0885e92740(0000) GS:ffff99959dac0000(0000) knlGS:0000000000000000
Jul 24 13:31:45 veigar kernel: [ 2629.423304] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 24 13:31:45 veigar kernel: [ 2629.423305] CR2: 00007f08862760d8 CR3: 0000000196e22005 CR4: 00000000003706e0
Jul 24 13:31:45 veigar kernel: [ 2629.423307] Call Trace:
Jul 24 13:31:45 veigar kernel: [ 2629.423310]  drm_new_set_master+0x7e/0x100 [drm]
Jul 24 13:31:45 veigar kernel: [ 2629.423339]  drm_master_open+0x6e/0xa0 [drm]
Jul 24 13:31:45 veigar kernel: [ 2629.423373]  drm_open+0xf8/0x250 [drm]
Jul 24 13:31:45 veigar kernel: [ 2629.423393]  drm_stub_open+0xba/0x140 [drm]
Jul 24 13:31:45 veigar kernel: [ 2629.423415]  chrdev_open+0xc7/0x240
Jul 24 13:31:45 veigar kernel: [ 2629.423419]  ? cdev_device_add+0x90/0x90
Jul 24 13:31:45 veigar kernel: [ 2629.423422]  do_dentry_open+0x156/0x370
Jul 24 13:31:45 veigar kernel: [ 2629.423425]  vfs_open+0x2d/0x30
Jul 24 13:31:45 veigar kernel: [ 2629.423428]  do_open+0x1c3/0x340
Jul 24 13:31:45 veigar kernel: [ 2629.423432]  path_openat+0x10a/0x1d0
Jul 24 13:31:45 veigar kernel: [ 2629.423434]  do_filp_open+0x8c/0x130
Jul 24 13:31:45 veigar kernel: [ 2629.423438]  ? __check_object_size+0x1c/0x20
Jul 24 13:31:45 veigar kernel: [ 2629.423441]  do_sys_openat2+0x9b/0x150
Jul 24 13:31:45 veigar kernel: [ 2629.423444]  __x64_sys_openat+0x56/0x90
Jul 24 13:31:45 veigar kernel: [ 2629.423447]  do_syscall_64+0x38/0x90
Jul 24 13:31:45 veigar kernel: [ 2629.423450]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jul 24 13:31:45 veigar kernel: [ 2629.423453] RIP: 0033:0x7f088613e8db
Jul 24 13:31:45 veigar kernel: [ 2629.423456] 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
Jul 24 13:31:45 veigar kernel: [ 2629.423458] RSP: 002b:00007ffc99a2d510 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
Jul 24 13:31:45 veigar kernel: [ 2629.423461] RAX: ffffffffffffffda RBX: 00007f0885e926c8 RCX: 00007f088613e8db
Jul 24 13:31:45 veigar kernel: [ 2629.423462] RDX: 0000000000000002 RSI: 00005583975a7660 RDI: 00000000ffffff9c
Jul 24 13:31:45 veigar kernel: [ 2629.423464] RBP: 00005583975a7660 R08: 00005583975a6820 R09: 00007f0886262600
Jul 24 13:31:45 veigar kernel: [ 2629.423466] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
Jul 24 13:31:45 veigar kernel: [ 2629.423467] R13: 00007f088623f1a8 R14: 0000000000000000 R15: 0000000000000000
Jul 24 13:31:45 veigar kernel: [ 2629.423470] ---[ end trace 784fbdbe3aeface9 ]---

Also this one, although I’m not entirely sure it’s linked:

Jul 24 12:22:35 veigar kernel: [   58.708228] [drm:__nv_drm_gem_nvkms_memory_prime_get_sg_table [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to get memory pages for NvKmsKapiMemory 0x00000000be30f152
Jul 24 12:22:35 veigar kernel: [   58.708244] BUG: kernel NULL pointer dereference, address: 000000000000000c
Jul 24 12:22:35 veigar kernel: [   58.708246] #PF: supervisor read access in kernel mode
Jul 24 12:22:35 veigar kernel: [   58.708248] #PF: error_code(0x0000) - not-present page
Jul 24 12:22:35 veigar kernel: [   58.708250] PGD 0 P4D 0 
Jul 24 12:22:35 veigar kernel: [   58.708252] Oops: 0000 [#1] PREEMPT SMP PTI
Jul 24 12:22:35 veigar kernel: [   58.708255] CPU: 5 PID: 6659 Comm: gnome-shell Tainted: P     U     OE     5.11.0-25-lowlatency #27-Ubuntu
Jul 24 12:22:35 veigar kernel: [   58.708257] Hardware name: Razer Blade 15 Mid 2019-Base/DA530, BIOS 1.03 06/06/2019
Jul 24 12:22:35 veigar kernel: [   58.708259] RIP: 0010:drm_gem_map_dma_buf+0x43/0xb0 [drm]
Jul 24 12:22:35 veigar kernel: [   58.708287] Code: 00 00 83 fe 03 74 6f 48 8b 87 40 01 00 00 48 8b 40 38 48 85 c0 74 72 41 89 f5 e8 68 95 01 d3 49 89 c4 48 3d 00 f0 ff ff 77 21 <8b> 50 0c 48 8b 7b 08 41 b8 20 00 00 00 44 89 e9 48 8b 30 e8 b5 24
Jul 24 12:22:35 veigar kernel: [   58.708290] RSP: 0018:ffffbd5c838c7998 EFLAGS: 00010207
Jul 24 12:22:35 veigar kernel: [   58.708293] RAX: 0000000000000000 RBX: ffff98570e996960 RCX: 0000000000000000
Jul 24 12:22:35 veigar kernel: [   58.708295] RDX: 0000000000000000 RSI: ffff985e1db58ac0 RDI: ffff985e1db58ac0
Jul 24 12:22:35 veigar kernel: [   58.708297] RBP: ffffbd5c838c79b0 R08: 0000000000000000 R09: ffffbd5c838c76e0
Jul 24 12:22:35 veigar kernel: [   58.708298] R10: ffffbd5c838c76d8 R11: ffffffff94154508 R12: 0000000000000000
Jul 24 12:22:35 veigar kernel: [   58.708300] R13: 0000000000000000 R14: ffff9856940179b0 R15: 0000000000000000
Jul 24 12:22:35 veigar kernel: [   58.708302] FS:  00007f6d4492d2c0(0000) GS:ffff985e1db40000(0000) knlGS:0000000000000000
Jul 24 12:22:35 veigar kernel: [   58.708305] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 24 12:22:35 veigar kernel: [   58.708307] CR2: 000000000000000c CR3: 0000000113d34001 CR4: 00000000003706e0
Jul 24 12:22:35 veigar kernel: [   58.708310] Call Trace:
Jul 24 12:22:35 veigar kernel: [   58.708313]  dma_buf_map_attachment+0x85/0x100
Jul 24 12:22:35 veigar kernel: [   58.708318]  ? fence_notify+0xef/0x12c [i915]
Jul 24 12:22:35 veigar kernel: [   58.708404]  i915_gem_object_get_pages_dmabuf+0x1c/0x70 [i915]
Jul 24 12:22:35 veigar kernel: [   58.708447]  __i915_gem_object_get_pages+0x70/0xa0 [i915]
Jul 24 12:22:35 veigar kernel: [   58.708489]  vma_get_pages+0xc9/0xe0 [i915]
Jul 24 12:22:35 veigar kernel: [   58.708532]  i915_vma_pin_ww+0x52/0x4e0 [i915]
Jul 24 12:22:35 veigar kernel: [   58.708576]  eb_validate_vmas+0x76/0x320 [i915]
Jul 24 12:22:35 veigar kernel: [   58.708616]  eb_relocate_parse+0xbd/0x1b0 [i915]
Jul 24 12:22:35 veigar kernel: [   58.708655]  i915_gem_do_execbuffer+0x42b/0xa60 [i915]
Jul 24 12:22:35 veigar kernel: [   58.708696]  ? shmem_get_pages+0x5ed/0x620 [i915]
Jul 24 12:22:35 veigar kernel: [   58.708738]  i915_gem_execbuffer2_ioctl+0xf9/0x210 [i915]
Jul 24 12:22:35 veigar kernel: [   58.708778]  ? i915_gem_execbuffer_ioctl+0x2e0/0x2e0 [i915]
Jul 24 12:22:35 veigar kernel: [   58.708817]  drm_ioctl_kernel+0xae/0xf0 [drm]
Jul 24 12:22:35 veigar kernel: [   58.708835]  drm_ioctl+0x245/0x400 [drm]
Jul 24 12:22:35 veigar kernel: [   58.708847]  ? i915_gem_execbuffer_ioctl+0x2e0/0x2e0 [i915]
Jul 24 12:22:35 veigar kernel: [   58.708888]  ? __fget_files+0x74/0xa0
Jul 24 12:22:35 veigar kernel: [   58.708892]  __x64_sys_ioctl+0x91/0xc0
Jul 24 12:22:35 veigar kernel: [   58.708895]  do_syscall_64+0x38/0x90
Jul 24 12:22:35 veigar kernel: [   58.708898]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jul 24 12:22:35 veigar kernel: [   58.708901] RIP: 0033:0x7f6d49c46ecb
Jul 24 12:22:35 veigar kernel: [   58.708902] Code: ff ff ff 85 c0 79 8b 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 6d 1f 0d 00 f7 d8 64 89 01 48
Jul 24 12:22:35 veigar kernel: [   58.708904] RSP: 002b:00007ffdf93458e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Jul 24 12:22:35 veigar kernel: [   58.708906] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6d49c46ecb
Jul 24 12:22:35 veigar kernel: [   58.708908] RDX: 00007ffdf9345910 RSI: 0000000040406469 RDI: 0000000000000012
Jul 24 12:22:35 veigar kernel: [   58.708909] RBP: 0000000000000012 R08: 0000000000000016 R09: 0000000000001021
Jul 24 12:22:35 veigar kernel: [   58.708910] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffdf9345910
Jul 24 12:22:35 veigar kernel: [   58.708912] R13: 00007f6d2d9bc198 R14: 000055cd39b4f760 R15: 000055cd39b4fc30
Jul 24 12:22:35 veigar kernel: [   58.708915] Modules linked in: xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo nft_counter xt_addrtype nft_compat nf_tables libcrc32c nfnetlink br_netfilter vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) 
bridge stp llc cmac algif_hash algif_skcipher af_alg overlay bnep snd_usb_audio snd_usbmidi_lib binfmt_misc nls_iso8859_1 btusb btrtl btbcm btintel bluetooth uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common ecdh_generic ecc videodev input_leds mc ucsi_ccg typec_ucsi typec snd_sof_pci snd_h
da_codec_realtek snd_sof_intel_hda_common snd_soc_hdac_hda snd_hda_codec_generic snd_sof_intel_hda snd_sof_intel_byt mei_hdcp snd_sof_intel_ipc snd_sof snd_sof_xtensa_dsp snd_hda_ext_core snd_hda_codec_hdmi snd_soc_acpi_intel_match intel_rapl_msr snd_soc_acpi ledtrig_audio snd_hda_intel snd_intel_dspcfg soundwire_in
tel soundwire_generic_allocation soundwire_cadence snd_hda_codec snd_hda_core
Jul 24 12:22:35 veigar kernel: [   58.708964]  snd_hwdep soundwire_bus snd_soc_core x86_pkg_temp_thermal intel_powerclamp snd_compress coretemp ac97_bus snd_pcm_dmaengine kvm_intel snd_pcm kvm snd_seq_midi snd_seq_midi_event rapl intel_cstate snd_rawmidi iwlmvm joydev snd_seq snd_seq_device dcdbas intel_wmi_thunderb
olt mac80211 dell_wmi_descriptor wmi_bmof efi_pstore snd_timer libarc4 mxm_wmi snd ee1004 soundcore iwlwifi 8250_dw mei_me cfg80211 hid_multitouch mei processor_thermal_device processor_thermal_rfim processor_thermal_mbox processor_thermal_rapl intel_rapl_common intel_soc_dts_iosf intel_pch_thermal int3403_thermal i
nt340x_thermal_zone acpi_pad int3400_thermal acpi_thermal_rel mac_hid nvidia_uvm(POE) sch_fq_codel msr parport_pc ppdev lp parport ip_tables x_tables autofs4 dm_crypt usbhid nvidia_drm(POE) hid_generic nvidia_modeset(POE) nvidia(POE) i915 i2c_algo_bit drm_kms_helper crct10dif_pclmul crc32_pclmul ghash_clmulni_intel 
syscopyarea aesni_intel sysfillrect sysimgblt fb_sys_fops cec crypto_simd rc_core
Jul 24 12:22:35 veigar kernel: [   58.709024]  cryptd r8169 nvme glue_helper i2c_i801 thunderbolt drm realtek i2c_smbus intel_lpss_pci nvme_core ahci intel_lpss idma64 libahci xhci_pci virt_dma i2c_nvidia_gpu xhci_pci_renesas i2c_hid hid wmi video pinctrl_cannonlake
Jul 24 12:22:35 veigar kernel: [   58.709044] CR2: 000000000000000c
Jul 24 12:22:35 veigar kernel: [   58.709046] ---[ end trace 5ba59ff61121a412 ]---
Jul 24 12:22:35 veigar kernel: [   58.739682] pstore: crypto_comp_compress failed, ret = -22!
Jul 24 12:22:35 veigar kernel: [   58.862587] RIP: 0010:drm_gem_map_dma_buf+0x43/0xb0 [drm]
Jul 24 12:22:35 veigar kernel: [   58.862626] Code: 00 00 83 fe 03 74 6f 48 8b 87 40 01 00 00 48 8b 40 38 48 85 c0 74 72 41 89 f5 e8 68 95 01 d3 49 89 c4 48 3d 00 f0 ff ff 77 21 <8b> 50 0c 48 8b 7b 08 41 b8 20 00 00 00 44 89 e9 48 8b 30 e8 b5 24
Jul 24 12:22:35 veigar kernel: [   58.862628] RSP: 0018:ffffbd5c838c7998 EFLAGS: 00010207
Jul 24 12:22:35 veigar kernel: [   58.862630] RAX: 0000000000000000 RBX: ffff98570e996960 RCX: 0000000000000000
Jul 24 12:22:35 veigar kernel: [   58.862632] RDX: 0000000000000000 RSI: ffff985e1db58ac0 RDI: ffff985e1db58ac0
Jul 24 12:22:35 veigar kernel: [   58.862633] RBP: ffffbd5c838c79b0 R08: 0000000000000000 R09: ffffbd5c838c76e0
Jul 24 12:22:35 veigar kernel: [   58.862634] R10: ffffbd5c838c76d8 R11: ffffffff94154508 R12: 0000000000000000
Jul 24 12:22:35 veigar kernel: [   58.862635] R13: 0000000000000000 R14: ffff9856940179b0 R15: 0000000000000000
Jul 24 12:22:35 veigar kernel: [   58.862636] FS:  00007f6d4492d2c0(0000) GS:ffff985e1db40000(0000) knlGS:0000000000000000
Jul 24 12:22:35 veigar kernel: [   58.862637] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 24 12:22:35 veigar kernel: [   58.862639] CR2: 000000000000000c CR3: 0000000113d34001 CR4: 00000000003706e0

Is anyone from NVIDIA looking into this?

It doesn’t seem so, so far… I’m seriously getting tired of NVIDIA-based laptops and will seriously consider AMD-GPU ones for the next refresh at our company.

Optimus laptops have been on the market for over a decade now, and Linux support is still a complete mess. Why can’t we have proper power management, proper external display support, … without having to resort to reboot every time we need either?

1 Like

I only got this laptop because an Optimus laptop worked great for me for a while with Bumblebee.

I just wish they would let us know they are aware of it.

This has been the case for over a year now, and NVIDIA has continued to ship Reverse Prime support broken with either no insight to what’s wrong (wayland), or has indicated that an Xorg fix needed to be shipped, which laid dormant and was finally merged about a month ago but either doesn’t work or is still not present in mainline XOrg. (Sync present to slave outputs (!460) · Merge requests · xorg / xserver · GitLab)

My 2070-based laptop has not had functional monitor outputs since the Render Offload driver release, since none of the outputs are wired for the Intel GPU. Wayland crashes, and xOrg will work but will be either choppy (multi-display) or unusable. (single-display).

The only way I understand that monitor outputs will work properly is if you bypass the intel iGPU in xorg only entirely by setting Option "PrimaryGPU" "Yes" in xorg.conf, which will force the NVIDIA GPU to run perpetually and tank your battery life.

Otherwise, I’m predicting that the only solution will remain waiting another year until NVIDIA finally gets around to releasing another major feature patch which may or may not contain a fix.

1 Like

Same thing here.
It doesn’t work with both 470.63.01 regular driver and 470.56.05 vulkan driver.
Not even compiling xorg, xwayland, libxcb, and egl-wayland from git.

Same situation on 470.74 drivers. journalctl -b 1 or 0 does not notice there was total system freeze.

not fixed in 495.29.05
and gnome also crash if you plug your display into a port wired to the nvidia gpu

We’re getting close to the anniversary of this post with no response from NVIDIA. Maybe next year.

1 Like

I am having the same issue on Sway on my optimus laptop (Razer Blade 14) when running the following command:

WLR_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1 sway --my-next-gpu-wont-be-nvidia

The /dev/dri/card0 is the nvidia dedicate gpu while the /dev/dri/card1 is the integrated gpu card. The kernel panics as soon as sway launches. ([nvidia-drm] [GPU ID 0x00000100] Failed to get memory pages for NvKmsKapiMemory 0x000000006a27535a)

I am using nvidia driver 495.29.05. And the second monitor port is connected directly to dGPU while the internal display is connected to the iGPU.

I think nvidia should really take a look into this problem.

EDIT: The stack trace from journalctl -b -1 is as follows:

Oct 18 23:55:11 bbnrazer kernel: [drm:__nv_drm_gem_nvkms_memory_prime_get_sg_table [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to get memory pages for NvKmsKapiMemory 0x000000006a27535a
Oct 18 23:55:11 bbnrazer kernel: BUG: kernel NULL pointer dereference, address: 000000000000000c
Oct 18 23:55:11 bbnrazer kernel: #PF: supervisor read access in kernel mode
Oct 18 23:55:11 bbnrazer kernel: #PF: error_code(0x0000) - not-present page
Oct 18 23:55:11 bbnrazer kernel: PGD 0 P4D 0 
Oct 18 23:55:11 bbnrazer kernel: Oops: 0000 [#1] PREEMPT SMP NOPTI
Oct 18 23:55:11 bbnrazer kernel: CPU: 2 PID: 2821 Comm: sway Tainted: P           OE     5.15.0-rc5-207-tkg-cfs #1 28f9521ef8669b4e18cd48c46686730410dfece8
Oct 18 23:55:11 bbnrazer kernel: Hardware name: Razer Blade 14 - RZ09-0370/PI411, BIOS 1.06 06/07/2021
Oct 18 23:55:11 bbnrazer kernel: RIP: 0010:dma_map_sgtable+0x13/0x90
Oct 18 23:55:11 bbnrazer kernel: Code: 0b 58 48 c7 c0 ff ff ff ff e9 2b ff ff ff e8 44 76 af 00 0f 1f 40 00 0f 1f 44 00 00 48 8b 87 40 02 00 00 41 89 d1 53 48 89 f3 <8b> 56 0c 48 8b 36 48 85 c0 48 0f 44 05 84 e1 2e 02 41 83 f9 02 77
Oct 18 23:55:11 bbnrazer kernel: RSP: 0018:ffffaf1ac3a1bc50 EFLAGS: 00010207
Oct 18 23:55:11 bbnrazer kernel: RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000020
Oct 18 23:55:11 bbnrazer kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88ed01a9e0d0
Oct 18 23:55:11 bbnrazer kernel: RBP: ffff88ed092aaa00 R08: ffffffffae2bb3e8 R09: 0000000000000000
Oct 18 23:55:11 bbnrazer kernel: R10: 00000000ffffefff R11: 0000000000000003 R12: 0000000000000000
Oct 18 23:55:11 bbnrazer kernel: R13: 0000000000000000 R14: ffff88ed092aaa10 R15: ffff88ed065405b8
Oct 18 23:55:11 bbnrazer kernel: FS:  00007f759125c980(0000) GS:ffff88efde680000(0000) knlGS:0000000000000000
Oct 18 23:55:11 bbnrazer kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 18 23:55:11 bbnrazer kernel: CR2: 000000000000000c CR3: 000000010661e000 CR4: 0000000000750ee0
Oct 18 23:55:11 bbnrazer kernel: PKRU: 55555554
Oct 18 23:55:11 bbnrazer kernel: Call Trace:
Oct 18 23:55:11 bbnrazer kernel:  drm_gem_map_dma_buf+0x53/0xa0 [drm cdd4ca879ac5462e87aeebfa40a76f0c389846c6]
Oct 18 23:55:11 bbnrazer kernel:  dma_buf_dynamic_attach+0x154/0x270
Oct 18 23:55:11 bbnrazer kernel:  amdgpu_gem_prime_import+0xc9/0x1d0 [amdgpu 92ea6a4766c9b72b69a1526769022c316fd40946]
Oct 18 23:55:11 bbnrazer kernel:  drm_gem_prime_fd_to_handle+0xbd/0x1d0 [drm cdd4ca879ac5462e87aeebfa40a76f0c389846c6]
Oct 18 23:55:11 bbnrazer kernel:  ? drm_prime_destroy_file_private+0x20/0x20 [drm cdd4ca879ac5462e87aeebfa40a76f0c389846c6]
Oct 18 23:55:11 bbnrazer kernel:  drm_ioctl_kernel+0xb0/0x140 [drm cdd4ca879ac5462e87aeebfa40a76f0c389846c6]
Oct 18 23:55:11 bbnrazer kernel:  drm_ioctl+0x21b/0x3e0 [drm cdd4ca879ac5462e87aeebfa40a76f0c389846c6]
Oct 18 23:55:11 bbnrazer kernel:  ? drm_prime_destroy_file_private+0x20/0x20 [drm cdd4ca879ac5462e87aeebfa40a76f0c389846c6]
Oct 18 23:55:11 bbnrazer kernel:  ? do_wp_page+0x17e/0x2d0
Oct 18 23:55:11 bbnrazer kernel:  ? pmd_none_or_trans_huge_or_clear_bad+0x25/0x90
Oct 18 23:55:11 bbnrazer kernel:  ? __handle_mm_fault+0xc06/0xff0
Oct 18 23:55:11 bbnrazer kernel:  amdgpu_drm_ioctl+0x49/0x80 [amdgpu 92ea6a4766c9b72b69a1526769022c316fd40946]
Oct 18 23:55:11 bbnrazer kernel:  __x64_sys_ioctl+0x82/0xb0
Oct 18 23:55:11 bbnrazer kernel:  do_syscall_64+0x5c/0x80
Oct 18 23:55:11 bbnrazer kernel:  ? do_user_addr_fault+0x208/0x6d0
Oct 18 23:55:11 bbnrazer kernel:  ? exc_page_fault+0x72/0x170
Oct 18 23:55:11 bbnrazer kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xae
Oct 18 23:55:11 bbnrazer kernel: RIP: 0033:0x7f759235359b
Oct 18 23:55:11 bbnrazer kernel: Code: ff ff ff 85 c0 79 9b 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a5 a8 0c 00 f7 d8 64 89 01 48
Oct 18 23:55:11 bbnrazer kernel: RSP: 002b:00007ffc9ce6b568 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Oct 18 23:55:11 bbnrazer kernel: RAX: ffffffffffffffda RBX: 00007ffc9ce6b5ac RCX: 00007f759235359b
Oct 18 23:55:11 bbnrazer kernel: RDX: 00007ffc9ce6b5ac RSI: 00000000c00c642e RDI: 000000000000000f
Oct 18 23:55:11 bbnrazer kernel: RBP: 00000000c00c642e R08: 00007f758f3f426a R09: 0000564ed9927010
Oct 18 23:55:11 bbnrazer kernel: R10: 00007f759241ea00 R11: 0000000000000246 R12: 0000000000000002
Oct 18 23:55:11 bbnrazer kernel: R13: 000000000000000f R14: 00007ffc9ce6b6b0 R15: 0000000000000000
Oct 18 23:55:11 bbnrazer kernel: Modules linked in: tcp_diag inet_diag rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device ccm ax88179_178a usbnet mii hid_logitech_hidpp cmac algif_hash algif_skcipher af_alg hid_logitech_dj bnep btusb btrtl btbcm btintel bluetooth ecdh_generic ecc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc usbhid xt_CHECKSUM xt_MASQUERADE xt_conntrack 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 libcrc32c nfnetlink bridge stp llc zram intel_rapl_msr intel_rapl_common vmnet(OE) iwlmvm edac_mce_amd snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio mac80211 snd_hda_codec_hdmi kvm_amd libarc4 snd_hda_intel snd_soc_dmic joydev snd_acp3x_pdm_dma snd_acp3x_rn snd_intel_dspcfg mousedev snd_intel_sdw_acpi kvm iwlwifi snd_soc_core snd_hda_codec irqbypass snd_compress hid_multitouch vfat snd_hda_core crct10dif_pclmul ac97_bus dcdbas crc32_pclmul
Oct 18 23:55:11 bbnrazer kernel:  snd_pcm_dmaengine wmi_bmof dell_wmi_descriptor fat snd_hwdep ghash_clmulni_intel cfg80211 snd_pcm aesni_intel snd_timer snd_pci_acp5x crypto_simd snd cryptd sp5100_tco snd_rn_pci_acp3x rapl pcspkr tpm_crb k10temp ccp i2c_piix4 snd_pci_acp3x rfkill soundcore wmi tpm_tis tpm_tis_core video i2c_hid_acpi tpm i2c_hid rng_core mac_hid acpi_cpufreq pinctrl_amd squashfs vmmon(OE) vmw_vmci i2c_dev sg crypto_user acpi_call(OE) fuse bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 crc32c_intel xhci_pci xhci_pci_renesas nvidia_drm(POE) nvidia_uvm(POE) nvidia_modeset(POE) nvidia(POE) amdgpu drm_ttm_helper ttm agpgart gpu_sched i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec drm
Oct 18 23:55:11 bbnrazer kernel: CR2: 000000000000000c
Oct 18 23:55:11 bbnrazer kernel: ---[ end trace 8ad410e3f74dcc47 ]---
Oct 18 23:55:11 bbnrazer kernel: RIP: 0010:dma_map_sgtable+0x13/0x90
Oct 18 23:55:11 bbnrazer kernel: Code: 0b 58 48 c7 c0 ff ff ff ff e9 2b ff ff ff e8 44 76 af 00 0f 1f 40 00 0f 1f 44 00 00 48 8b 87 40 02 00 00 41 89 d1 53 48 89 f3 <8b> 56 0c 48 8b 36 48 85 c0 48 0f 44 05 84 e1 2e 02 41 83 f9 02 77
Oct 18 23:55:11 bbnrazer kernel: RSP: 0018:ffffaf1ac3a1bc50 EFLAGS: 00010207
Oct 18 23:55:11 bbnrazer kernel: RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000020
Oct 18 23:55:11 bbnrazer kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88ed01a9e0d0
Oct 18 23:55:11 bbnrazer kernel: RBP: ffff88ed092aaa00 R08: ffffffffae2bb3e8 R09: 0000000000000000
Oct 18 23:55:11 bbnrazer kernel: R10: 00000000ffffefff R11: 0000000000000003 R12: 0000000000000000
Oct 18 23:55:11 bbnrazer kernel: R13: 0000000000000000 R14: ffff88ed092aaa10 R15: ffff88ed065405b8
Oct 18 23:55:11 bbnrazer kernel: FS:  00007f759125c980(0000) GS:ffff88efde680000(0000) knlGS:0000000000000000
Oct 18 23:55:11 bbnrazer kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 18 23:55:11 bbnrazer kernel: CR2: 000000000000000c CR3: 000000010661e000 CR4: 0000000000750ee0
Oct 18 23:55:11 bbnrazer kernel: PKRU: 55555554
1 Like

Can you get a stack trace that way?

Hi,

Same error.

Quadro T1000 Max-Q Notebook on Ubuntu 21.10 (previously 21.04 had same behavior), driver 470.74

On Wayland, when connecting second display via displayport system freezes.

On Xorg, everything seems to be working, but when running chrome, seems that it refreshes display too slow, for example, when scrolling long page, there some times present stripes (part of screen refreshed, and other part not), also, when trying to play video, it seems that ti played with too low frame rate. But on single displaye (primary notebook display) it seems that everything works fine.

1 Like

have you checked if hardware acceleration is enabled on chrome ?

Change PRIME Profiles setting to Performance Mode.
Apparently there’s still no solution for Wayland’s freeze.

I tried to uninstall egl-wayland. gdm & gnome no longer seem to crash, i haven’t tried to use my displayPort(wired to the nvidia gpu). But Xwayland doesn’t seem to be accelerated, i have verry bad tearing and rubber-banding effect in tropico 5

So maybe we need to report this issue to the egl-wayland GitHub repository?