You are not logged in.

#1 2021-03-15 17:31:36

kmani314
Member
Registered: 2021-02-19
Posts: 13

Intel Xe Wayland/Sway graphics issues

I'm running XWayland with Sway on a Dell XPS 13 9310 (11th Gen Intel(R) Core(TM) i7-1185G7, Intel Xe graphics) plugged into an HDMI monitor. After I boot up, the laptop screen turns off for some reason. The HDMI monitor continues to function. In dmesg, there's several occurrences of an error:

[  291.070960] adding CRTC not allowed without modesets: requested 0x2, affected 0xf
[  291.071012] WARNING: CPU: 3 PID: 1783 at drivers/gpu/drm/drm_atomic.c:1342 drm_atomic_check_only+0x849/0x8d0 [drm]
[  291.071041] Modules linked in: uinput ccm rfcomm cmac algif_hash algif_skcipher af_alg typec_displayport apple_mfi_fastcharge bnep snd_soc_skl_hda_dsp snd_soc_hdac_hdmi hid_sensor_als hid_sensor_trigger industrialio_triggered_buffer btusb kfifo_buf snd_hda_codec_hdmi hid_sensor_iio_common industrialio snd_hda_codec_realtek mousedev joydev snd_hda_codec_generic snd_soc_dmic hid_sensor_hub cros_ec_ishtp cros_ec intel_ishtp_loader snd_sof_pci intel_ishtp_hid snd_sof_intel_hda_common iTCO_wdt snd_soc_hdac_hda hid_multitouch intel_pmc_bxt iTCO_vendor_support wacom snd_sof_intel_hda snd_sof_intel_byt intel_pmt_telemetry mei_hdcp intel_rapl_msr snd_sof_intel_ipc intel_pmt_class snd_sof dell_laptop dell_wmi dell_smbios snd_sof_xtensa_dsp dell_wmi_sysman dell_wmi_descriptor wmi_bmof dcdbas snd_hda_ext_core dell_smm_hwmon snd_soc_acpi_intel_match snd_soc_acpi x86_pkg_temp_thermal intel_powerclamp ledtrig_audio coretemp kvm_intel snd_hda_intel kvm snd_intel_dspcfg soundwire_intel irqbypass
[  291.071094]  soundwire_generic_allocation intel_cstate intel_uncore soundwire_cadence snd_hda_codec snd_hda_core snd_hwdep soundwire_bus pcspkr psmouse snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine snd_pcm iwlmvm snd_timer snd i2c_i801 soundcore i2c_smbus mac80211 libarc4 iwlwifi mei_me vfat mei fat cfg80211 intel_lpss_pci intel_lpss idma64 intel_ish_ipc intel_ishtp hci_uart thunderbolt btqca btrtl processor_thermal_device btbcm processor_thermal_rfim btintel processor_thermal_mbox processor_thermal_rapl intel_rapl_common intel_pmt tpm_crb intel_soc_dts_iosf bluetooth ucsi_acpi typec_ucsi typec tpm_tis tpm_tis_core ecdh_generic rfkill wmi ecc i2c_hid int3403_thermal int340x_thermal_zone mac_hid intel_hid int3400_thermal acpi_thermal_rel sparse_keymap acpi_tad acpi_pad fuse crypto_user bpf_preload ip_tables x_tables hid_apple usbhid dm_crypt cbc encrypted_keys dm_mod trusted tpm rng_core rtsx_pci_sdmmc mmc_core crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel
[  291.071137]  crypto_simd cryptd glue_helper serio_raw rtsx_pci xhci_pci xhci_pci_renesas i915 video intel_gtt i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec drm agpgart ext4 crc32c_generic crc32c_intel crc16 mbcache jbd2
[  291.071150] CPU: 3 PID: 1783 Comm: sway Tainted: G        W I       5.11.4-arch1-1 #1
[  291.071152] Hardware name: Dell Inc. XPS 13 9310/0TVD62, BIOS 1.0.3 10/05/2020
[  291.071154] RIP: 0010:drm_atomic_check_only+0x849/0x8d0 [drm]
[  291.071166] Code: 60 bf 10 00 00 00 48 c7 c6 80 3b 27 c0 e8 cf b3 00 00 e9 92 fb ff ff 8b 74 24 0c 44 89 e2 48 c7 c7 68 3d 27 c0 e8 98 37 5e ca <0f> 0b e9 07 fe ff ff 48 8b 4d 48 8b 55 28 bf 10 00 00 00 48 c7 c6
[  291.071167] RSP: 0018:ffffa7db43af3c70 EFLAGS: 00010282
[  291.071169] RAX: 0000000000000000 RBX: 0000000000000008 RCX: ffff97e27f6d8be8
[  291.071169] RDX: 00000000ffffffd8 RSI: 0000000000000027 RDI: ffff97e27f6d8be0
[  291.071170] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffa7db43af3aa8
[  291.071171] R10: ffffa7db43af3aa0 R11: ffffffff8b8cba08 R12: 000000000000000f
[  291.071171] R13: 0000000000000008 R14: ffff97df00b00000 R15: 0000000000000000
[  291.071172] FS:  00007f0482e9f940(0000) GS:ffff97e27f6c0000(0000) knlGS:0000000000000000
[  291.071173] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  291.071174] CR2: 00007f044f1fffe0 CR3: 000000014afe0001 CR4: 0000000000770ee0
[  291.071175] PKRU: 55555554
[  291.071176] Call Trace:
[  291.071180]  drm_atomic_nonblocking_commit+0x13/0x50 [drm]
[  291.071191]  drm_mode_atomic_ioctl+0x944/0xaf0 [drm]
[  291.071205]  ? drm_atomic_set_property+0xb30/0xb30 [drm]
[  291.071217]  drm_ioctl_kernel+0xb2/0x100 [drm]
[  291.071230]  ? gen11_gt_engine_identity.isra.0+0x3c/0xa0 [i915]
[  291.071291]  drm_ioctl+0x215/0x390 [drm]
[  291.071303]  ? drm_atomic_set_property+0xb30/0xb30 [drm]
[  291.071316]  __x64_sys_ioctl+0x83/0xb0
[  291.071321]  do_syscall_64+0x33/0x40
[  291.071326]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  291.071328] RIP: 0033:0x7f0483bc3e6b
[  291.071330] 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 d5 af 0c 00 f7 d8 64 89 01 48
[  291.071332] RSP: 002b:00007fffbf473258 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[  291.071333] RAX: ffffffffffffffda RBX: 00007fffbf4732a0 RCX: 00007f0483bc3e6b
[  291.071334] RDX: 00007fffbf4732a0 RSI: 00000000c03864bc RDI: 0000000000000009
[  291.071334] RBP: 00000000c03864bc R08: 0000000000000003 R09: 0000000000000003
[  291.071335] R10: 00007f0483c8fa00 R11: 0000000000000246 R12: 000055db65efc6c0
[  291.071336] R13: 0000000000000009 R14: 000055db65e2d3a0 R15: 000055db6582e720
[  291.071338] ---[ end trace 1b1083792db657be ]---

The screen starts working again if I systemctl hibernate and wake. I also tried loading the i915 driver early by putting it in mkinitcpio.conf and doing mkinitcpio -P, but that didn't do anything. Does anyone know the cause of this?

Offline

#2 2022-04-18 12:08:06

markstos
Member
Registered: 2011-10-20
Posts: 6

Re: Intel Xe Wayland/Sway graphics issues

I get  a similar error with Sway on a Framework laptop:

* 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
* Linux 5.17.3-arch1-1

What I see is frequent pauses of 5 to 10 seconds until one of my dual 4k monitors refreshes. Turning off one of the 4k monitors seems to help.

It seems unrelated to sleep/wake/hibernate in my case. It will happen as soon as the laptop has booted.

It seems the issue was reported a year ago in a kernel bug tracker but was closed for not being reproducible:

https://gitlab.freedesktop.org/drm/intel/-/issues/2554
https://gitlab.freedesktop.org/drm/intel/-/issues/4888

adding CRTC not allowed without modesets: requested 0x2, affected 0x7
WARNING: CPU: 0 PID: 901 at drivers/gpu/drm/drm_atomic.c:1401 drm_atomic_check_only+0x909/0xa10
Modules linked in: rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_hda_codec_hdmi snd_hda_codec_idt snd_hda_codec_generic xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype nft_compat nf_tables nfnetlink br_netfilter snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_soc_hdac_hda bridge snd_hda_ext_core snd_soc_acpi_intel_match iwlmvm snd_soc_acpi stp soundwire_bus llc ledtrig_audio snd_soc_core mac80211 snd_compress ac97_bus hid_sensor_als snd_pcm_dmaengine hid_sensor_trigger libarc4 industrialio_triggered_buffer snd_usb_audio snd_hda_intel kfifo_buf hid_sensor_iio_common snd_intel_dspcfg industrialio snd_usbmidi_lib snd_intel_sdw_acpi iTCO_wdt hid_sensor_custom snd_rawmidi snd_hda_codec intel_pmc_bxt snd_seq_device snd_hda_core iwlwifi iTCO_vendor_support intel_spi_pci ee1004 mei_hdcp
 intel_spi snd_hwdep hid_sensor_hub gspca_vc032x mei_pxp hid_multitouch intel_ishtp_hid snd_pcm iwlmei mei_me i2c_i801 spi_nor uvcvideo gspca_main snd_timer snd videobuf2_vmalloc pmt_telemetry intel_tcc_cooling bnep ipheth pmt_class intel_rapl_msr wmi_bmof x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass intel_cstate intel_uncore pcspkr psmouse mtd i2c_smbus videobuf2_memops videobuf2_v4l2 soundcore cfg80211 videobuf2_common mei intel_lpss_pci videodev intel_lpss idma64 mc ccm algif_aead btusb r8153_ecm btrtl des_generic cdc_ether libdes btbcm usbnet ecb r8152 btintel joydev mousedev mii algif_skcipher btmtk cmac bluetooth md4 processor_thermal_device_pci_legacy apple_mfi_fastcharge algif_hash ecdh_generic processor_thermal_device rfkill processor_thermal_rfim intel_ish_ipc af_alg crc16 i915 intel_ishtp thunderbolt processor_thermal_mbox intel_vsec processor_thermal_rapl ucsi_acpi intel_rapl_common typec_ucsi ttm intel_soc_dts_iosf typec intel_gtt
 igen6_edac roles wmi mac_hid int3403_thermal i2c_hid_acpi i2c_hid int340x_thermal_zone video int3400_thermal acpi_pad acpi_thermal_rel vfat fat pkcs8_key_parser sg crypto_user fuse ip_tables x_tables btrfs blake2b_generic libcrc32c crc32c_generic xor raid6_pq dm_crypt cbc encrypted_keys trusted asn1_encoder tee uas usb_storage usbhid dm_mod serio_raw tpm_crb atkbd libps2 crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel nvme aesni_intel crypto_simd nvme_core cryptd xhci_pci xhci_pci_renesas tpm_tis tpm_tis_core i8042 tpm serio rng_core vmd
CPU: 0 PID: 901 Comm: sway Tainted: G        W         5.17.3-arch1-1 #1 7a55d2374d124bfa80e113bab2e4c0e86120013b
Hardware name: Framework Laptop/FRANBMCP0B, BIOS 03.06 10/18/2021
RIP: 0010:drm_atomic_check_only+0x909/0xa10
Code: 62 91 9a be 10 00 00 00 e8 94 c5 00 00 b8 ea ff ff ff e9 75 f9 ff ff 8b 74 24 1c 44 89 e2 48 c7 c7 70 66 91 9a e8 a7 37 3d 00 <0f> 0b 31 c0 e9 3d fd ff ff 4d 8b 42 20 41 8b 4a 60 4d 85 c9 74 04
RSP: 0018:ffffab92c0bc3c38 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff9e6498c640c0 RCX: 0000000000000027
RDX: ffff9e6b4fa216e8 RSI: 0000000000000001 RDI: ffff9e6b4fa216e0
RBP: 0000000000000005 R08: 0000000000000000 R09: ffffab92c0bc3a68
R10: ffffab92c0bc3a60 R11: ffffffff9b0beb18 R12: 0000000000000007
R13: 0000000000000008 R14: 0000000000000000 R15: ffff9e643fa96800
FS:  00007f9283a7a940(0000) GS:ffff9e6b4fa00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9275820000 CR3: 000000010add4002 CR4: 0000000000770ef0
PKRU: 55555554
Call Trace:
 <TASK>
 drm_atomic_nonblocking_commit+0x13/0x60
 drm_mode_atomic_ioctl+0x95c/0xb10
 ? drm_plane_get_damage_clips.cold+0x1c/0x1c
 ? drm_atomic_set_property+0xb90/0xb90
 drm_ioctl_kernel+0xb6/0x140
 drm_ioctl+0x22a/0x3d0
 ? drm_atomic_set_property+0xb90/0xb90
 __x64_sys_ioctl+0x7f/0xb0
 do_syscall_64+0x59/0x80
 ? do_syscall_64+0x69/0x80
 ? do_syscall_64+0x69/0x80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f928484ee6f
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 <41> 89 c0 3d 00 f0 ff ff 77 1f 48 8b 44 24 18 64 48 2b 04 25 28 00
RSP: 002b:00007fffbd7d4030 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fffbd7d40d0 RCX: 00007f928484ee6f
RDX: 00007fffbd7d40d0 RSI: 00000000c03864bc RDI: 000000000000000b
RBP: 00000000c03864bc R08: 0000000000000003 R09: 0000000000000003
R10: 00007f9284941aa0 R11: 0000000000000246 R12: 00005639fa8b0260
R13: 000000000000000b R14: 00005639fa912e20 R15: 00005639fa975060
 </TASK>

Last edited by markstos (2022-04-18 12:11:32)

Offline

Board footer

Powered by FluxBB