Amdgpu drm warning

I’m getting the following warning on every boot:

[    4.933339] ------------[ cut here ]------------
[    4.933340] WARNING: CPU: 10 PID: 683 at drivers/gpu/drm/amd/amdgpu/../display/dc/dsc/dcn20/dcn20_dsc.c:272 dsc2_disable+0x108/0x180 [amdgpu]
[    4.933553] Modules linked in: snd_sof(+) rtw89_8852ce(+) rtw89_8852c intel_rapl_msr(+) amd_atl rtw89_pci intel_rapl_common snd_sof_utils snd_pci_ps edac_mce_amd snd_amd_sdw_acpi rtw89_core soundwire_amd uvcvideo soundwire_generic_allocation kvm_amd snd_hda_codec_realtek soundwire_bus snd_hda_codec_generic snd_rpl_pci_acp6x uvc snd_hda_codec_hdmi snd_hda_scodec_component kvm mac80211 videobuf2_vmalloc snd_hda_scodec_tas2781_i2c videobuf2_memops snd_acp_pci btusb snd_soc_tas2781_fmwlib snd_hda_intel btrtl snd_acp_legacy_common videobuf2_v4l2 snd_soc_tas2781_comlib btintel snd_intel_dspcfg rapl crc8 videobuf2_common snd_pci_acp6x libarc4 snd_intel_sdw_acpi btbcm vfat pcspkr wmi_bmof btmtk snd_pci_acp5x snd_soc_core fat videodev snd_hda_codec snd_compress snd_rn_pci_acp3x cfg80211 ideapad_laptop(+) r8169 ac97_bus snd_acp_config bluetooth snd_pcm_dmaengine sparse_keymap snd_soc_acpi mc platform_profile snd_hda_core i2c_piix4 snd_pci_acp3x k10temp snd_seq realtek snd_hwdep rfkill snd_seq_device snd_pcm snd_timer snd
[    4.933593]  soundcore joydev loop nfnetlink zram amdgpu amdxcp i2c_algo_bit drm_ttm_helper ttm drm_exec gpu_sched crct10dif_pclmul crc32_pclmul drm_suballoc_helper nvme crc32c_intel drm_buddy polyval_clmulni polyval_generic drm_display_helper nvme_core video hid_multitouch ucsi_acpi ghash_clmulni_intel sha512_ssse3 sha256_ssse3 typec_ucsi sha1_ssse3 ccp wdat_wdt cec sp5100_tco typec nvme_auth wmi i2c_hid_acpi i2c_hid serio_raw fuse i2c_dev
[    4.933616] CPU: 10 PID: 683 Comm: plymouthd Not tainted 6.10.7-200.fc40.x86_64 #1
[    4.933618] Hardware name: LENOVO 82WS/LNVNB161216, BIOS LPCN52WW 05/21/2024
[    4.933619] RIP: 0010:dsc2_disable+0x108/0x180 [amdgpu]
[    4.933785] Code: 4c 24 0c 44 8b 43 10 48 8b 40 10 48 8b 30 48 85 f6 74 04 48 8b 76 08 48 c7 c1 40 69 65 c1 ba 08 00 00 00 31 ff e8 c8 09 de c0 <0f> 0b 48 8b 53 20 48 8b 43 28 45 31 c9 48 8b 7b 08 0f b6 8a b4 00
[    4.933786] RSP: 0018:ffffaf798119b2d0 EFLAGS: 00010246
[    4.933788] RAX: 0000000000000000 RBX: ffff9d7d18550000 RCX: ffffffffc1656940
[    4.933789] RDX: 0000000000000008 RSI: ffff9d7d032e40c8 RDI: 0000000000000000
[    4.933790] RBP: ffff9d7d099402d8 R08: 0000000000000000 R09: 0000000000000000
[    4.933791] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9d7d22400000
[    4.933792] R13: ffff9d7d05ac8000 R14: 0000000000000001 R15: ffff9d7d05ac8000
[    4.933793] FS:  00007fdcc49d3440(0000) GS:ffff9d8c2d300000(0000) knlGS:0000000000000000
[    4.933794] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    4.933795] CR2: 00007fe051639c58 CR3: 0000000117c80000 CR4: 0000000000f50ef0
[    4.933796] PKRU: 55555554
[    4.933797] Call Trace:
[    4.933799]  <TASK>
[    4.933800]  ? dsc2_disable+0x108/0x180 [amdgpu]
[    4.933955]  ? __warn.cold+0x8e/0xe8
[    4.933958]  ? dsc2_disable+0x108/0x180 [amdgpu]
[    4.934109]  ? report_bug+0xff/0x140
[    4.934112]  ? handle_bug+0x3c/0x80
[    4.934115]  ? exc_invalid_op+0x17/0x70
[    4.934117]  ? asm_exc_invalid_op+0x1a/0x20
[    4.934121]  ? dsc2_disable+0x108/0x180 [amdgpu]
[    4.934269]  link_set_dsc_on_stream+0x40f/0x480 [amdgpu]
[    4.934438]  ? drm_dp_dpcd_write+0xc3/0xe0 [drm_display_helper]
[    4.934446]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.934448]  ? dm_helpers_dp_write_dsc_enable+0x28a/0x700 [amdgpu]
[    4.934622]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.934625]  link_set_dsc_enable+0x83/0x90 [amdgpu]
[    4.934795]  link_set_dpms_off+0x1e0/0x9b0 [amdgpu]
[    4.934958]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.934960]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.934962]  ? dmub_srv_get_fw_boot_status+0x2a/0x50 [amdgpu]
[    4.935103]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.935105]  ? dc_dmub_srv_is_restore_required+0x40/0x80 [amdgpu]
[    4.935244]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.935246]  ? dm_read_reg_func+0x57/0xe0 [amdgpu]
[    4.935423]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.935426]  dc_commit_state_no_check+0x872/0x1990 [amdgpu]
[    4.935573]  dc_commit_streams+0x178/0x5e0 [amdgpu]
[    4.935718]  amdgpu_dm_atomic_commit_tail+0x66a/0x4770 [amdgpu]
[    4.935882]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.935883]  ? __alloc_pages_noprof+0x182/0x350
[    4.935887]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.935888]  ? __get_random_u32_below+0x16/0x70
[    4.935891]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.935894]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.935896]  ? dma_resv_get_fences+0xb2/0x2a0
[    4.935899]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.935901]  ? dma_resv_get_singleton+0x44/0x150
[    4.935902]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.935904]  ? wait_for_completion_timeout+0x13b/0x170
[    4.935906]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.935907]  ? wait_for_completion_interruptible+0x12d/0x1e0
[    4.935910]  commit_tail+0xac/0x160
[    4.935913]  drm_atomic_helper_commit+0x11a/0x140
[    4.935916]  drm_atomic_commit+0x9d/0xd0
[    4.935918]  ? __pfx___drm_printfn_info+0x10/0x10
[    4.935921]  drm_atomic_helper_set_config+0x74/0xb0
[    4.935923]  drm_mode_setcrtc+0x624/0x8d0
[    4.935928]  ? __pfx_drm_mode_setcrtc+0x10/0x10
[    4.935930]  drm_ioctl_kernel+0xb0/0x100
[    4.935932]  drm_ioctl+0x28b/0x540
[    4.935935]  ? __pfx_drm_mode_setcrtc+0x10/0x10
[    4.935938]  amdgpu_drm_ioctl+0x4e/0x90 [amdgpu]
[    4.936041]  __x64_sys_ioctl+0x94/0xd0
[    4.936045]  do_syscall_64+0x82/0x160
[    4.936047]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936049]  ? __check_object_size+0x58/0x230
[    4.936051]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936053]  ? drm_ioctl+0x2ba/0x540
[    4.936055]  ? __pfx_drm_mode_gamma_set_ioctl+0x10/0x10
[    4.936058]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936060]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936061]  ? __pm_runtime_suspend+0x69/0xc0
[    4.936064]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936065]  ? amdgpu_drm_ioctl+0x71/0x90 [amdgpu]
[    4.936169]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936171]  ? syscall_exit_to_user_mode+0x72/0x220
[    4.936172]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936174]  ? do_syscall_64+0x8e/0x160
[    4.936176]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936177]  ? __count_memcg_events+0x75/0x130
[    4.936180]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936181]  ? count_memcg_events.constprop.0+0x1a/0x30
[    4.936183]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936184]  ? handle_mm_fault+0x1f0/0x300
[    4.936187]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936189]  ? do_user_addr_fault+0x17f/0x620
[    4.936191]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936193]  ? srso_alias_return_thunk+0x5/0xfbef5
[    4.936195]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[    4.936197] RIP: 0033:0x7fdcc4ca0f2d
[    4.936208] Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00
[    4.936210] RSP: 002b:00007ffd67c7ea30 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[    4.936211] RAX: ffffffffffffffda RBX: 00007fdcc49d33c8 RCX: 00007fdcc4ca0f2d
[    4.936212] RDX: 00007ffd67c7eac0 RSI: 00000000c06864a2 RDI: 000000000000000b
[    4.936213] RBP: 00007ffd67c7ea80 R08: 0000000000000000 R09: 0000557f37eab990
[    4.936214] R10: 00000000003e8000 R11: 0000000000000246 R12: 00007ffd67c7eac0
[    4.936215] R13: 00000000c06864a2 R14: 000000000000000b R15: 0000557f37eab920
[    4.936218]  </TASK>
[    4.936219] ---[ end trace 0000000000000000 ]---

The system randomly crashes after some time. Reverting back to an older kernel (6.9) fixes the crashes, but the warning remains. All 6.10.* kernels cause random crashes.

It’s a known issue, a fix might be coming in kernel 6.11, that could land pretty soon.

Removed bluetooth

Yeah, just stick with 6.9 or lower. I’m using a 6.8 kernel from the thumb drive install which seems rock stable for AMD gpus.