After S3 resume, kernel: [drm] psp command failed and response status is (-65529) at 27th time of S3. 28th time of S3 freeze the system.
Submitted by Kai-Heng Feng
Assigned to Default DRI bug account
Link to original bug (#110886)
Description
System: HP ProBook 645 G4
APU: Ryzen 3 PRO 2300U
After system S3 resume, the system may freeze:
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] ERROR [CRTC:57:crtc-0] flip_done timed out
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] ERROR [CRTC:57:crtc-0] flip_done timed out
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] ERROR [CONNECTOR:65:eDP-1] flip_done timed out
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] ERROR [PLANE:50:plane-3] flip_done timed out
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: WARNING: CPU: 1 PID: 1058 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5580 amdgpu_dm_atomic_commit_tail+0x19f4/0x1a80 [amdgpu]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: Modules linked in: ccm nls_iso8859_1 amdgpu snd_hda_codec_conexant arc4 iwlmvm snd_hda_codec_generic amd_iommu_v2 ledtrig_audio snd_hda_codec_hdmi gpu_sched kvm_amd snd_hda_intel i2c_
algo_bit snd_hda_codec ccp ttm snd_hwdep kvm snd_hda_core drm_kms_helper mac80211 snd_pcm irqbypass syscopyarea snd_seq sysfillrect iwlwifi snd_timer sysimgblt snd_seq_device snd fb_sys_fops drm crct10dif_pclmul crc32_pclmul so
undcore cfg80211 ghash_clmulni_intel rtsx_pci_ms aesni_intel hp_wmi sparse_keymap k10temp wmi_bmof memstick aes_x86_64 ucsi_acpi glue_helper hp_accel typec_ucsi typec crypto_simd cryptd video hp_wireless wmi joydev input_leds l
is3lv02d mac_hid input_polldev serio_raw sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 rtsx_pci_sdmmc psmouse i2c_piix4 ahci rtsx_pci libahci r8169 realtek i2c_hid hid
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: CPU: 1 PID: 1058 Comm: kworker/u32:6 Not tainted 5.2.0-rc1+ #2
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: Hardware name: HP HP ProBook 645 G4/8401, BIOS Q82 Ver. 01.07.01 05/06/2019
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: Workqueue: events_unbound async_run_entry_fn
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: RIP: 0010:amdgpu_dm_atomic_commit_tail+0x19f4/0x1a80 [amdgpu]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: Code: ff ff 8b b0 90 04 00 00 48 c7 c7 61 bc bf c0 e8 c2 0a b5 ff 0f b6 85 06 fe ff ff 88 85 08 fe ff ff 49 8b 45 08 e9 f9 f1 ff ff <0f>
0b e9 1d f3 ff ff 0f 0b 48 8b 06 0f b6 8e e0 0
1 00 00 bf 04 00
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: RSP: 0018:ffffb1e4c243b8e0 EFLAGS: 00010002
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: RAX: 0000000000000002 RBX: 0000000000000202 RCX: ffff9a8fd18b6970
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: RDX: 0000000000000001 RSI: 0000000000000202 RDI: ffff9a8fd02a5958
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: RBP: ffffb1e4c243bb20 R08: ffffb1e4c243b7f4 R09: 0000000000000000
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: R10: 0000000000000000 R11: ffffb1e4c243b838 R12: ffff9a8fe2ba0400
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: R13: ffff9a8fe1495f80 R14: ffff9a8fd18b6800 R15: ffff9a8fd2280000
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: FS: 0000000000000000(0000) GS:ffff9a8fe7c40000(0000) knlGS:0000000000000000
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: CR2: 0000000000000000 CR3: 000000020f434000 CR4: 00000000003406e0
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: Call Trace:
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: commit_tail+0x42/0x70 [drm_kms_helper]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: ? commit_tail+0x42/0x70 [drm_kms_helper]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: drm_atomic_helper_commit+0x113/0x120 [drm_kms_helper]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: amdgpu_dm_atomic_commit+0xb1/0xf0 [amdgpu]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: drm_atomic_commit+0x4a/0x50 [drm]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: restore_fbdev_mode_atomic+0x1bf/0x1d0 [drm_kms_helper]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: restore_fbdev_mode+0x4e/0x160 [drm_kms_helper]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: ? _cond_resched+0x19/0x30
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: drm_fb_helper_restore_fbdev_mode_unlocked+0x4e/0xa0 [drm_kms_helper]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: drm_fb_helper_set_par+0x2d/0x50 [drm_kms_helper]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: drm_fb_helper_hotplug_event.part.41+0x97/0xc0 [drm_kms_helper]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: drm_fb_helper_output_poll_changed+0x23/0x30 [drm_kms_helper]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: drm_kms_helper_hotplug_event+0x2a/0x40 [drm_kms_helper]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: amdgpu_device_resume+0x319/0x3a0 [amdgpu]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: amdgpu_pmops_resume+0x31/0x60 [amdgpu]
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: pci_pm_resume+0x6d/0xa0
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: ? pci_pm_suspend_late+0x40/0x40
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: dpm_run_callback+0x5b/0x150
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: device_resume+0xb8/0x200
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: async_resume+0x1d/0x30
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: async_run_entry_fn+0x3c/0x150
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: process_one_work+0x20f/0x410
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: worker_thread+0x34/0x400
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: kthread+0x120/0x140
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: ? process_one_work+0x410/0x410
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: ? __kthread_parkme+0x70/0x70
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: ret_from_fork+0x22/0x40
Jun 11 01:40:21 u-HP-ProBook-645-G4 kernel: ---[ end trace 55daf5798b2f5f1a ]---
Test conducted on latest amdgpu/amd-staging-drm-next, it's commit 40cc64619a2580b26f924bcabdefd555e7831a14 as of now.