[Ryzen 3400G] [drm] REG_WAIT timeout 10us * 200000 tries - rv1_vbios_smu_send_msg_with_param line:82
When running a graphics intensive game, we see a drop in frame rate and the system is unable to recover until it is rebooted.
I attempted to migate this using the following parameters, but this still occurs with our without the below parameters.
$ cat /etc/modprobe.d/amdgpu.conf
options amdgpu dc=1
options amdgpu dpm=1
options amdgpu noretry=0
options amdgpu ppfeaturemask=0xffff3fff
It would be great to have some guidance on how to prevent this scenario.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.3.0-46-generic root=UUID=afcf1342-4e12-4e6d-9f10-e19468a9e141 ro idle=nomwait
/var/log/syslog
Apr 29 00:57:41 desktop kernel: [ 703.568115] [drm] REG_WAIT timeout 10us * 200000 tries - rv1_vbios_smu_send_msg_with_param line:82
Apr 29 00:57:41 desktop kernel: [ 703.568117] ------------[ cut here ]------------
Apr 29 00:57:41 desktop kernel: [ 703.568244] WARNING: CPU: 1 PID: 1044 at /build/linux-hwe-3vURZB/linux-hwe-5.3.0/drivers/gpu/drm/amd/amdgpu/../display/dc/
dc_helper.c:332 generic_reg_wait+0x139/0x140 [amdgpu]
Apr 29 00:57:41 desktop kernel: [ 703.568245] Modules linked in: ccm rfcomm cmac bnep nls_iso8859_1 uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4
l2 videobuf2_common videodev snd_usb_audio amdgpu snd_usbmidi_lib iwlmvm mc mac80211 libarc4 joydev amd_iommu_v2 input_leds hid_multitouch gpu_sched ttm drm_k
ms_helper drm i2c_algo_bit fb_sys_fops syscopyarea sysfillrect iwlwifi snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_in
tel snd_intel_nhlt snd_hda_codec snd_hda_core sysimgblt snd_hwdep edac_mce_amd kvm_amd ccp kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd
_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi btusb btrtl snd_seq btbcm btintel aesni_intel bluetooth snd_seq_device aes_x86_64 snd_timer crypto_simd crypt
d glue_helper wmi_bmof k10temp snd cfg80211 soundcore ecdh_generic ecc mac_hid sch_fq_codel nct6775 hwmon_vid usbserial parport_pc ppdev lp parport ip_tables
x_tables autofs4 hid_logitech_hidpp hid_logitech_dj hid_generic usbhid hid r8169 i2c_piix4
Apr 29 00:57:41 desktop kernel: [ 703.568294] realtek ahci libahci wmi video gpio_amdpt gpio_generic
Apr 29 00:57:41 desktop kernel: [ 703.568302] CPU: 1 PID: 1044 Comm: Xorg Not tainted 5.3.0-46-generic #38~18.04.1-Ubuntu
Apr 29 00:57:41 desktop kernel: [ 703.568303] Hardware name: Default string Default string/Default string, BIOS 5.14 11/25/2019
Apr 29 00:57:41 desktop kernel: [ 703.568401] RIP: 0010:generic_reg_wait+0x139/0x140 [amdgpu]
Apr 29 00:57:41 desktop kernel: [ 703.568405] Code: 20 48 8b 4d 18 44 89 e6 8b 55 10 48 c7 c7 50 f2 e3 c0 e8 ad d0 99 c9 41 83 7d 20 01 74 89 48 c7 c7 98 f1
e3 c0 e8 9a d0 99 c9 <0f> 0b e9 76 ff ff ff 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55
Apr 29 00:57:41 desktop kernel: [ 703.568407] RSP: 0018:ffffb50bc13a36e8 EFLAGS: 00010282
Apr 29 00:57:41 desktop kernel: [ 703.568409] RAX: 0000000000000024 RBX: 0000000000030d41 RCX: 0000000000000006
Apr 29 00:57:41 desktop kernel: [ 703.568411] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffff96f510657440
Apr 29 00:57:41 desktop kernel: [ 703.568412] RBP: ffffb50bc13a3720 R08: 0000000000000460 R09: 0000000000000004
Apr 29 00:57:41 desktop kernel: [ 703.568413] R10: 0000000000000002 R11: 0000000000000001 R12: 000000000000000a
Apr 29 00:57:41 desktop kernel: [ 703.568415] R13: ffff96f5040d7280 R14: 00000000ffffffff R15: 0000000000000001
Apr 29 00:57:41 desktop kernel: [ 703.568417] FS: 00007f1ec6cb1a80(0000) GS:ffff96f510640000(0000) knlGS:0000000000000000
Apr 29 00:57:41 desktop kernel: [ 703.568418] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Apr 29 00:57:41 desktop kernel: [ 703.568420] CR2: 000055951efe2ff8 CR3: 0000000409f20000 CR4: 00000000003406e0
Apr 29 00:57:41 desktop kernel: [ 703.568421] Call Trace:
Apr 29 00:57:41 desktop kernel: [ 703.568537] rv1_vbios_smu_send_msg_with_param+0xac/0x1c0 [amdgpu]
Apr 29 00:57:41 desktop kernel: [ 703.568648] rv1_vbios_smu_set_dispclk+0x42/0xd0 [amdgpu]
Apr 29 00:57:41 desktop kernel: [ 703.568756] rv1_update_clocks+0x233/0x490 [amdgpu]
Apr 29 00:57:41 desktop kernel: [ 703.568861] dcn10_prepare_bandwidth+0x63/0x140 [amdgpu]
Apr 29 00:57:41 desktop kernel: [ 703.568955] dc_commit_updates_for_stream+0xd2c/0x1380 [amdgpu]
Apr 29 00:57:41 desktop kernel: [ 703.568976] ? drm_vblank_enable+0x4b/0x140 [drm]
Apr 29 00:57:41 desktop kernel: [ 703.569082] amdgpu_dm_atomic_commit_tail+0x109a/0x1e20 [amdgpu]
Apr 29 00:57:41 desktop kernel: [ 703.569186] ? fill_plane_buffer_attributes+0x24e/0x420 [amdgpu]
Apr 29 00:57:41 desktop kernel: [ 703.569201] commit_tail+0x42/0x70 [drm_kms_helper]
Apr 29 00:57:41 desktop kernel: [ 703.569211] ? commit_tail+0x42/0x70 [drm_kms_helper]
Apr 29 00:57:41 desktop kernel: [ 703.569222] drm_atomic_helper_commit+0x10c/0x120 [drm_kms_helper]
Apr 29 00:57:41 desktop kernel: [ 703.569325] amdgpu_dm_atomic_commit+0xac/0xf0 [amdgpu]
Apr 29 00:57:41 desktop kernel: [ 703.569343] ? drm_atomic_set_property+0x81/0x940 [drm]
Apr 29 00:57:41 desktop kernel: [ 703.569366] drm_atomic_commit+0x4a/0x50 [drm]
Apr 29 00:57:41 desktop kernel: [ 703.569387] drm_mode_obj_set_property_ioctl+0x245/0x2b0 [drm]
Apr 29 00:57:41 desktop kernel: [ 703.569407] ? drm_mode_obj_find_prop_id+0x40/0x40 [drm]
Apr 29 00:57:41 desktop kernel: [ 703.569423] drm_ioctl_kernel+0xb0/0x100 [drm]
Apr 29 00:57:41 desktop kernel: [ 703.569439] drm_ioctl+0x389/0x450 [drm]
Apr 29 00:57:41 desktop kernel: [ 703.569459] ? drm_mode_obj_find_prop_id+0x40/0x40 [drm]
Apr 29 00:57:41 desktop kernel: [ 703.569464] ? do_iter_write+0xe5/0x1a0
Apr 29 00:57:41 desktop kernel: [ 703.569534] amdgpu_drm_ioctl+0x4f/0x80 [amdgpu]
Apr 29 00:57:41 desktop kernel: [ 703.569537] do_vfs_ioctl+0xa9/0x640
Apr 29 00:57:41 desktop kernel: [ 703.569540] ? fput+0x13/0x20
Apr 29 00:57:41 desktop kernel: [ 703.569544] ? __sys_recvmsg+0x8f/0xa0
Apr 29 00:57:41 desktop kernel: [ 703.569546] ksys_ioctl+0x75/0x80
Apr 29 00:57:41 desktop kernel: [ 703.569548] __x64_sys_ioctl+0x1a/0x20
Apr 29 00:57:41 desktop kernel: [ 703.569552] do_syscall_64+0x5a/0x130
Apr 29 00:57:41 desktop kernel: [ 703.569557] entry_SYSCALL_64_after_hwframe+0x44/0xa9
Apr 29 00:57:41 desktop kernel: [ 703.569559] RIP: 0033:0x7f1ec3e8e5d7
Apr 29 00:57:41 desktop kernel: [ 703.569562] Code: b3 66 90 48 8b 05 b1 48 2d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 48 2d 00 f7 d8 64 89 01 48
Apr 29 00:57:41 desktop kernel: [ 703.569563] RSP: 002b:00007fff5b9e0128 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Apr 29 00:57:41 desktop kernel: [ 703.569566] RAX: ffffffffffffffda RBX: 00005613e4c3ff50 RCX: 00007f1ec3e8e5d7
Apr 29 00:57:41 desktop kernel: [ 703.569567] RDX: 00007fff5b9e0160 RSI: 00000000c01864ba RDI: 000000000000000c
Apr 29 00:57:41 desktop kernel: [ 703.569568] RBP: 00007fff5b9e0160 R08: 000000000000005a R09: 00005613e4c40810
Apr 29 00:57:41 desktop kernel: [ 703.569569] R10: 00005613e5826904 R11: 0000000000000246 R12: 00000000c01864ba
Apr 29 00:57:41 desktop kernel: [ 703.569570] R13: 000000000000000c R14: 0000000000000fff R15: 0000000000000003
Apr 29 00:57:41 desktop kernel: [ 703.569573] ---[ end trace 5ee2f0c90974ad95 ]---
Apr 29 00:57:46 desktop kernel: [ 708.571161] [drm:atom_op_jump [amdgpu]] *ERROR* atombios stuck in loop for more than 5secs aborting
Apr 29 00:57:46 desktop kernel: [ 708.571239] [drm:amdgpu_atom_execute_table_locked [amdgpu]] *ERROR* atombios stuck executing A4C6 (len 84, WS 0, PS 0) @ 0xA4FC
Apr 29 00:57:46 desktop kernel: [ 708.571314] [drm:amdgpu_atom_execute_table_locked [amdgpu]] *ERROR* atombios stuck executing D028 (len 525, WS 0, PS 0) @ 0xD099
glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: X.Org (0x1002)
Device: AMD RAVEN (DRM 3.33.0, 5.3.0-46-generic, LLVM 9.0.0) (0x15d8)
Version: 19.2.8
Accelerated: yes
Video memory: 2048MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.5
Max compat profile version: 4.5
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
VBO free memory - total: 1017 MB, largest block: 1017 MB
VBO free aux. memory - total: 3032 MB, largest block: 3032 MB
Texture free memory - total: 1017 MB, largest block: 1017 MB
Texture free aux. memory - total: 3032 MB, largest block: 3032 MB
Renderbuffer free memory - total: 1017 MB, largest block: 1017 MB
Renderbuffer free aux. memory - total: 3032 MB, largest block: 3032 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 2048 MB
Total available memory: 5120 MB
Currently available dedicated video memory: 1017 MB
OpenGL vendor string: X.Org
OpenGL renderer string: AMD RAVEN (DRM 3.33.0, 5.3.0-46-generic, LLVM 9.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.2.8
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.5 (Compatibility Profile) Mesa 19.2.8
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 19.2.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
$ cat /usr/share/X11/xorg.conf.d/10-amdgpu.conf
Section "OutputClass"
Identifier "AMDgpu"
MatchDriver "amdgpu"
Driver "amdgpu"
$
$ dmesg |grep 'ATOM BIOS'
[ 3.253149] ATOM BIOS: 113-PICASSO-114