Simple-framebuffer crashes with 550 drivers

With the 550 drivers, I am now seeing simple-framebuffer crashes whenever I turn off my LG C2 screen:

Mar 24 14:01:23 arch-desktop kernel: simple-framebuffer simple-framebuffer.0: drm_WARN_ON(map->is_iomem)
Mar 24 14:01:23 arch-desktop kernel: simple-framebuffer simple-framebuffer.0: drm_WARN_ON(map->is_iomem)
Mar 24 14:01:23 arch-desktop kernel: simple-framebuffer simple-framebuffer.0: drm_WARN_ON(map->is_iomem)
Mar 24 14:01:23 arch-desktop kernel: simple-framebuffer simple-framebuffer.0: drm_WARN_ON(map->is_iomem)
Mar 24 14:01:23 arch-desktop kernel: simple-framebuffer simple-framebuffer.0: drm_WARN_ON(map->is_iomem)
Mar 24 14:01:23 arch-desktop kernel: simple-framebuffer simple-framebuffer.0: drm_WARN_ON(map->is_iomem)
Mar 24 14:01:23 arch-desktop kernel: simple-framebuffer simple-framebuffer.0: drm_WARN_ON(map->is_iomem)
Mar 24 14:01:23 arch-desktop kernel: simple-framebuffer simple-framebuffer.0: drm_WARN_ON(map->is_iomem)
Mar 24 14:01:23 arch-desktop kernel: WARNING: CPU: 3 PID: 962 at drivers/gpu/drm/drm_gem_shmem_helper.c:319 drm_gem_shmem_vmap+0x177/0x1b0
Mar 24 14:01:23 arch-desktop kernel: Modules linked in: nf_conntrack_netbios_ns nf_conntrack_broadcast ccm overlay rfcomm snd_seq_dummy snd_hrtimer snd_seq uhid cmac algif_hash algif_skcipher af_alg nft_fib_inet n>
Mar 24 14:01:23 arch-desktop kernel:  soundcore pcspkr sp5100_tco k10temp crc16 video rapl wmi_bmof i2c_algo_bit i2c_piix4 rfkill dca mac_hid pkcs8_key_parser nvidia_uvm(POE) nvidia(POE) i2c_dev crypto_user fuse d>
Mar 24 14:01:23 arch-desktop kernel: CPU: 3 PID: 962 Comm: Xorg Tainted: P           OE      6.8.1-arch1-1 #1 52f97d9bb37be6168651745a1a9f8f7240d21ce5
Mar 24 14:01:23 arch-desktop kernel: Hardware name: To Be Filled By O.E.M. X570 Taichi/X570 Taichi, BIOS P5.50 10/13/2023
Mar 24 14:01:23 arch-desktop kernel: RIP: 0010:drm_gem_shmem_vmap+0x177/0x1b0
Mar 24 14:01:23 arch-desktop kernel: Code: 4c 8b 67 50 4d 85 e4 75 03 4c 8b 27 e8 92 ca 01 00 48 c7 c1 ae b3 1f a1 4c 89 e2 48 c7 c7 cf 8e 1f a1 48 89 c6 e8 99 fb 78 ff <0f> 0b 48 8b 83 f0 00 00 00 48 89 ee 48 8b >
Mar 24 14:01:23 arch-desktop kernel: RSP: 0018:ffffac8e05fc7b20 EFLAGS: 00010282
Mar 24 14:01:23 arch-desktop kernel: RAX: 0000000000000000 RBX: ffff923f2fec5800 RCX: 0000000000000027
Mar 24 14:01:23 arch-desktop kernel: RDX: ffff92459eae19c8 RSI: 0000000000000001 RDI: ffff92459eae19c0
Mar 24 14:01:23 arch-desktop kernel: RBP: ffff92419d19dac8 R08: 0000000000000000 R09: ffffac8e05fc79a8
Mar 24 14:01:23 arch-desktop kernel: R10: 0000000000000003 R11: ffff9245bf2a6c28 R12: ffff923e81ca2180
Mar 24 14:01:23 arch-desktop kernel: R13: ffff92419d19dac8 R14: ffff92419d19dac8 R15: 0000000000000001
Mar 24 14:01:23 arch-desktop kernel: FS:  0000749f02b149c0(0000) GS:ffff92459eac0000(0000) knlGS:0000000000000000
Mar 24 14:01:23 arch-desktop kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Mar 24 14:01:23 arch-desktop kernel: CR2: 00006147024971a0 CR3: 000000013489c000 CR4: 0000000000350ef0
Mar 24 14:01:23 arch-desktop kernel: Call Trace:
Mar 24 14:01:23 arch-desktop kernel:  <TASK>
Mar 24 14:01:23 arch-desktop kernel:  ? drm_gem_shmem_vmap+0x177/0x1b0
Mar 24 14:01:23 arch-desktop kernel:  ? __warn+0x81/0x130
Mar 24 14:01:23 arch-desktop kernel:  ? drm_gem_shmem_vmap+0x177/0x1b0
Mar 24 14:01:23 arch-desktop kernel:  ? report_bug+0x171/0x1a0
Mar 24 14:01:23 arch-desktop kernel:  ? srso_return_thunk+0x5/0x5f
Mar 24 14:01:23 arch-desktop kernel:  ? console_unlock+0x78/0x120
Mar 24 14:01:23 arch-desktop kernel:  ? handle_bug+0x3c/0x80
Mar 24 14:01:23 arch-desktop kernel:  ? exc_invalid_op+0x17/0x70
Mar 24 14:01:23 arch-desktop kernel:  ? asm_exc_invalid_op+0x1a/0x20
Mar 24 14:01:23 arch-desktop kernel:  ? drm_gem_shmem_vmap+0x177/0x1b0
Mar 24 14:01:23 arch-desktop kernel:  ? dma_resv_get_singleton+0x46/0x140
Mar 24 14:01:23 arch-desktop kernel:  drm_gem_vmap+0x22/0x50
Mar 24 14:01:23 arch-desktop kernel:  drm_gem_vmap_unlocked+0x2a/0x50
Mar 24 14:01:23 arch-desktop kernel:  drm_gem_fb_vmap+0x41/0x120
Mar 24 14:01:23 arch-desktop kernel:  drm_atomic_helper_prepare_planes+0x17a/0x210
Mar 24 14:01:23 arch-desktop kernel:  drm_atomic_helper_commit+0x78/0x140
Mar 24 14:01:23 arch-desktop kernel:  drm_atomic_commit+0x9a/0xd0
Mar 24 14:01:23 arch-desktop kernel:  ? __pfx___drm_printfn_info+0x10/0x10
Mar 24 14:01:23 arch-desktop kernel:  drm_atomic_helper_set_config+0x74/0xb0
Mar 24 14:01:23 arch-desktop kernel:  drm_mode_setcrtc+0x481/0x7a0
Mar 24 14:01:23 arch-desktop kernel:  ? __pfx_drm_mode_setcrtc+0x10/0x10
Mar 24 14:01:23 arch-desktop kernel:  drm_ioctl_kernel+0xb5/0x110
Mar 24 14:01:23 arch-desktop kernel:  drm_ioctl+0x26d/0x4b0
Mar 24 14:01:23 arch-desktop kernel:  ? __pfx_drm_mode_setcrtc+0x10/0x10
Mar 24 14:01:23 arch-desktop kernel:  __x64_sys_ioctl+0x97/0xd0
Mar 24 14:01:23 arch-desktop kernel:  do_syscall_64+0x89/0x170
Mar 24 14:01:23 arch-desktop kernel:  ? do_syscall_64+0x96/0x170
Mar 24 14:01:23 arch-desktop kernel:  ? srso_return_thunk+0x5/0x5f
Mar 24 14:01:23 arch-desktop kernel:  ? do_user_addr_fault+0x304/0x670
Mar 24 14:01:23 arch-desktop kernel:  ? srso_return_thunk+0x5/0x5f
Mar 24 14:01:23 arch-desktop kernel:  ? srso_return_thunk+0x5/0x5f
Mar 24 14:01:23 arch-desktop kernel:  entry_SYSCALL_64_after_hwframe+0x6e/0x76
Mar 24 14:01:23 arch-desktop kernel: RIP: 0033:0x749f035064ff
Mar 24 14:01:23 arch-desktop kernel: 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 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 >
Mar 24 14:01:23 arch-desktop kernel: RSP: 002b:00007ffe78fc9750 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Mar 24 14:01:23 arch-desktop kernel: RAX: ffffffffffffffda RBX: 0000614702497190 RCX: 0000749f035064ff
Mar 24 14:01:23 arch-desktop kernel: RDX: 00007ffe78fc97e0 RSI: 00000000c06864a2 RDI: 0000000000000017
Mar 24 14:01:23 arch-desktop kernel: RBP: 00007ffe78fc97e0 R08: 0000000000000000 R09: 00006147029a05b0
Mar 24 14:01:23 arch-desktop kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 00000000c06864a2
Mar 24 14:01:23 arch-desktop kernel: R13: 0000000000000017 R14: 0000614702495698 R15: 00007ffe78fc9890
Mar 24 14:01:23 arch-desktop kernel:  </TASK>
Mar 24 14:01:23 arch-desktop kernel: ---[ end trace 0000000000000000 ]---

Steps to reproduce (this is just one way for me to reliably reproduce):

  1. Lock my KDE desktop
  2. Turn off my LG C2 screen
  3. Turn it back on
  4. Log back in

I think this crash also causes vsync to break as well. If I drag windows around, I see tearing.

Another way I’ve been able to reproduce this is when I am resuming from sleep. I’ll wake up my computer, turn on my LG C2 and then the same crash happens.

Operating System: Arch Linux
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3090/PCIe/SSE2
Product Name: X570 Taichi