TGL: adding CRTC not allowed without modesets: requested 0x2, affected 0xf
I have a Dell XPS 13 9310 2-in-1. After connecting an HDMI monitor via USB type C adapter, I got
[112569.253670] adding CRTC not allowed without modesets: requested 0x2, affected 0xf
[112569.253725] WARNING: CPU: 5 PID: 1750924 at drivers/gpu/drm/drm_atomic.c:1379 drm_atomic_check_only+0x7ca/0x8d0 [drm]
[112569.253761] Modules linked in: uinput r8153_ecm cdc_ether usbnet r8152 mii rfcomm snd_seq_dummy snd_hrtimer qrtr ns bnep sunrpc vfat fat snd_hda_codec_hdmi 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 iTCO_wdt snd_sof intel_pmc_bxt snd_soc_hdac_hda iTCO_vendor_support snd_hda_ext_core snd_soc_acpi_intel_match mei_hdcp snd_soc_acpi intel_tcc_cooling soundwire_bus x86_pkg_temp_thermal intel_powerclamp pmt_telemetry coretemp snd_soc_core intel_rapl_msr pmt_class snd_ctl_led dell_laptop kvm_intel snd_hda_codec_realtek snd_compress ac97_bus snd_pcm_dmaengine dell_smm_hwmon snd_hda_codec_generic kvm iwlmvm snd_hda_intel irqbypass snd_intel_dspcfg intel_cstate snd_intel_sdw_acpi snd_hda_codec mac80211 intel_uncore snd_hda_core snd_hwdep snd_seq btusb snd_seq_device uvcvideo btrtl dell_wmi btbcm ledtrig_audio libarc4 btintel dell_smbios pcspkr snd_pcm videobuf2_vmalloc
[112569.253814] dell_wmi_sysman dcdbas firmware_attributes_class videobuf2_memops bluetooth iwlwifi dell_wmi_descriptor snd_timer wmi_bmof videobuf2_v4l2 i2c_i801 snd videobuf2_common i2c_smbus soundcore cfg80211 videodev mei_me ecdh_generic joydev mc mei idma64 rfkill hid_sensor_incl_3d hid_sensor_gyro_3d hid_sensor_als hid_sensor_accel_3d hid_sensor_magn_3d hid_sensor_rotation hid_sensor_trigger hid_sensor_iio_common processor_thermal_device_pci_legacy industrialio_triggered_buffer kfifo_buf processor_thermal_device industrialio processor_thermal_rfim thunderbolt processor_thermal_mbox processor_thermal_rapl intel_rapl_common intel_pmt intel_soc_dts_iosf igen6_edac int3403_thermal int340x_thermal_zone soc_button_array intel_skl_int3472 intel_hid int3400_thermal sparse_keymap acpi_thermal_rel acpi_tad acpi_pad zram ip_tables hid_sensor_hub intel_ishtp_loader intel_ishtp_hid i915 wacom hid_multitouch nvme rtsx_pci_sdmmc i2c_algo_bit mmc_core nvme_core ttm drm_kms_helper cec
[112569.253857] crct10dif_pclmul crc32_pclmul crc32c_intel drm intel_ish_ipc serio_raw ghash_clmulni_intel rtsx_pci intel_ishtp ucsi_acpi typec_ucsi vmd typec wmi i2c_hid_acpi i2c_hid video pinctrl_tigerlake ipmi_devintf ipmi_msghandler fuse
[112569.253872] CPU: 5 PID: 1750924 Comm: gnome-shell Tainted: G W 5.15.11-200.fc35.x86_64 #1
[112569.253875] Hardware name: Dell Inc. XPS 13 9310 2-in-1/0062CR, BIOS 2.4.1 07/21/2021
[112569.253877] RIP: 0010:drm_atomic_check_only+0x7ca/0x8d0 [drm]
[112569.253902] Code: 52 c0 89 04 24 bf 10 00 00 00 e8 d1 b8 00 00 8b 04 24 e9 af fa ff ff 8b 74 24 14 44 89 e2 48 c7 c7 98 6a 52 c0 e8 62 53 70 fa <0f> 0b 31 c0 e9 ae fd ff ff 49 8b 4d 18 41 8b 55 58 bf 10 00 00 00
[112569.253904] RSP: 0018:ffffa42d8255fc70 EFLAGS: 00010282
[112569.253907] RAX: 0000000000000045 RBX: 0000000000000008 RCX: 0000000000000027
[112569.253908] RDX: ffff970a6f760a08 RSI: 0000000000000001 RDI: ffff970a6f760a00
[112569.253909] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffa42d8255faa8
[112569.253910] R10: ffffa42d8255faa0 R11: ffffffffbbf46068 R12: 000000000000000f
[112569.253912] R13: 0000000000000008 R14: ffff97034e457000 R15: 0000000000000000
[112569.253913] FS: 00007f3869b88d80(0000) GS:ffff970a6f740000(0000) knlGS:0000000000000000
[112569.253915] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[112569.253916] CR2: 00003f1bbc373b00 CR3: 00000001048bc002 CR4: 0000000000f70ee0
[112569.253918] PKRU: 55555554
[112569.253919] Call Trace:
[112569.253922] <TASK>
[112569.253924] drm_atomic_nonblocking_commit+0x13/0x50 [drm]
[112569.253947] drm_mode_atomic_ioctl+0x90d/0xac0 [drm]
[112569.253970] ? drm_plane_get_damage_clips.cold+0x1c/0x1c [drm]
[112569.253993] ? drm_atomic_set_property+0xb30/0xb30 [drm]
[112569.254017] drm_ioctl_kernel+0x84/0xd0 [drm]
[112569.254039] drm_ioctl+0x220/0x3e0 [drm]
[112569.254060] ? drm_atomic_set_property+0xb30/0xb30 [drm]
[112569.254084] ? __sys_recvmsg+0x65/0x80
[112569.254089] ? __fget_files+0x97/0xc0
[112569.254093] __x64_sys_ioctl+0x7f/0xb0
[112569.254096] do_syscall_64+0x38/0xc0
[112569.254101] entry_SYSCALL_64_after_hwframe+0x44/0xae
[112569.254104] RIP: 0033:0x7f387006137b
[112569.254107] 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 6d 1a 0f 00 f7 d8 64 89 01 48
[112569.254109] RSP: 002b:00007ffdc97d9f28 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[112569.254111] RAX: ffffffffffffffda RBX: 00007ffdc97d9f70 RCX: 00007f387006137b
[112569.254113] RDX: 00007ffdc97d9f70 RSI: 00000000c03864bc RDI: 0000000000000009
[112569.254114] RBP: 00000000c03864bc R08: 0000000000000000 R09: 0000000000000000
[112569.254115] R10: 00007f3870153aa0 R11: 0000000000000246 R12: 00007f38757aa050
[112569.254117] R13: 0000000000000009 R14: 00007f38750c3040 R15: 00007f3876546720
[112569.254120] </TASK>
[112569.254120] ---[ end trace 440bc3642e1c6aff ]---
This caused the screen to flicker.