amdgpu cause stack trace after restore from suspend to RAM

Bug #1980016 reported by Tôphe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-signed-hwe-5.13 (Ubuntu)
New
Undecided
Unassigned

Bug Description

After restore from suspend to RAM, I usually get the following stack trace :

[ 86.752442] ------------[ cut here ]------------
[ 86.752448] WARNING: CPU: 10 PID: 936 at /var/lib/dkms/amdgpu/5.13.20.22.10-1401700/build/amd/amdgpu/../display/dc/core/dc_link_dp.c:2681 dc_link_dp_perform_link_training+0x105/0xc80 [amdgpu]
[ 86.752781] Modules linked in: ccm rfcomm cmac algif_hash algif_skcipher af_alg bnep nls_iso8859_1 intel_rapl_msr intel_rapl_common joydev edac_mce_amd snd_hda_codec_conexant kvm_amd snd_hda_codec_generic snd_hda_codec_hdmi rtw88_8822ce
 rtw88_8822c snd_hda_intel kvm snd_intel_dspcfg uvcvideo snd_intel_sdw_acpi snd_hda_codec videobuf2_vmalloc rtw88_pci snd_acp3x_rn videobuf2_memops snd_soc_dmic snd_hda_core snd_acp3x_pdm_dma videobuf2_v4l2 crct10dif_pclmul ghash_clmulni_i
ntel rtw88_core snd_hwdep videobuf2_common snd_soc_core aesni_intel btusb snd_seq_midi btrtl snd_seq_midi_event crypto_simd btbcm snd_compress btintel ac97_bus snd_rawmidi mac80211 snd_pcm_dmaengine bluetooth snd_seq cryptd snd_pcm videode
v input_leds huawei_wmi snd_seq_device ecdh_generic ledtrig_audio rapl serio_raw sparse_keymap hid_multitouch wmi_bmof efi_pstore mc ecc snd_timer cfg80211 snd snd_rn_pci_acp3x ccp snd_pci_acp3x soundcore libarc4 mac_hid cm32181 industrial
io amd_pmc sch_fq_codel ipmi_devintf
[ 86.752852] ipmi_msghandler msr parport_pc ppdev lp parport ip_tables x_tables autofs4 ib_uverbs ib_core amdgpu(OE) amddrm_ttm_helper(OE) amdttm(OE) amdkcl(OE) iommu_v2 amd_sched(OE) drm_kms_helper syscopyarea sysfillrect sysimgblt fb_
sys_fops cec rc_core hid_generic crc32_pclmul drm nvme i2c_hid_acpi xhci_pci ahci i2c_hid libahci i2c_piix4 nvme_core xhci_pci_renesas i2c_algo_bit wmi video hid
[ 86.752895] CPU: 10 PID: 936 Comm: Xorg Tainted: G OE 5.13.0-51-generic #58~20.04.1-Ubuntu
[ 86.752901] Hardware name: HUAWEI CREM-WXX9/CREM-WXX9-PCB-B1, BIOS 2.20 12/20/2021
[ 86.752903] RIP: 0010:dc_link_dp_perform_link_training+0x105/0xc80 [amdgpu]
[ 86.753185] Code: b6 80 30 01 00 00 88 85 a8 fe ff ff 84 c0 0f 84 97 00 00 00 41 83 f6 01 83 fb 01 0f 84 c7 06 00 00 83 fb 02 0f 84 00 07 00 00 <0f> 0b c6 85 9c fe ff ff 01 41 be 01 00 00 00 45 31 ed 80 bd a8 fe
[ 86.753189] RSP: 0018:ffffbad1c3173420 EFLAGS: 00010293
[ 86.753193] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000108
[ 86.753195] RDX: ffffbad1c31733fc RSI: ffffffffc0306b00 RDI: 0000000000000100
[ 86.753197] RBP: ffffbad1c31735b0 R08: ffffffffc03092f4 R09: 0000000000000001
[ 86.753199] R10: 0000000000000001 R11: 0000000000000000 R12: ffffbad1c3173470
[ 86.753201] R13: ffff97a106020c50 R14: 0000000000000000 R15: ffff97a10369a400
[ 86.753203] FS: 00007f98df6aca40(0000) GS:ffff97a40df00000(0000) knlGS:0000000000000000
[ 86.753206] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 86.753208] CR2: 0000556a9f7c53c0 CR3: 00000001011ba000 CR4: 0000000000750ee0
[ 86.753210] PKRU: 55555554
[ 86.753212] Call Trace:
[ 86.753214] <TASK>
[ 86.753220] ? dm_dp_aux_transfer+0x91/0x110 [amdgpu]
[ 86.753526] perform_link_training_with_retries+0x135/0x260 [amdgpu]
[ 86.753801] ? perform_link_training_with_retries+0x135/0x260 [amdgpu]
[ 86.754083] enable_link_dp+0x16b/0x280 [amdgpu]
[ 86.754354] core_link_enable_stream+0x77f/0x950 [amdgpu]
[ 86.754611] dce110_apply_ctx_to_hw+0x713/0x790 [amdgpu]
[ 86.754869] ? amdgpu_cgs_read_register+0x14/0x20 [amdgpu]
[ 86.755124] ? dcn10_verify_allow_pstate_change_high+0x22/0x370 [amdgpu]
[ 86.755422] ? dcn10_wait_for_mpcc_disconnect+0x117/0x130 [amdgpu]
[ 86.755698] dc_commit_state+0x33e/0xad0 [amdgpu]
[ 86.756069] amdgpu_dm_atomic_commit_tail+0x56b/0x24c0 [amdgpu]
[ 86.756395] ? resource_build_scaling_params+0x7ca/0xcc0 [amdgpu]
[ 86.756707] ? dcn21_validate_bandwidth_fp+0xfe/0xa40 [amdgpu]
[ 86.757018] ? kfree+0xd8/0x2a0
[ 86.757028] ? dcn21_validate_bandwidth_fp+0xfe/0xa40 [amdgpu]
[ 86.757340] ? fill_plane_buffer_attributes+0x44f/0x560 [amdgpu]
[ 86.757627] ? dm_plane_helper_prepare_fb+0x1ba/0x270 [amdgpu]
[ 86.757891] ? __cond_resched+0x19/0x30
[ 86.757899] ? __wait_for_common+0x3d/0x160
[ 86.757902] ? __cond_resched+0x19/0x30
[ 86.757906] ? wait_for_completion_timeout+0x1d/0x20
[ 86.757911] commit_tail+0x99/0x130 [drm_kms_helper]
[ 86.757937] drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[ 86.757955] amdgpu_dm_atomic_commit+0x11/0x20 [amdgpu]
[ 86.758219] drm_atomic_commit+0x4a/0x50 [drm]
[ 86.758260] drm_atomic_helper_set_config+0x7c/0xc0 [drm_kms_helper]
[ 86.758281] drm_mode_setcrtc+0x1fb/0x7b0 [drm]
[ 86.758316] ? drm_mode_getcrtc+0x190/0x190 [drm]
[ 86.758344] drm_ioctl_kernel+0xae/0xf0 [drm]
[ 86.758376] drm_ioctl+0x257/0x410 [drm]
[ 86.758404] ? drm_mode_getcrtc+0x190/0x190 [drm]
[ 86.758434] amdgpu_drm_ioctl+0x4e/0x80 [amdgpu]
[ 86.758625] __x64_sys_ioctl+0x91/0xc0
[ 86.758633] do_syscall_64+0x61/0xb0
[ 86.758638] ? syscall_exit_to_user_mode+0x27/0x50
[ 86.758642] ? do_syscall_64+0x6e/0xb0
[ 86.758645] ? do_syscall_64+0x6e/0xb0
[ 86.758647] ? do_syscall_64+0x6e/0xb0
[ 86.758649] ? asm_sysvec_apic_timer_interrupt+0xa/0x20
[ 86.758655] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 86.758660] RIP: 0033:0x7f98dfa083ab
[ 86.758666] Code: 0f 1e fa 48 8b 05 e5 7a 0d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 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 b5 7a 0d 00 f7 d8 64 89 01 48
[ 86.758669] RSP: 002b:00007ffc89948b48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 86.758674] RAX: ffffffffffffffda RBX: 00007ffc89948b80 RCX: 00007f98dfa083ab
[ 86.758676] RDX: 00007ffc89948b80 RSI: 00000000c06864a2 RDI: 000000000000000d
[ 86.758677] RBP: 00000000c06864a2 R08: 00000000000005a0 R09: 000055cae78e4870
[ 86.758679] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 86.758681] R13: 000000000000000d R14: 000055cae78ddab0 R15: 00000000000005a0
[ 86.758685] </TASK>
[ 86.758687] ---[ end trace 2486e5f5608015ed ]---

The resulting experience is no graphical display and no terminal display anymore on the integrated display of the laptop (whereas external HDMI display are still available)

The only workaround that I'm aware of is reboot.

I filled the bug through `ubuntu-bug linux` so hopefully you get all additional information you need. If not, feel free to ask.

Thank you for your help,
Best regards,
C.R.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-5.13.0-51-generic 5.13.0-51.58~20.04.1
ProcVersionSignature: Ubuntu 5.13.0-51.58~20.04.1-generic 5.13.19
Uname: Linux 5.13.0-51-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.24
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Mon Jun 27 22:27:22 2022
InstallationDate: Installed on 2022-06-13 (13 days ago)
InstallationMedia: Xubuntu 20.04.4 LTS "Focal Fossa" - Release amd64 (20220223)
SourcePackage: linux-signed-hwe-5.13
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Tôphe (christophe-regouby) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.