Kernel crash in 6.7 (not 6.6) caused by 'echo on >/sys/class/drm/card2-DP-4/status'

Hi, I’m trying to work out what I might do about this.

Since kernel 6.7, issuing ‘echo on >/sys/class/drm/card2-DP-4/status’ causes a kernel panic

Mar 03 12:03:33 vali.starground.co.uk kernel: Oops: 0000 [#1] PREEMPT SMP NOPTI
Mar 03 12:03:33 vali.starground.co.uk kernel: CPU: 7 PID: 93308 Comm: bash Not tainted 6.7.6-200.fc39.x86_64 #1
Mar 03 12:03:33 vali.starground.co.uk kernel: Hardware name: HP HP Z2 G8 Tower Workstation Desktop PC/88BE, BIOS T50 Ver. 01.06.01 02/10/2023
Mar 03 12:03:33 vali.starground.co.uk kernel: RIP: 0010:i2c_transfer+0x14/0x100
Mar 03 12:03:33 vali.starground.co.uk kernel: Code: 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 41 54 55 53 48 8b 47 10 48 89 fb <48> 83 38 00 0f 84 bf 00 00 00 83 3d df f4 aa 01 03 48 89 f5 41 89
Mar 03 12:03:33 vali.starground.co.uk kernel: RSP: 0018:ffffa91e0dbc7b20 EFLAGS: 00010246
Mar 03 12:03:33 vali.starground.co.uk kernel: RAX: 0000000000000000 RBX: ffff9584192404c0 RCX: 0000000000000080
Mar 03 12:03:33 vali.starground.co.uk kernel: RDX: 0000000000000002 RSI: ffffa91e0dbc7b70 RDI: ffff9584192404c0
Mar 03 12:03:33 vali.starground.co.uk kernel: RBP: ffffa91e0dbc7bd0 R08: 0000000000000080 R09: 0000000000000000
Mar 03 12:03:33 vali.starground.co.uk kernel: R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000080
Mar 03 12:03:33 vali.starground.co.uk kernel: R13: 0000000000000002 R14: ffffa91e0dbc7b5e R15: ffffa91e0dbc7b5f
Mar 03 12:03:33 vali.starground.co.uk kernel: FS:  00007fca148a8740(0000) GS:ffff95841f5c0000(0000) knlGS:0000000000000000
Mar 03 12:03:33 vali.starground.co.uk kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Mar 03 12:03:33 vali.starground.co.uk kernel: CR2: 0000000000000000 CR3: 00000003a2ef4001 CR4: 0000000000770ef0
Mar 03 12:03:33 vali.starground.co.uk kernel: PKRU: 55555554
Mar 03 12:03:33 vali.starground.co.uk kernel: Call Trace:
Mar 03 12:03:33 vali.starground.co.uk kernel:  <TASK>
Mar 03 12:03:33 vali.starground.co.uk kernel:  ? __die+0x23/0x70
Mar 03 12:03:33 vali.starground.co.uk kernel:  ? page_fault_oops+0x171/0x4e0
Mar 03 12:03:33 vali.starground.co.uk kernel:  ? exc_page_fault+0x7f/0x180
Mar 03 12:03:33 vali.starground.co.uk kernel:  ? asm_exc_page_fault+0x26/0x30
Mar 03 12:03:33 vali.starground.co.uk kernel:  ? i2c_transfer+0x14/0x100
Mar 03 12:03:33 vali.starground.co.uk kernel:  drm_do_probe_ddc_edid+0xc2/0x140
Mar 03 12:03:33 vali.starground.co.uk kernel:  ? _drm_do_get_edid+0x97/0x3c0
Mar 03 12:03:33 vali.starground.co.uk kernel:  ? __pfx_drm_do_probe_ddc_edid+0x10/0x10
Mar 03 12:03:33 vali.starground.co.uk kernel:  edid_block_read+0x38/0xd0
Mar 03 12:03:33 vali.starground.co.uk kernel:  _drm_do_get_edid+0xb6/0x3c0
Mar 03 12:03:33 vali.starground.co.uk kernel:  ? __pfx_drm_do_probe_ddc_edid+0x10/0x10
Mar 03 12:03:33 vali.starground.co.uk kernel:  drm_get_edid+0x4f/0xc0
Mar 03 12:03:33 vali.starground.co.uk kernel:  amdgpu_dm_connector_funcs_force+0x37/0x140 [amdgpu]
Mar 03 12:03:33 vali.starground.co.uk kernel:  drm_helper_probe_single_connector_modes+0x120/0x540
Mar 03 12:03:33 vali.starground.co.uk kernel:  status_store+0xaf/0x1f0
Mar 03 12:03:33 vali.starground.co.uk kernel:  kernfs_fop_write_iter+0x133/0x1d0
Mar 03 12:03:33 vali.starground.co.uk kernel:  vfs_write+0x23a/0x400
Mar 03 12:03:33 vali.starground.co.uk kernel:  ksys_write+0x6f/0xf0
Mar 03 12:03:33 vali.starground.co.uk kernel:  do_syscall_64+0x61/0xe0
Mar 03 12:03:33 vali.starground.co.uk kernel:  ? do_user_addr_fault+0x304/0x670
Mar 03 12:03:33 vali.starground.co.uk kernel:  ? exc_page_fault+0x7f/0x180
Mar 03 12:03:33 vali.starground.co.uk kernel:  entry_SYSCALL_64_after_hwframe+0x6e/0x76
Mar 03 12:03:33 vali.starground.co.uk kernel: RIP: 0033:0x7fca149b3c94
Mar 03 12:03:33 vali.starground.co.uk kernel: Code: c7 00 16 00 00 00 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 80 3d d5 76 0d 00 00 74 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 55 48 89 e5 48 83 ec 20 48 89
Mar 03 12:03:33 vali.starground.co.uk kernel: RSP: 002b:00007ffee6d9a118 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
Mar 03 12:03:33 vali.starground.co.uk kernel: RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fca149b3c94
Mar 03 12:03:33 vali.starground.co.uk kernel: RDX: 0000000000000003 RSI: 000055da0d4f4270 RDI: 0000000000000001
Mar 03 12:03:33 vali.starground.co.uk kernel: RBP: 00007ffee6d9a140 R08: 0000000000000073 R09: 0000000000000001
Mar 03 12:03:33 vali.starground.co.uk kernel: R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000003
Mar 03 12:03:33 vali.starground.co.uk kernel: R13: 000055da0d4f4270 R14: 00007fca14a845c0 R15: 00007fca14a81f20
Mar 03 12:03:33 vali.starground.co.uk kernel:  </TASK>
Mar 03 12:03:33 vali.starground.co.uk kernel: Modules linked in: uinput snd_seq_dummy snd_hrtimer nf_conntrack_netbios_ns nf_conntrack_broadcast 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_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nf_tables nfnetlink qrtr sunrpc binfmt_misc vfat fat snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel snd_sof_intel_hda_mlink soundwire_cadence pktcdvd snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof intel_rapl_msr intel_rapl_common snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi soundwire_generic_allocation snd_hda_codec_realtek soundwire_bus x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_generic snd_soc_core ledtrig_audio coretemp snd_compress ac97_bus snd_hda_codec_hdmi snd_pcm_dmaengine kvm_intel snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_usb_audio snd_hda_codec kvm snd_usbmidi_lib snd_hda_core snd_ump snd_rawmidi mc snd_hwdep snd_seq spi_nor
Mar 03 12:03:33 vali.starground.co.uk kernel:  irqbypass iTCO_wdt mei_pxp mei_hdcp mei_wdt intel_pmc_bxt snd_seq_device mtd iTCO_vendor_support ee1004 hp_wmi sparse_keymap snd_pcm intel_cstate intel_uncore platform_profile snd_timer mei_me rfkill snd wmi_bmof i2c_i801 spi_intel_pci spi_intel i2c_smbus mei pcspkr soundcore joydev int3403_thermal int340x_thermal_zone int3400_thermal acpi_tad acpi_thermal_rel acpi_pad loop zram hid_logitech_hidpp hid_logitech_dj amdgpu i915 crct10dif_pclmul crc32_pclmul crc32c_intel amdxcp drm_ttm_helper polyval_clmulni i2c_algo_bit drm_exec polyval_generic ttm gpu_sched nvme drm_suballoc_helper drm_buddy ghash_clmulni_intel e1000e sha512_ssse3 drm_display_helper nvme_core sha256_ssse3 sha1_ssse3 serio_raw cec nvme_auth video wmi xhci_plat_hcd ip6_tables ip_tables br_netfilter bridge stp llc fuse
Mar 03 12:03:33 vali.starground.co.uk kernel: CR2: 0000000000000000
Mar 03 12:03:33 vali.starground.co.uk kernel: ---[ end trace 0000000000000000 ]---
Mar 03 12:03:33 vali.starground.co.uk kernel: RIP: 0010:i2c_transfer+0x14/0x100
Mar 03 12:03:33 vali.starground.co.uk kernel: Code: 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 41 54 55 53 48 8b 47 10 48 89 fb <48> 83 38 00 0f 84 bf 00 00 00 83 3d df f4 aa 01 03 48 89 f5 41 89
Mar 03 12:03:33 vali.starground.co.uk kernel: RSP: 0018:ffffa91e0dbc7b20 EFLAGS: 00010246
Mar 03 12:03:33 vali.starground.co.uk kernel: RAX: 0000000000000000 RBX: ffff9584192404c0 RCX: 0000000000000080
Mar 03 12:03:33 vali.starground.co.uk kernel: RDX: 0000000000000002 RSI: ffffa91e0dbc7b70 RDI: ffff9584192404c0
Mar 03 12:03:33 vali.starground.co.uk kernel: RBP: ffffa91e0dbc7bd0 R08: 0000000000000080 R09: 0000000000000000
Mar 03 12:03:33 vali.starground.co.uk kernel: R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000080
Mar 03 12:03:33 vali.starground.co.uk kernel: R13: 0000000000000002 R14: ffffa91e0dbc7b5e R15: ffffa91e0dbc7b5f
Mar 03 12:03:33 vali.starground.co.uk kernel: FS:  00007fca148a8740(0000) GS:ffff95841f5c0000(0000) knlGS:0000000000000000
Mar 03 12:03:33 vali.starground.co.uk kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Mar 03 12:03:33 vali.starground.co.uk kernel: CR2: 0000000000000000 CR3: 00000003a2ef4001 CR4: 0000000000770ef0
Mar 03 12:03:33 vali.starground.co.uk kernel: PKRU: 55555554
Mar 03 12:03:33 vali.starground.co.uk kernel: note: bash[93308] exited with irqs disabled

Now I’m sure many will ask why the setting?

I have a 3 monitor setup with Fedora/wayland/gnome and since about 3 years ago, when the system returns for a state where the monitors are sleeping, all of my carefully laid out windows and workspaces are relocated to the 1st workspace on the primary monitor and resized to match the lowest resolution display.

Imaging if every time to returned to your desk your chair had been adjustsed, your monitor cables unplugged, your keyboard changed to a different language and you have to reset everything to start working. … EVERY TIME :frowning:

Anyway, I tracked to to each of my monitors waking from sleep at a differnet rate and gnome/wayland deciding that the first monitor back should get all the windows, and then noticing another monitord and doing the same.

Setting ‘on’ on the status of the display fixed this by saying (as far as I can tell) the monitoris are always on and so this reorganization didn’t happen.

Now at kernel 6.7 this causes a kernel panic.

Sorry for the long rant … but I’m losing whats left of my heair over this.

Any sgguestions or help fixing this would be grteatfully received.

You will need to report this for someone to look into it.

See How to file a bug :: Fedora Docs and file against component kernel.

Also note that to fill in the bug report you will be asked to test the latest rawhide kernel that may contain a fix.