Display/System Freeze/Crash

Which Linux distro are you using?
I’m using Bazzite Gnome: Stable (Based on Fedora Silverblu)

Which release version?
Bazzite 41 (FROM Fedora Silverblu)

Which kernel are you using?
Linux 6.12.12-203.bazzite.fc41.x84

Which BIOS version are you using?
3.05

Which Framework Laptop 16 model are you using? (AMD Ryzen™ 7040 Series)
AMD Ryzen 9 7940HS | AMD Ryzen™ 7040 Series | AMD Radeon RX 7700S

So, this happens on both Gnome and KDE, standard Fedora, Silverblu, Kinote, and Bazzite (Both KDE and Gnome Spins) My system will freeze, I cannot reproduce it, and the screen will be completely unresponsive (sometimes the screen goes black) but if I have a program runninng in the background I can still hear it. (Mouse and keyboard don’t seem to work) but today it happened while on a zoom call and my mic still worked, so I finished the call with the screen completely forzen.

The call froze at 9:22AM on Feb 13th. Here is a pastebin of the logs. This has been a pain for near a year and I haven’t been able to solve it.

https://paste.centos.org/view/c69bbb65

I extracted the kernel error from the 23000 lines of code:

Feb 13 09:22:51 MERLIN kernel: ------------[ cut here ]------------
Feb 13 09:22:51 MERLIN kernel: WARNING: CPU: 6 PID: 40515 at drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_replay.c:89 dmub_replay_enable+0x100/0x110 [amdgpu]
Feb 13 09:22:51 MERLIN kernel: Modules linked in: uvcvideo uvc videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common overlay rfcomm 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 qrtr bnep sunrpc binfmt_misc leds_cros_ec gpio_cros_ec cros_usbpd_charger cros_ec_sysfs led_class_multicolor cros_charge_control cros_usbpd_logger cros_ec_hwmon cros_ec_chardev cros_usbpd_notify snd_sof_amd_acp70 snd_sof_amd_acp63 wl(POE) snd_soc_acpi_amd_match intel_rapl_msr cros_ec_dev snd_sof_amd_vangogh snd_sof_amd_rembrandt spd5118 amd_atl intel_rapl_common snd_sof_amd_renoir vfat edac_mce_amd framework_laptop(OE) snd_sof_amd_acp snd_sof_pci fat snd_sof_xtensa_dsp btusb snd_sof btintel cros_ec_lpcs kvm_amd hid_sensor_als snd_sof_utils btbcm mt7921e cros_ec snd_hda_codec_realtek btrtl hid_sensor_trigger mt7921_common
Feb 13 09:22:51 MERLIN kernel:  snd_hda_codec_generic snd_pci_ps btmtk snd_hda_scodec_component mt792x_lib hid_sensor_iio_common kvm snd_hda_codec_hdmi mt76_connac_lib snd_amd_sdw_acpi soundwire_amd bluetooth soundwire_generic_allocation mt76 industrialio_triggered_buffer kfifo_buf soundwire_bus snd_hda_intel industrialio rapl wmi_bmof snd_intel_dspcfg mac80211 snd_soc_core snd_intel_sdw_acpi pcspkr snd_hda_codec k10temp snd_hda_core snd_compress ac97_bus libarc4 snd_pcm_dmaengine snd_hwdep snd_seq snd_rpl_pci_acp6x snd_pci_acp6x snd_seq_device thunderbolt snd_pci_acp5x snd_pcm cfg80211 i2c_piix4 snd_rn_pci_acp3x snd_timer snd_acp_config snd_soc_acpi amd_pmf amdtee snd i2c_smbus rfkill soundcore snd_pci_acp3x amd_sfh tee joydev amd_pmc platform_profile tcp_bbr sch_fq vhba(OE) ryzen_smu(OE) loop nfnetlink lz4 zram lz4hc_compress lz4_compress dm_crypt typec_displayport amdgpu amdxcp drm_exec gpu_sched drm_buddy i2c_algo_bit drm_suballoc_helper drm_display_helper crct10dif_pclmul crc32_pclmul crc32c_intel cec polyval_clmulni nvme
Feb 13 09:22:51 MERLIN kernel:  polyval_generic video drm_ttm_helper hid_multitouch ucsi_acpi ghash_clmulni_intel hid_sensor_hub nvme_core sha512_ssse3 sha256_ssse3 typec_ucsi sha1_ssse3 ttm sp5100_tco typec nvme_auth wmi i2c_hid_acpi i2c_hid vfio_pci vfio_pci_core vfio_iommu_type1 vfio iommufd v4l2loopback(OE) videodev mc uhid kvmfr(OE) gcadapter_oc(OE) fuse i2c_dev
Feb 13 09:22:51 MERLIN kernel: CPU: 6 UID: 0 PID: 40515 Comm: kworker/u64:79 Tainted: P        W  OE      6.12.12-203.bazzite.fc41.x86_64 #1
Feb 13 09:22:51 MERLIN kernel: Tainted: [P]=PROPRIETARY_MODULE, [W]=WARN, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
Feb 13 09:22:51 MERLIN kernel: Hardware name: Framework Laptop 16 (AMD Ryzen 7040 Series)/FRANMZCP09, BIOS 03.05 11/13/2024
Feb 13 09:22:51 MERLIN kernel: Workqueue: events_unbound commit_work
Feb 13 09:22:51 MERLIN kernel: RIP: 0010:dmub_replay_enable+0x100/0x110 [amdgpu]
Feb 13 09:22:51 MERLIN kernel: Code: d1 81 fb e8 03 00 00 74 21 48 8b 44 24 48 65 48 2b 04 25 28 00 00 00 75 15 48 83 c4 50 5b 5d 41 5c 41 5d 41 5e e9 5b d4 69 d0 <0f> 0b eb db e8 a7 e1 3a d0 0f 1f 80 00 00 00 00 90 90 90 90 90 90
Feb 13 09:22:51 MERLIN kernel: RSP: 0018:ffffb5392962fad8 EFLAGS: 00010246
Feb 13 09:22:51 MERLIN kernel: RAX: 0000f5e7661622b0 RBX: 00000000000003e9 RCX: 0000000000000006
Feb 13 09:22:51 MERLIN kernel: RDX: 00000000001e8188 RSI: 00000000001e75fe RDI: 0000f5e765f7a128
Feb 13 09:22:51 MERLIN kernel: RBP: 0000000000000000 R08: 0000000000000002 R09: ffff8b4554d3a700
Feb 13 09:22:51 MERLIN kernel: R10: 000000000000000d R11: 0000000000000001 R12: ffff8b4541210e10
Feb 13 09:22:51 MERLIN kernel: R13: 0000000000000001 R14: ffffb5392962fadc R15: ffff8b4575ea5000
Feb 13 09:22:51 MERLIN kernel: FS:  0000000000000000(0000) GS:ffff8b4bc1d00000(0000) knlGS:0000000000000000
Feb 13 09:22:51 MERLIN kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Feb 13 09:22:51 MERLIN kernel: CR2: 00007fd088f9c000 CR3: 000000049382c000 CR4: 0000000000f50ef0
Feb 13 09:22:51 MERLIN kernel: PKRU: 55555554
Feb 13 09:22:51 MERLIN kernel: Call Trace:
Feb 13 09:22:51 MERLIN kernel:  <TASK>
Feb 13 09:22:51 MERLIN kernel:  ? dmub_replay_enable+0x100/0x110 [amdgpu]
Feb 13 09:22:51 MERLIN kernel:  ? __warn.cold+0x93/0xfa
Feb 13 09:22:51 MERLIN kernel:  ? dmub_replay_enable+0x100/0x110 [amdgpu]
Feb 13 09:22:51 MERLIN kernel:  ? report_bug+0xff/0x140
Feb 13 09:22:51 MERLIN kernel:  ? handle_bug+0x58/0x90
Feb 13 09:22:51 MERLIN kernel:  ? exc_invalid_op+0x17/0x70
Feb 13 09:22:51 MERLIN kernel:  ? asm_exc_invalid_op+0x1a/0x20
Feb 13 09:22:51 MERLIN kernel:  ? dmub_replay_enable+0x100/0x110 [amdgpu]
Feb 13 09:22:51 MERLIN kernel:  ? dmub_replay_enable+0xb5/0x110 [amdgpu]
Feb 13 09:22:51 MERLIN kernel:  edp_set_replay_allow_active+0x14d/0x1b0 [amdgpu]
Feb 13 09:22:51 MERLIN kernel:  amdgpu_dm_replay_enable+0xc1/0xf0 [amdgpu]
Feb 13 09:22:51 MERLIN kernel:  amdgpu_dm_atomic_commit_tail+0x3e86/0x45f0 [amdgpu]
Feb 13 09:22:51 MERLIN kernel:  ? __entry_text_end+0x101e46/0x101e49
Feb 13 09:22:51 MERLIN kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Feb 13 09:22:51 MERLIN kernel:  ? dma_fence_default_wait+0x8c/0x260
Feb 13 09:22:51 MERLIN kernel:  ? __pfx_dma_fence_default_wait_cb+0x10/0x10
Feb 13 09:22:51 MERLIN kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Feb 13 09:22:51 MERLIN kernel:  ? kvfree_call_rcu+0x253/0x420
Feb 13 09:22:51 MERLIN kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Feb 13 09:22:51 MERLIN kernel:  ? wait_for_completion_timeout+0x13b/0x170
Feb 13 09:22:51 MERLIN kernel:  commit_tail+0xac/0x160
Feb 13 09:22:51 MERLIN kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Feb 13 09:22:51 MERLIN kernel:  process_one_work+0x176/0x330
Feb 13 09:22:51 MERLIN kernel:  worker_thread+0x252/0x390
Feb 13 09:22:51 MERLIN kernel:  ? __pfx_worker_thread+0x10/0x10
Feb 13 09:22:51 MERLIN kernel:  kthread+0xcf/0x100
Feb 13 09:22:51 MERLIN kernel:  ? __pfx_kthread+0x10/0x10
Feb 13 09:22:51 MERLIN kernel:  ret_from_fork+0x31/0x50
Feb 13 09:22:51 MERLIN kernel:  ? __pfx_kthread+0x10/0x10
Feb 13 09:22:51 MERLIN kernel:  ret_from_fork_asm+0x1a/0x30
Feb 13 09:22:51 MERLIN kernel:  </TASK>
Feb 13 09:22:51 MERLIN kernel: ---[ end trace 0000000000000000 ]---

It looks like it’s this line:
Feb 13 09:22:51 MERLIN kernel: RIP: 0010:dmub_replay_enable+0x100/0x110 [amdgpu]

Someone had a similar looking problem, also on kernel 6.12, but on arch: