sway core dumps when trying to render on intel iGPU and copy the render buffer to nouveau dGPU
System information
Please post inxi -GSC -xx
output (fenced with triple backticks) OR fill information below manually
Running sway in nouveau + intel mode
System: Host: dagschenknix Kernel: 5.8.1-zen1 x86_64 bits: 64 compiler: N/A Desktop: sway 1.5 dm: N/A
Distro: NixOS 20.09pre239318.c59ea8b8a0e (Nightingale)
CPU: Info: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 12.0 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62399
Speed: 2600 MHz min/max: 800/2600 MHz Core speeds (MHz): 1: 2601 2: 2601 3: 2601 4: 2601 5: 2601 6: 2600 7: 2600
8: 2601 9: 2601 10: 2600 11: 2601 12: 2600
Graphics: Device-1: Intel UHD Graphics 630 driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b
Device-2: NVIDIA TU106M [GeForce RTX 2070 Mobile] vendor: Intel driver: nouveau v: kernel bus ID: 01:00.0
chip ID: 10de:1f10
Device-3: Chicony HD Webcam type: USB driver: uvcvideo bus ID: 1-13:3 chip ID: 04f2:b68b
Display: wayland server: N/A compositor: sway driver: nouveau note: display driver n/a
resolution: <xdpyinfo missing>
OpenGL: renderer: llvmpipe (LLVM 9.0.1 256 bits) v: 3.3 Mesa 20.1.4 compat-v: 3.1 direct render: Yes
Running sway in intel only mode
System: Host: dagschenknix Kernel: 5.8.1-zen1 x86_64 bits: 64 compiler: N/A Desktop: sway 1.5 dm: N/A
Distro: NixOS 20.09pre239318.c59ea8b8a0e (Nightingale)
CPU: Info: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 12.0 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62399
Speed: 900 MHz min/max: 800/2600 MHz Core speeds (MHz): 1: 900 2: 900 3: 900 4: 900 5: 900 6: 900 7: 901 8: 900
9: 900 10: 900 11: 901 12: 900
Graphics: Device-1: Intel UHD Graphics 630 driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b
Device-2: NVIDIA TU106M [GeForce RTX 2070 Mobile] vendor: Intel driver: nouveau v: kernel bus ID: 01:00.0
chip ID: 10de:1f10
Device-3: Chicony HD Webcam type: USB driver: uvcvideo bus ID: 1-13:3 chip ID: 04f2:b68b
Display: wayland server: N/A compositor: sway driver: nouveau note: display driver n/a
resolution: <xdpyinfo missing>
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.1.4 direct render: Yes
Describe the issue
Also see related issue: https://github.com/swaywm/sway/issues/5642
When I try to run sway to render on the intel device and output to the nouveau nvidia device, sway coredumps and I get the following error:
WLR_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1 sway
WARNING: Kernel has no file descriptor comparison support: Function not implemented
Analysis within the sway ticket did not lead anywhere yet. It seems that the stack is also garbled on the crash.
Regression
Never worked.
Log files as attachment
https://github.com/swaywm/sway/issues/5642
Any extra information would be greatly appreciated
mesa
mesa-20.1.4 and libdrm-2.4.102
Hardware
There is no hardware mux in the laptop. The Thunderbolt3/USB-C/Displayport port and the HDMI port are connected to the NVIDIA card directly. The internal screen is connected to the intel card.
Laptop model: Intel-TongFang QC7 / XMG Fusion 15 with RTX2070 https://www.xmg.gg/en/xmg-fusion-15
Related issue
Running sway the other way round - render on nvidia and output on intel - kind of works but is fast on the internal display, hangs when the curser traverses the displays and takes up 100% cpu on all cores if I do enything on the external display.
systemctl -xe | grep -i nouveau
Sep 04 11:01:59 dagschenknix kernel: nouveau: detected PR support, will not use DSM
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: enabling device (0000 -> 0003)
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: NVIDIA TU106 (166000a1)
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: bios: version 90.06.38.00.27
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: fb: 8192 MiB GDDR6
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: VRAM: 8192 MiB
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: GART: 536870912 MiB
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: BIT table 'A' not found
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: BIT table 'L' not found
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: TMDS table version 2.0
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: DCB version 4.1
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: DCB outp 00: 02000f52 00020010
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: DCB outp 01: 01011f36 04600010
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: DCB outp 02: 01011f32 00020010
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: DCB outp 03: 01022f46 04600020
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: DCB outp 04: 01022f42 00020020
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: DCB conn 00: 00010061
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: DCB conn 01: 00001146
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: DCB conn 02: 00002246
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: allocated 2560x1440 fb: 0x200000, bo 00000000cf389062
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: fb1: nouveaudrmfb frame buffer device
Sep 04 11:01:59 dagschenknix kernel: [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 1
Sep 04 11:01:59 dagschenknix kernel: nouveau 0000:01:00.0: DRM: Disabling PCI power management to avoid bug
Sep 04 11:02:02 dagschenknix kernel: nouveau 0000:01:00.0: DRM: core notifier timeout
Sep 04 11:02:02 dagschenknix kernel: nouveau 0000:01:00.0: disp: error 00040000
Sep 04 11:05:09 dagschenknix kernel: nouveau 0000:01:00.0: DRM: core notifier timeout
Sep 04 11:06:21 dagschenknix kernel: nouveau 0000:01:00.0: disp: error 00040000
Sep 04 11:06:23 dagschenknix kernel: nouveau 0000:01:00.0: DRM: wndw-0: timeout
Sep 04 11:06:25 dagschenknix kernel: nouveau 0000:01:00.0: DRM: wndw-0: timeout
Sep 04 11:06:33 dagschenknix kernel: nouveau 0000:01:00.0: DRM: wndw-0: timeout
Sep 04 11:06:38 dagschenknix kernel: nouveau 0000:01:00.0: disp: outp 01:0006:0f41: training failed
Sep 04 11:06:43 dagschenknix kernel: nouveau 0000:01:00.0: DRM: wndw-0: timeout
Sep 04 11:06:45 dagschenknix kernel: nouveau 0000:01:00.0: DRM: wndw-0: timeout
Sep 04 11:06:53 dagschenknix kernel: nouveau 0000:01:00.0: DRM: wndw-0: timeout
Sep 04 11:06:58 dagschenknix kernel: nouveau 0000:01:00.0: DRM: wndw-0: timeout
Sep 04 11:07:00 dagschenknix kernel: nouveau 0000:01:00.0: DRM: wndw-0: timeout
Sep 04 11:07:02 dagschenknix kernel: nouveau 0000:01:00.0: DRM: wndw-0: timeout
Sep 04 11:07:04 dagschenknix kernel: nouveau 0000:01:00.0: DRM: core notifier timeout
Sep 04 11:07:06 dagschenknix kernel: nouveau 0000:01:00.0: DRM: wndw-0: timeout
Sep 04 11:07:08 dagschenknix kernel: nouveau 0000:01:00.0: DRM: core notifier timeout
Sep 04 11:07:17 dagschenknix kernel: nouveau 0000:01:00.0: timeout
Sep 04 11:07:17 dagschenknix kernel: WARNING: CPU: 1 PID: 5712 at drivers/gpu/drm/nouveau/nvkm/engine/disp/dmacgv100.c:32 gv100_disp_dmac_idle.isra.0+0xab/0xc0 [nouveau]
Sep 04 11:07:17 dagschenknix kernel: Modules linked in: rfcomm ctr ccm af_packet cmac algif_hash algif_skcipher af_alg bnep msr nls_iso8859_1 nls_cp437 vfat fat snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_sof_pci snd_sof_intel_byt snd_sof_intel_ipc snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_xtensa_dsp snd_sof_intel_hda joydev iwlmvm snd_sof mousedev ledtrig_audio i915 nouveau mac80211 snd_soc_skl libarc4 hid_multitouch snd_soc_sst_ipc snd_soc_sst_dsp iwlwifi snd_hda_ext_core intel_rapl_msr snd_soc_acpi_intel_match snd_soc_acpi intel_rapl_common iTCO_wdt intel_pmc_bxt i2c_designware_platform ttm cec snd_soc_core mei_hdcp ee1004 watchdog snd_compress i2c_designware_core asus_wmi ac97_bus 8250_dw intel_wmi_thunderbolt sparse_keymap wmi_bmof mxm_wmi snd_pcm_dmaengine drm_kms_helper btusb uvcvideo btrtl sha256_ssse3 btbcm snd_hda_intel sha256_generic x86_pkg_temp_thermal btintel intel_powerclamp videobuf2_vmalloc coretemp snd_intel_dspcfg crc32_pclmul libsha256 ghash_clmulni_intel deflate
Sep 04 11:07:17 dagschenknix kernel: RIP: 0010:gv100_disp_dmac_idle.isra.0+0xab/0xc0 [nouveau]
Sep 04 11:07:17 dagschenknix kernel: gv100_disp_dmac_fini+0x49/0x70 [nouveau]
Sep 04 11:07:17 dagschenknix kernel: nv50_disp_chan_fini+0x1e/0x40 [nouveau]
Sep 04 11:07:17 dagschenknix kernel: nvkm_object_fini+0xbc/0x150 [nouveau]
Sep 04 11:07:17 dagschenknix kernel: nvkm_object_fini+0x73/0x150 [nouveau]
Sep 04 11:07:17 dagschenknix kernel: nvkm_object_fini+0x73/0x150 [nouveau]
Sep 04 11:07:17 dagschenknix kernel: nvkm_object_fini+0x73/0x150 [nouveau]
Sep 04 11:07:17 dagschenknix kernel: nvkm_object_fini+0x73/0x150 [nouveau]
Sep 04 11:07:17 dagschenknix kernel: nouveau_do_suspend+0x106/0x170 [nouveau]
Sep 04 11:07:17 dagschenknix kernel: nouveau_pmops_runtime_suspend+0x40/0xa0 [nouveau]
Sep 04 11:07:19 dagschenknix kernel: nouveau 0000:01:00.0: timeout
Sep 04 11:07:19 dagschenknix kernel: WARNING: CPU: 1 PID: 5712 at drivers/gpu/drm/nouveau/nvkm/engine/disp/coregv100.c:139 gv100_disp_core_idle.isra.0+0xa4/0xc0 [nouveau]
Sep 04 11:07:19 dagschenknix kernel: Modules linked in: rfcomm ctr ccm af_packet cmac algif_hash algif_skcipher af_alg bnep msr nls_iso8859_1 nls_cp437 vfat fat snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_sof_pci snd_sof_intel_byt snd_sof_intel_ipc snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_xtensa_dsp snd_sof_intel_hda joydev iwlmvm snd_sof mousedev ledtrig_audio i915 nouveau mac80211 snd_soc_skl libarc4 hid_multitouch snd_soc_sst_ipc snd_soc_sst_dsp iwlwifi snd_hda_ext_core intel_rapl_msr snd_soc_acpi_intel_match snd_soc_acpi intel_rapl_common iTCO_wdt intel_pmc_bxt i2c_designware_platform ttm cec snd_soc_core mei_hdcp ee1004 watchdog snd_compress i2c_designware_core asus_wmi ac97_bus 8250_dw intel_wmi_thunderbolt sparse_keymap wmi_bmof mxm_wmi snd_pcm_dmaengine drm_kms_helper btusb uvcvideo btrtl sha256_ssse3 btbcm snd_hda_intel sha256_generic x86_pkg_temp_thermal btintel intel_powerclamp videobuf2_vmalloc coretemp snd_intel_dspcfg crc32_pclmul libsha256 ghash_clmulni_intel deflate
Sep 04 11:07:19 dagschenknix kernel: RIP: 0010:gv100_disp_core_idle.isra.0+0xa4/0xc0 [nouveau]
Sep 04 11:07:19 dagschenknix kernel: gv100_disp_core_fini+0x40/0x70 [nouveau]
Sep 04 11:07:19 dagschenknix kernel: nv50_disp_chan_fini+0x1e/0x40 [nouveau]
Sep 04 11:07:19 dagschenknix kernel: nvkm_object_fini+0xbc/0x150 [nouveau]
Sep 04 11:07:19 dagschenknix kernel: nvkm_object_fini+0x73/0x150 [nouveau]
Sep 04 11:07:19 dagschenknix kernel: nvkm_object_fini+0x73/0x150 [nouveau]
Sep 04 11:07:19 dagschenknix kernel: nvkm_object_fini+0x73/0x150 [nouveau]
Sep 04 11:07:19 dagschenknix kernel: nvkm_object_fini+0x73/0x150 [nouveau]
Sep 04 11:07:19 dagschenknix kernel: nouveau_do_suspend+0x106/0x170 [nouveau]
Sep 04 11:07:19 dagschenknix kernel: nouveau_pmops_runtime_suspend+0x40/0xa0 [nouveau]