Bug 206349

Summary: WARNING: dcn20_validate_bandwidth+0x87/0x9e [ amdgpu on 5700 XT ]
Product: Drivers Reporter: Jonathan Frederick (doublej472)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: NEW ---    
Severity: low CC: jimmy
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 5.5.0 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg warnings from amdgpu

Description Jonathan Frederick 2020-01-29 21:44:12 UTC
Created attachment 287027 [details]
dmesg warnings from amdgpu

I've been seeing this warning pop up in my dmesg for a while from amdgpu, all relating to dcn20_validate_bandwidth. I'm not sure if it's affecting my machine in a significant manner, but it keeps showing up.

[ 8236.203353] arch-desktop kernel: ------------[ cut here ]------------
[ 8236.203403] arch-desktop kernel: WARNING: CPU: 9 PID: 555 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.c:2959 dcn20_validate_bandwidth+0x87/0x9e [amdgpu]
[ 8236.203405] arch-desktop kernel: Modules linked in: bridge stp llc bcache crc64 raid1 snd_usb_audio snd_usbmidi_lib kvm_amd snd_rawmidi kvm amdgpu gpu_sched k10temp ttm sch_fq_codel efivarfs
[ 8236.203414] arch-desktop kernel: CPU: 9 PID: 555 Comm: Xorg Not tainted 5.5.0-gentoo #1
[ 8236.203415] arch-desktop kernel: Hardware name: System manufacturer System Product Name/PRIME X370-PRO, BIOS 5220 09/12/2019
[ 8236.203451] arch-desktop kernel: RIP: 0010:dcn20_validate_bandwidth+0x87/0x9e [amdgpu]
[ 8236.203453] arch-desktop kernel: Code: 00 00 01 eb 29 31 d2 f2 0f 11 85 70 21 00 00 48 89 ee e8 e9 f7 ff ff 89 c2 22 85 b8 1d 00 00 74 09 c6 85 b8 1d 00 00 00 eb 04 <0f> 0b 89 d0 f2 0f 10 1c 24 f2 0f 11 9d 70 21 00 00 48 83 c4 10 5d
[ 8236.203455] arch-desktop kernel: RSP: 0018:ffff8e9800c9fa80 EFLAGS: 00010246
[ 8236.203457] arch-desktop kernel: RAX: 0000000000000000 RBX: ffff8b19d3f6b900 RCX: 0000000000215f49
[ 8236.203458] arch-desktop kernel: RDX: 0000000000000001 RSI: 0000000000215f09 RDI: 000000000002e300
[ 8236.203460] arch-desktop kernel: RBP: ffff8b17ee190000 R08: ffff8b1b7b406840 R09: ffffffffc0345b6b
[ 8236.203461] arch-desktop kernel: R10: ffff8b1b66e6a000 R11: ffff8b1b66e6a000 R12: 0000000000000000
[ 8236.203462] arch-desktop kernel: R13: 0000000000000000 R14: ffff8b17ee190000 R15: 0000000000000002
[ 8236.203464] arch-desktop kernel: FS:  00007ff890a4e980(0000) GS:ffff8b1b7ea40000(0000) knlGS:0000000000000000
[ 8236.203465] arch-desktop kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8236.203467] arch-desktop kernel: CR2: 00005620d7c8eef0 CR3: 00000007e2886000 CR4: 0000000000340ee0
[ 8236.203468] arch-desktop kernel: Call Trace:
[ 8236.203504] arch-desktop kernel:  dc_validate_global_state+0x1b6/0x1d7 [amdgpu]
[ 8236.203549] arch-desktop kernel:  amdgpu_dm_atomic_check+0x52a/0x666 [amdgpu]
[ 8236.203556] arch-desktop kernel:  drm_atomic_check_only+0x586/0x62e
[ 8236.203559] arch-desktop kernel:  ? drm_atomic_set_crtc_for_connector+0xd9/0xe1
[ 8236.203562] arch-desktop kernel:  drm_atomic_commit+0xe/0x44
[ 8236.203565] arch-desktop kernel:  drm_atomic_helper_set_config+0x50/0x66
[ 8236.203569] arch-desktop kernel:  drm_mode_setcrtc+0x221/0x5dc
[ 8236.203574] arch-desktop kernel:  ? drm_mode_getcrtc+0x145/0x145
[ 8236.203576] arch-desktop kernel:  drm_ioctl_kernel+0x8d/0xe1
[ 8236.203579] arch-desktop kernel:  drm_ioctl+0x1f9/0x2d3
[ 8236.203582] arch-desktop kernel:  ? drm_mode_getcrtc+0x145/0x145
[ 8236.203613] arch-desktop kernel:  amdgpu_drm_ioctl+0x45/0x71 [amdgpu]
[ 8236.203617] arch-desktop kernel:  vfs_ioctl+0x19/0x26
[ 8236.203620] arch-desktop kernel:  do_vfs_ioctl+0x574/0x59e
[ 8236.203623] arch-desktop kernel:  ksys_ioctl+0x49/0x68
[ 8236.203626] arch-desktop kernel:  __x64_sys_ioctl+0x11/0x14
[ 8236.203629] arch-desktop kernel:  do_syscall_64+0x48/0x55
[ 8236.203632] arch-desktop kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 8236.203634] arch-desktop kernel: RIP: 0033:0x7ff890d0b5c7
[ 8236.203636] arch-desktop kernel: Code: 00 00 00 75 0c 48 c7 c0 ff ff ff ff 48 83 c4 18 c3 e8 0d c8 01 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 99 e8 0c 00 f7 d8 64 89 01 48
[ 8236.203638] arch-desktop kernel: RSP: 002b:00007ffea4921a48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 8236.203639] arch-desktop kernel: RAX: ffffffffffffffda RBX: 00007ffea4921a80 RCX: 00007ff890d0b5c7
[ 8236.203641] arch-desktop kernel: RDX: 00007ffea4921a80 RSI: 00000000c06864a2 RDI: 000000000000000c
[ 8236.203642] arch-desktop kernel: RBP: 00000000c06864a2 R08: 0000000000000000 R09: 0000000000000000
[ 8236.203643] arch-desktop kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 00005620d7fe1e70
[ 8236.203644] arch-desktop kernel: R13: 000000000000000c R14: 00005620d8e342f0 R15: 00005620d6dc2040
[ 8236.203649] arch-desktop kernel: ---[ end trace 82184d8b2d613936 ]---

I've attached a few more warnings to this bug report.

I'm not sure what causes this warning. It *might* happen whenever the GPU is being used, if I leave the machine alone it tends to not show. It could be related to waking up my monitor? (Attached to a DisplayPort cable, running at 1920x1080 @ 144 Hz, if that matters)

My system is running on an ASUS PRIME X370-PRO motherboard with a ryzen 3900x, 32GB of ram, and a 5700 XT GPU (on a PCIe 3.0 x16 link).

Please let me know if you need more info!
Comment 1 Jimmy Berry 2021-10-05 01:03:32 UTC
Looks like I have the same thing on 5.14.6 with a Radeon 6900 XT.

From 5.13.8 I was able to run 4 x 4k @ 60hz + 2 x 4k @30hz. Hardware should support all 6 at 60hz, but that is all I can get to work. As of the update to 5.14.6 I can now only run 3 x 4k @ 60hz + 3 x 4k @ 30hz.

Wondering if this error is related. I can supply more detail.


[   43.785782] ------------[ cut here ]------------
[   43.785784] WARNING: CPU: 20 PID: 1392 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_dsc.c:267 dsc2_disable+0x12b/0x140 [amdgpu]
[   43.785879] Modules linked in: af_packet dmi_sysfs dm_crypt essiv authenc trusted asn1_encoder tee intel_rapl_msr intel_rapl_common edac_mce_amd snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi kvm snd_usb_audio snd_hda_codec uvcvideo snd_usbmidi_lib snd_hda_core snd_rawmidi irqbypass videobuf2_vmalloc snd_seq_device videobuf2_memops snd_hwdep eeepc_wmi videobuf2_v4l2 asus_wmi snd_pcm videobuf2_common battery sparse_keymap rfkill joydev video pcspkr snd_timer wmi_bmof i2c_piix4 snd k10temp igc soundcore tiny_power_button gpio_amdpt gpio_generic acpi_cpufreq button fuse configfs ext4 mbcache jbd2 hid_logitech_hidpp hid_logitech_dj hid_generic usbhid amdgpu drm_ttm_helper ttm iommu_v2 gpu_sched i2c_algo_bit drm_kms_helper crct10dif_pclmul crc32_pclmul crc32c_intel syscopyarea sysfillrect sysimgblt ghash_clmulni_intel fb_sys_fops cec xhci_pci xhci_pci_renesas rc_core xhci_hcd drm usbcore
[   43.785899]  aesni_intel nvme ccp crypto_simd cryptd nvme_core sp5100_tco wmi v4l2loopback(O) videodev mc sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua msr
[   43.785906] CPU: 20 PID: 1392 Comm: Xorg.bin Tainted: G        W  O      5.14.6-1-default #1 openSUSE Tumbleweed 539bdc3afabb63aa01656ffde27ce5025c985e0c
[   43.785908] Hardware name: ASUS System Product Name/ROG STRIX B550-F GAMING, BIOS 1401 12/03/2020
[   43.785908] RIP: 0010:dsc2_disable+0x12b/0x140 [amdgpu]
[   43.785987] Code: 10 65 48 2b 04 25 28 00 00 00 75 25 48 83 c4 18 5b c3 8b 53 10 8b 4c 24 0c bf 04 00 00 00 48 c7 c6 50 15 9c c0 e8 95 fc 8b 00 <0f> 0b e9 75 ff ff ff e8 c9 5b ae ec 66 0f 1f 84 00 00 00 00 00 0f
[   43.785988] RSP: 0018:ffffa32302df3608 EFLAGS: 00010246
[   43.785989] RAX: 0000000000000000 RBX: ffff8d30610c6000 RCX: 0000000000000000
[   43.785990] RDX: 0000000000000004 RSI: ffffffffc09c1550 RDI: 0000000000000000
[   43.785990] RBP: ffff8d30610c6000 R08: ffffa32302df3610 R09: 0000000000000004
[   43.785990] R10: 0000000000000000 R11: 0000000a319e8f4b R12: ffff8d30c5220000
[   43.785991] R13: ffff8d30c52214a8 R14: ffff8d3c08550000 R15: ffff8d3044934000
[   43.785992] FS:  00007efc485ea940(0000) GS:ffff8d3f2ef00000(0000) knlGS:0000000000000000
[   43.785992] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   43.785993] CR2: 00007efc2405a358 CR3: 0000000107c2a000 CR4: 0000000000750ee0
[   43.785993] PKRU: 55555554
[   43.785994] Call Trace:
[   43.785997]  dp_set_dsc_on_stream+0x2be/0x360 [amdgpu 791908deeeccac56f7b565af20aa0cff4bc40e3b]
[   43.786074]  ? drm_dp_dpcd_write+0x65/0xd0 [drm_kms_helper 750f79a7da02c8d460f017cfe9bf7182a2652479]
[   43.786081]  dp_set_dsc_enable+0x6a/0x80 [amdgpu 791908deeeccac56f7b565af20aa0cff4bc40e3b]
[   43.786152]  dcn20_reset_hw_ctx_wrap+0x11c/0x370 [amdgpu 791908deeeccac56f7b565af20aa0cff4bc40e3b]
[   43.786228]  dce110_apply_ctx_to_hw+0x4f/0x560 [amdgpu 791908deeeccac56f7b565af20aa0cff4bc40e3b]
[   43.786301]  ? __free_pages_ok+0x2d8/0x410
[   43.786304]  dc_commit_state+0x333/0xa80 [amdgpu 791908deeeccac56f7b565af20aa0cff4bc40e3b]
[   43.786374]  amdgpu_dm_atomic_commit_tail+0x53a/0x25f0 [amdgpu 791908deeeccac56f7b565af20aa0cff4bc40e3b]
[   43.786452]  ? dcn30_validate_bandwidth+0x11f/0x270 [amdgpu 791908deeeccac56f7b565af20aa0cff4bc40e3b]
[   43.786526]  ? kfree+0xba/0x3c0
[   43.786528]  ? dm_plane_helper_prepare_fb+0x1b4/0x270 [amdgpu 791908deeeccac56f7b565af20aa0cff4bc40e3b]
[   43.786602]  ? __cond_resched+0x16/0x40
[   43.786604]  ? __wait_for_common+0x3b/0x160
[   43.786605]  ? __cond_resched+0x16/0x40
[   43.786605]  ? __wait_for_common+0x3b/0x160
[   43.786607]  commit_tail+0x94/0x120 [drm_kms_helper 750f79a7da02c8d460f017cfe9bf7182a2652479]
[   43.786614]  drm_atomic_helper_commit+0x113/0x140 [drm_kms_helper 750f79a7da02c8d460f017cfe9bf7182a2652479]
[   43.786619]  drm_atomic_helper_set_config+0x70/0xb0 [drm_kms_helper 750f79a7da02c8d460f017cfe9bf7182a2652479]
[   43.786625]  drm_mode_setcrtc+0x1d3/0x6d0 [drm 13a94d3e4d6d5c79a58cf45473f1abe284f6b940]
[   43.786637]  ? drm_mode_getcrtc+0x170/0x170 [drm 13a94d3e4d6d5c79a58cf45473f1abe284f6b940]
[   43.786645]  drm_ioctl_kernel+0xaa/0xf0 [drm 13a94d3e4d6d5c79a58cf45473f1abe284f6b940]
[   43.786655]  drm_ioctl+0x213/0x3e0 [drm 13a94d3e4d6d5c79a58cf45473f1abe284f6b940]
[   43.786663]  ? drm_mode_getcrtc+0x170/0x170 [drm 13a94d3e4d6d5c79a58cf45473f1abe284f6b940]
[   43.786672]  amdgpu_drm_ioctl+0x49/0x80 [amdgpu 791908deeeccac56f7b565af20aa0cff4bc40e3b]
[   43.786727]  __x64_sys_ioctl+0x82/0xb0
[   43.786730]  do_syscall_64+0x5c/0x80
[   43.786732]  ? syscall_exit_to_user_mode+0x18/0x40
[   43.786733]  ? do_syscall_64+0x69/0x80
[   43.786734]  ? exit_to_user_mode_prepare+0x19b/0x230
[   43.786736]  ? syscall_exit_to_user_mode+0x18/0x40
[   43.786737]  ? do_syscall_64+0x69/0x80
[   43.786738]  ? exit_to_user_mode_prepare+0x1ab/0x230
[   43.786739]  ? syscall_exit_to_user_mode+0x18/0x40
[   43.786739]  ? do_syscall_64+0x69/0x80
[   43.786740]  ? exit_to_user_mode_prepare+0x1ab/0x230
[   43.786741]  entry_SYSCALL_64_after_hwframe+0x44/0xae
[   43.786742] RIP: 0033:0x7efc48b3722b
[   43.786743] 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 bd 2b 0f 00 f7 d8 64 89 01 48
[   43.786744] RSP: 002b:00007fff6c24c2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   43.786745] RAX: ffffffffffffffda RBX: 00007fff6c24c320 RCX: 00007efc48b3722b
[   43.786745] RDX: 00007fff6c24c320 RSI: 00000000c06864a2 RDI: 000000000000000d
[   43.786746] RBP: 00000000c06864a2 R08: 0000000000000000 R09: 0000561bbfb3f170
[   43.786746] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[   43.786747] R13: 000000000000000d R14: 0000561bbfb3f170 R15: 0000000000000000
[   43.786748] ---[ end trace f0d9cdc734575b61 ]---