amdgpu 7900XTX drm tty lag rendering characters and hang
When switching from tty7 (graphical login/DE) to a tty3 console, and trying to type something, while typing the display has observable lag, characters are displayed with a delay or after a short hang. After some time, the following is displayed into dmesg and trying to switch back to tty7 does not work anymore (black screens with no output).
This happens while running kernel 6.1.0-7-amd64 #1 (closed) SMP PREEMPT_DYNAMIC Debian 6.1.20-2.
With kernel Linux andreidesk 6.1.0-5-amd64 #1 (closed) SMP PREEMPT_DYNAMIC Debian 6.1.12-1 (2023-02-15) x86_64 GNU/Linux, the lag and display hang is there but there is no dmesg WARNING present or displayed into dmesg.
With kernel 6.1.11-x64v3-xanmod1 #0~20230210.d26e42a SMP PREEMPT_DYNAMIC Fri Feb 10 01:19:20 UTC x86_64 GNU/Linux, it seems the lag is not there.
Hardware description:
- CPU: AMD 5950x
- GPU: 0a:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX] [1002:744c] (rev c8) Sapphire Nitro+
- System Memory: 32GB DDR4
- Display(s): DELL 27" 2560x1440@144 DisplayPort and SAMSUNG 75" 3840x2160@120 HDMI
System Info:
- Debian 12 bookworm/testing
- Kernel: 6.1.0-7-amd64 #1 (closed) SMP PREEMPT_DYNAMIC Debian 6.1.20-2 (2023-04-08) x86_64 GNU/Linux
- DE: KDE Plasma 5.27.2 Wayland
[Wed Apr 19 11:18:33 2023] ------------[ cut here ]------------
[Wed Apr 19 11:18:33 2023] WARNING: CPU: 31 PID: 1227 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_hwseq.c:1196 dcn32_calculate_dccg_k1_k2_values+0xca/0x130 [amdgpu]
[Wed Apr 19 11:18:33 2023] Modules linked in: 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 uhid cmac algif_hash algif_skcipher af_alg bnep sunrpc binfmt_misc nls_ascii nls_cp437 vfat fat intel_rapl_msr intel_rapl_common iwlmvm edac_mce_amd btusb btrtl btbcm kvm_amd btintel btmtk mac80211 snd_hda_codec_realtek libarc4 bluetooth kvm snd_hda_codec_generic irqbypass snd_hda_codec_hdmi iwlwifi snd_usb_audio jitterentropy_rng ghash_clmulni_intel snd_hda_intel sha512_ssse3 snd_intel_dspcfg sha512_generic snd_usbmidi_lib snd_intel_sdw_acpi snd_hda_codec asus_ec_sensors snd_rawmidi snd_seq_device aesni_intel ctr snd_hda_core cfg80211 mc hid_sony snd_hwdep crypto_simd eeepc_wmi cryptd ff_memless drbg asus_wmi snd_pcm platform_profile battery sparse_keymap ansi_cprng rapl snd_timer ledtrig_audio wmi_bmof sp5100_tco snd ecdh_generic ccp pcspkr ecc
[Wed Apr 19 11:18:33 2023] watchdog soundcore k10temp rng_core rfkill joydev acpi_cpufreq evdev msr parport_pc ppdev lp parport fuse dm_mod loop efi_pstore configfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 btrfs blake2b_generic zstd_compress efivarfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath linear md_mod amdgpu gpu_sched drm_buddy video i2c_algo_bit drm_display_helper cec hid_generic usbhid hid rc_core ahci drm_ttm_helper ttm libahci xhci_pci drm_kms_helper nvme libata xhci_hcd nvme_core drm scsi_mod t10_pi usbcore mxm_wmi crc32_pclmul crc32c_intel i2c_piix4 crc64_rocksoft crc64 crc_t10dif crct10dif_generic scsi_common usb_common crct10dif_pclmul crct10dif_common wmi button
[Wed Apr 19 11:18:33 2023] CPU: 31 PID: 1227 Comm: Xorg Not tainted 6.1.0-7-amd64 #1 Debian 6.1.20-2
[Wed Apr 19 11:18:33 2023] Hardware name: ASUS System Product Name/ROG CROSSHAIR VIII DARK HERO, BIOS 4304 12/12/2022
[Wed Apr 19 11:18:33 2023] RIP: 0010:dcn32_calculate_dccg_k1_k2_values+0xca/0x130 [amdgpu]
[Wed Apr 19 11:18:33 2023] Code: 04 00 00 83 f8 04 74 36 8d 50 ff 83 fa 01 76 2e 8d 50 e0 83 e2 df 74 44 3d 80 00 00 00 74 3d 83 7d 00 0f 75 c2 83 3b 0f 75 bd <0f> 0b 5b 44 89 f0 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc c7 45
[Wed Apr 19 11:18:33 2023] RSP: 0018:ffffb349c339b5a8 EFLAGS: 00010246
[Wed Apr 19 11:18:33 2023] RAX: 0000000000000200 RBX: ffffb349c339b5fc RCX: 0000000000000000
[Wed Apr 19 11:18:33 2023] RDX: 00000000000001c0 RSI: ffffb349c339b5f8 RDI: ffff9f59ca141358
[Wed Apr 19 11:18:33 2023] RBP: ffffb349c339b5f8 R08: 0000000000000010 R09: ffffb349c339b5c0
[Wed Apr 19 11:18:33 2023] R10: 0000000000000002 R11: 0000000000000008 R12: ffff9f59d70e3000
[Wed Apr 19 11:18:33 2023] R13: 0000000000000000 R14: 0000000000000001 R15: ffff9f59ca141358
[Wed Apr 19 11:18:33 2023] FS: 00007fd26cca6a80(0000) GS:ffff9f60ef1c0000(0000) knlGS:0000000000000000
[Wed Apr 19 11:18:33 2023] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Wed Apr 19 11:18:33 2023] CR2: 00007fd25ca52000 CR3: 00000001069ea000 CR4: 0000000000750ee0
[Wed Apr 19 11:18:33 2023] PKRU: 55555554
[Wed Apr 19 11:18:33 2023] Call Trace:
[Wed Apr 19 11:18:33 2023] <TASK>
[Wed Apr 19 11:18:33 2023] dcn20_enable_stream_timing+0xfe/0x580 [amdgpu]
[Wed Apr 19 11:18:33 2023] dce110_apply_ctx_to_hw+0x5f5/0x720 [amdgpu]
[Wed Apr 19 11:18:33 2023] ? generic_reg_get+0x1d/0x30 [amdgpu]
[Wed Apr 19 11:18:33 2023] ? optc1_is_tg_enabled+0x45/0x70 [amdgpu]
[Wed Apr 19 11:18:33 2023] commit_planes_for_stream+0x273/0x12f0 [amdgpu]
[Wed Apr 19 11:18:33 2023] dc_commit_updates_for_stream+0x1c6/0x4d0 [amdgpu]
[Wed Apr 19 11:18:33 2023] amdgpu_dm_atomic_commit_tail+0x1657/0x2a50 [amdgpu]
[Wed Apr 19 11:18:33 2023] commit_tail+0x94/0x130 [drm_kms_helper]
[Wed Apr 19 11:18:33 2023] drm_atomic_helper_commit+0x112/0x140 [drm_kms_helper]
[Wed Apr 19 11:18:33 2023] drm_atomic_commit+0x96/0xc0 [drm]
[Wed Apr 19 11:18:33 2023] ? drm_plane_get_damage_clips.cold+0x1c/0x1c [drm]
[Wed Apr 19 11:18:33 2023] drm_atomic_helper_set_config+0x70/0xb0 [drm_kms_helper]
[Wed Apr 19 11:18:33 2023] drm_mode_setcrtc+0x511/0x7e0 [drm]
[Wed Apr 19 11:18:33 2023] ? drm_mode_getcrtc+0x180/0x180 [drm]
[Wed Apr 19 11:18:33 2023] drm_ioctl_kernel+0xc9/0x170 [drm]
[Wed Apr 19 11:18:33 2023] drm_ioctl+0x22f/0x410 [drm]
[Wed Apr 19 11:18:33 2023] ? drm_mode_getcrtc+0x180/0x180 [drm]
[Wed Apr 19 11:18:33 2023] amdgpu_drm_ioctl+0x4a/0x80 [amdgpu]
[Wed Apr 19 11:18:33 2023] __x64_sys_ioctl+0x90/0xd0
[Wed Apr 19 11:18:33 2023] do_syscall_64+0x5b/0xc0
[Wed Apr 19 11:18:33 2023] ? fpregs_assert_state_consistent+0x22/0x50
[Wed Apr 19 11:18:33 2023] ? exit_to_user_mode_prepare+0x171/0x1c0
[Wed Apr 19 11:18:33 2023] ? syscall_exit_to_user_mode+0x17/0x40
[Wed Apr 19 11:18:33 2023] ? do_syscall_64+0x67/0xc0
[Wed Apr 19 11:18:33 2023] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[Wed Apr 19 11:18:33 2023] RIP: 0033:0x7fd26d306afb
[Wed Apr 19 11:18:33 2023] 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 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
[Wed Apr 19 11:18:33 2023] RSP: 002b:00007ffd972b5b90 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[Wed Apr 19 11:18:33 2023] RAX: ffffffffffffffda RBX: 000055b37bbd0a70 RCX: 00007fd26d306afb
[Wed Apr 19 11:18:33 2023] RDX: 00007ffd972b5c20 RSI: 00000000c06864a2 RDI: 000000000000000f
[Wed Apr 19 11:18:33 2023] RBP: 00007ffd972b5c20 R08: 0000000000000000 R09: 000055b37bbd0a90
[Wed Apr 19 11:18:33 2023] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000c06864a2
[Wed Apr 19 11:18:33 2023] R13: 000000000000000f R14: 000055b37b1f8780 R15: 000055b37b3fb890
[Wed Apr 19 11:18:33 2023] </TASK>
[Wed Apr 19 11:18:33 2023] ---[ end trace 0000000000000000 ]---
Full dmesg log from kernel 6.1.0-7-amd64 #1 (closed) SMP PREEMPT_DYNAMIC Debian 6.1.20-2 amdgpu_dmesg_617.txt