You are not logged in.

#1 2019-07-15 20:04:17

JohnDeVries
Member
Registered: 2019-07-15
Posts: 12

Laptop fails to resume from inside Plasma X session

After updating to linux 5.2 my laptop is unable to resume from suspend and freezes. The LTS kernel works fine, while both Arch and Zen kernels fail to suspend.
This only happens if I suspend from inside a Plasma session, or while such a session is active. If I do so from SDDM or while only logged in on tty suspend works. I tested with TLP enabled and also disabled, no difference.

I have an HP EliteBook 745 G5, with a AMD Ryzen 7 PRO 2700U.

My kernel log after suspend is reached by systemd looks like this

Jul 15 21:28:45 archer kernel: PM: suspend entry (deep)
Jul 15 21:29:40 archer kernel: Filesystems sync: 0.005 seconds
Jul 15 21:29:40 archer kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
Jul 15 21:29:40 archer kernel: OOM killer disabled.
Jul 15 21:29:40 archer kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Jul 15 21:29:40 archer kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Jul 15 21:29:40 archer kernel: wlp2s0: deauthenticating from 4c:1b:86:60:ca:bb by local choice (Reason: 3=DEAUTH_LEAVING)
Jul 15 21:29:40 archer kernel: WARNING: CPU: 4 PID: 2081 at kernel/irq/chip.c:210 irq_startup+0xdf/0xf0
Jul 15 21:29:40 archer kernel: Modules linked in: ccm bnep btusb btrtl btbcm btintel bluetooth ecdh_generic ecc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media amdgpu edac_mce_amd kvm_amd ccp arc4 kvm joydev iwlmvm irqbypass mousedev msr mac80211 crct10dif_pclmul crc32_pclmul amd_iommu_v2 snd_hda_codec_conexant gpu_sched i2c_algo_bit snd_hda_codec_generic ghash_clmulni_intel ttm ledtrig_audio snd_hda_codec_hdmi drm_kms_helper hid_multitouch hid_generic snd_hda_intel hp_wmi iwlwifi drm sparse_keymap wmi_bmof snd_hda_codec snd_hda_core snd_hwdep agpgart aesni_intel snd_pcm aes_x86_64 crypto_simd cryptd cfg80211 r8169 glue_helper snd_timer syscopyarea realtek snd input_leds i2c_hid sysfillrect sp5100_tco rfkill soundcore sysimgblt fb_sys_fops ipmi_devintf psmouse libphy k10temp i2c_piix4 pcspkr tpm_crb hid ipmi_msghandler ucsi_acpi typec_ucsi typec tpm_tis pcc_cpufreq wmi tpm_tis_core tpm battery hp_wireless rng_core i2c_amd_mp2_plat ac pinctrl_amd i2c_amd_mp2_pci
Jul 15 21:29:40 archer kernel:  evdev acpi_cpufreq mac_hid nls_iso8859_1 nls_cp437 vfat fat fuse sg crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd ehci_pci ehci_hcd i8042 serio
Jul 15 21:29:40 archer kernel: CPU: 4 PID: 2081 Comm: kworker/u32:8 Not tainted 5.2.0-zen1-1-zen #1
Jul 15 21:29:40 archer kernel: Hardware name: HP HP EliteBook 745 G5/83D5, BIOS Q81 Ver. 01.07.00 04/15/2019
Jul 15 21:29:40 archer kernel: Workqueue: events_unbound async_run_entry_fn
Jul 15 21:29:40 archer kernel: RIP: 0010:irq_startup+0xdf/0xf0
Jul 15 21:29:40 archer kernel: Code: f6 4c 89 e7 e8 12 50 00 00 85 c0 75 21 4c 89 e7 31 d2 4c 89 ee e8 51 c6 ff ff 48 89 ef e8 b9 fe ff ff 41 89 c4 e9 53 ff ff ff <0f> 0b eb b6 0f 0b eb b2 66 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00
Jul 15 21:29:40 archer kernel: RSP: 0018:fffface2c9dfbc48 EFLAGS: 00010002
Jul 15 21:29:40 archer kernel: RAX: 0000000000000140 RBX: 0000000000000001 RCX: 0000000000000140
Jul 15 21:29:40 archer kernel: RDX: 0000000000000000 RSI: ffffffff93d41e00 RDI: ffffa0069d5dda18
Jul 15 21:29:40 archer kernel: RBP: ffffa0069d5dda00 R08: 0000000000000000 R09: 0000000000000004
Jul 15 21:29:40 archer kernel: R10: ffffa0069fd1ddc0 R11: ffffffffffe92452 R12: 0000000000000001
Jul 15 21:29:40 archer kernel: R13: ffffa0069d5dda18 R14: 0000000000000000 R15: ffffa0069d6bc000
Jul 15 21:29:40 archer kernel: FS:  0000000000000000(0000) GS:ffffa0069fd00000(0000) knlGS:0000000000000000
Jul 15 21:29:40 archer kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 15 21:29:40 archer kernel: CR2: 0000562c840ca078 CR3: 00000003cd984000 CR4: 00000000003406e0
Jul 15 21:29:40 archer kernel: Call Trace:
Jul 15 21:29:40 archer kernel:  enable_irq+0xc4/0xe0
Jul 15 21:29:40 archer kernel:  nvme_poll_irqdisable.constprop.0+0x1fc/0x290
Jul 15 21:29:40 archer kernel:  nvme_disable_io_queues+0x343/0x370
Jul 15 21:29:40 archer kernel:  nvme_dev_disable+0x1e5/0x290
Jul 15 21:29:40 archer kernel:  ? pci_pm_poweroff+0x110/0x110
Jul 15 21:29:40 archer kernel:  nvme_suspend+0x13/0x20
Jul 15 21:29:40 archer kernel:  pci_pm_suspend+0xbe/0x160
Jul 15 21:29:40 archer kernel:  ? pci_pm_poweroff+0x110/0x110
Jul 15 21:29:40 archer kernel:  dpm_run_callback+0x4e/0x170
Jul 15 21:29:40 archer kernel:  __device_suspend+0x231/0x890
Jul 15 21:29:40 archer kernel:  async_suspend+0x1b/0x90
Jul 15 21:29:40 archer kernel:  async_run_entry_fn+0x37/0x140
Jul 15 21:29:40 archer kernel:  process_one_work+0x1e2/0x3f0
Jul 15 21:29:40 archer kernel:  worker_thread+0x5d/0x490
Jul 15 21:29:40 archer kernel:  kthread+0x131/0x170
Jul 15 21:29:40 archer kernel:  ? rescuer_thread+0x4c0/0x4c0
Jul 15 21:29:40 archer kernel:  ? kthread_park+0x90/0x90
Jul 15 21:29:40 archer kernel:  ret_from_fork+0x22/0x40
Jul 15 21:29:40 archer kernel: ---[ end trace 6241658fa61d84f2 ]---
Jul 15 21:29:40 archer kernel: kfd2kgd: cp queue preemption time out.
Jul 15 21:29:40 archer kernel: ACPI: EC: interrupt blocked
Jul 15 21:29:40 archer kernel: ACPI: Preparing to enter system sleep state S3
Jul 15 21:29:40 archer kernel: ACPI: EC: event blocked
Jul 15 21:29:40 archer kernel: ACPI: EC: EC stopped
Jul 15 21:29:40 archer kernel: PM: Saving platform NVS memory
Jul 15 21:29:40 archer kernel: Disabling non-boot CPUs ...
Jul 15 21:29:40 archer kernel: smpboot: CPU 1 is now offline
Jul 15 21:29:40 archer kernel: smpboot: CPU 2 is now offline
Jul 15 21:29:40 archer kernel: smpboot: CPU 3 is now offline
Jul 15 21:29:40 archer kernel: smpboot: CPU 4 is now offline
Jul 15 21:29:40 archer kernel: smpboot: CPU 5 is now offline
Jul 15 21:29:40 archer kernel: smpboot: CPU 6 is now offline
Jul 15 21:29:40 archer kernel: smpboot: CPU 7 is now offline
Jul 15 21:29:40 archer kernel: ACPI: Low-level resume complete
Jul 15 21:29:40 archer kernel: ACPI: EC: EC started
Jul 15 21:29:40 archer kernel: PM: Restoring platform NVS memory
Jul 15 21:29:40 archer kernel: Enabling non-boot CPUs ...
Jul 15 21:29:40 archer kernel: x86: Booting SMP configuration:
Jul 15 21:29:40 archer kernel: smpboot: Booting Node 0 Processor 1 APIC 0x1
Jul 15 21:29:40 archer kernel: microcode: CPU1: patch_level=0x08101014
Jul 15 21:29:40 archer kernel: CPU1 is up
Jul 15 21:29:40 archer kernel: smpboot: Booting Node 0 Processor 2 APIC 0x2
Jul 15 21:29:40 archer kernel: microcode: CPU2: patch_level=0x08101014
Jul 15 21:29:40 archer kernel: CPU2 is up
Jul 15 21:29:40 archer kernel: smpboot: Booting Node 0 Processor 3 APIC 0x3
Jul 15 21:29:40 archer kernel: microcode: CPU3: patch_level=0x08101014
Jul 15 21:29:40 archer kernel: CPU3 is up
Jul 15 21:29:40 archer kernel: smpboot: Booting Node 0 Processor 4 APIC 0x4
Jul 15 21:29:40 archer kernel: microcode: CPU4: patch_level=0x08101014
Jul 15 21:29:40 archer kernel: CPU4 is up
Jul 15 21:29:40 archer kernel: smpboot: Booting Node 0 Processor 5 APIC 0x5
Jul 15 21:29:40 archer kernel: microcode: CPU5: patch_level=0x08101014
Jul 15 21:29:40 archer kernel: CPU5 is up
Jul 15 21:29:40 archer kernel: smpboot: Booting Node 0 Processor 6 APIC 0x6
Jul 15 21:29:40 archer kernel: microcode: CPU6: patch_level=0x08101014
Jul 15 21:29:40 archer kernel: CPU6 is up
Jul 15 21:29:40 archer kernel: smpboot: Booting Node 0 Processor 7 APIC 0x7
Jul 15 21:29:40 archer kernel: microcode: CPU7: patch_level=0x08101014
Jul 15 21:29:40 archer kernel: CPU7 is up
Jul 15 21:29:40 archer kernel: ACPI: Waking up from system sleep state S3
Jul 15 21:29:40 archer kernel: ACPI: EC: interrupt unblocked
Jul 15 21:29:40 archer kernel: ACPI: EC: event unblocked
Jul 15 21:29:40 archer kernel: usb usb1: root hub lost power or was reset
Jul 15 21:29:40 archer kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
Jul 15 21:29:40 archer kernel: [drm] PSP is resuming...
Jul 15 21:29:40 archer kernel: [drm] reserve 0x400000 from 0xf400c00000 for PSP TMR SIZE
Jul 15 21:29:40 archer kernel: [drm] psp command failed and response status is (-65529)
Jul 15 21:29:40 archer kernel: nvme nvme0: Shutdown timeout set to 8 seconds
Jul 15 21:29:40 archer kernel: nvme nvme0: 16/0/0 default/read/poll queues
Jul 15 21:29:40 archer kernel: amdgpu: [powerplay] dpm has been enabled
Jul 15 21:29:40 archer kernel: iwlwifi 0000:02:00.0: BIOS contains WGDS but no WRDS
Jul 15 21:29:40 archer kernel: [drm] VCN decode and encode initialized successfully(under SPG Mode).
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring gfx uses VM inv eng 0 on hub 0
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring sdma0 uses VM inv eng 0 on hub 1
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring vcn_dec uses VM inv eng 1 on hub 1
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring vcn_enc0 uses VM inv eng 4 on hub 1
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring vcn_enc1 uses VM inv eng 5 on hub 1
Jul 15 21:29:40 archer kernel: amdgpu 0000:04:00.0: ring vcn_jpeg uses VM inv eng 6 on hub 1
Jul 15 21:29:40 archer kernel: usb 4-2: reset high-speed USB device number 3 using xhci_hcd
Jul 15 21:29:40 archer kernel: ata2: SATA link down (SStatus 0 SControl 300)
Jul 15 21:29:40 archer kernel: ata1: SATA link down (SStatus 0 SControl 300)
Jul 15 21:29:40 archer kernel: usb 4-1: reset high-speed USB device number 2 using xhci_hcd
Jul 15 21:29:40 archer kernel: usb 4-1.1: reset full-speed USB device number 4 using xhci_hcd
Jul 15 21:29:40 archer kernel: usb 4-1.3: reset full-speed USB device number 5 using xhci_hcd
Jul 15 21:29:40 archer kernel: psmouse serio3: synaptics: queried max coordinates: x [..5658], y [..4736]
Jul 15 21:29:40 archer kernel: psmouse serio3: synaptics: queried min coordinates: x [1286..], y [1114..]
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Bootloader revision 0.0 build 26 week 38 2015
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Device revision is 16
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Secure boot is enabled
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: OTP lock is enabled
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: API lock is enabled
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Debug lock is disabled
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Minimum firmware build 1 week 10 2014
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Found device firmware: intel/ibt-12-16.sfi
Jul 15 21:29:40 archer kernel: Failed to send Message b.
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Waiting for firmware download to complete
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Firmware loaded in 1292386 usecs
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Waiting for device to boot
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Device booted in 14655 usecs
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-12-16.ddc
Jul 15 21:29:40 archer kernel: Bluetooth: hci0: Applying Intel DDC parameters completed
Jul 15 21:29:40 archer kernel: Failed to send Message 7.
Jul 15 21:29:40 archer kernel: ACPI Error: Aborting method \_SB.A012 due to previous error (AE_AML_LOOP_TIMEOUT) (20190509/psparse-529)
Jul 15 21:29:40 archer kernel: ACPI Error: Aborting method \_SB.A005 due to previous error (AE_AML_LOOP_TIMEOUT) (20190509/psparse-529)
Jul 15 21:29:40 archer kernel: acpi LNXPOWER:03: Turning OFF
Jul 15 21:29:40 archer kernel: ACPI Error: Aborting method \_SB.A020 due to previous error (AE_AML_LOOP_TIMEOUT) (20190509/psparse-529)
Jul 15 21:29:40 archer kernel: ACPI Error: Aborting method \_SB.ALIB due to previous error (AE_AML_LOOP_TIMEOUT) (20190509/psparse-529)
Jul 15 21:29:40 archer kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.EC0.ECPB due to previous error (AE_AML_LOOP_TIMEOUT) (20190509/psparse-529)
Jul 15 21:29:40 archer kernel: ACPI Error: Aborting method \_SB.AC._PSR due to previous error (AE_AML_LOOP_TIMEOUT) (20190509/psparse-529)
Jul 15 21:29:40 archer kernel: ACPI Error: AE_AML_LOOP_TIMEOUT, Error reading AC Adapter state (20190509/ac-115)
Jul 15 21:29:40 archer kernel: OOM killer enabled.
Jul 15 21:29:40 archer kernel: Restarting tasks ... 
Jul 15 21:29:40 archer kernel: [drm] pstate TEST_DEBUG_DATA: 0xBEF60000
Jul 15 21:29:40 archer kernel: done.
Jul 15 21:29:40 archer kernel: WARNING: CPU: 6 PID: 885 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
Jul 15 21:29:40 archer kernel: Modules linked in: ccm bnep btusb btrtl btbcm btintel bluetooth ecdh_generic ecc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media amdgpu edac_mce_amd kvm_amd ccp arc4 kvm joydev iwlmvm irqbypass mousedev msr mac80211 crct10dif_pclmul crc32_pclmul amd_iommu_v2 snd_hda_codec_conexant gpu_sched i2c_algo_bit snd_hda_codec_generic ghash_clmulni_intel ttm ledtrig_audio snd_hda_codec_hdmi drm_kms_helper hid_multitouch hid_generic snd_hda_intel hp_wmi iwlwifi drm sparse_keymap wmi_bmof snd_hda_codec snd_hda_core snd_hwdep agpgart aesni_intel snd_pcm aes_x86_64 crypto_simd cryptd cfg80211 r8169 glue_helper snd_timer syscopyarea realtek snd input_leds i2c_hid sysfillrect sp5100_tco rfkill soundcore sysimgblt fb_sys_fops ipmi_devintf psmouse libphy k10temp i2c_piix4 pcspkr tpm_crb hid ipmi_msghandler ucsi_acpi typec_ucsi typec tpm_tis pcc_cpufreq wmi tpm_tis_core tpm battery hp_wireless rng_core i2c_amd_mp2_plat ac pinctrl_amd i2c_amd_mp2_pci
Jul 15 21:29:40 archer kernel:  evdev acpi_cpufreq mac_hid nls_iso8859_1 nls_cp437 vfat fat fuse sg crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd ehci_pci ehci_hcd i8042 serio
Jul 15 21:29:40 archer kernel: CPU: 6 PID: 885 Comm: Xorg Tainted: G        W         5.2.0-zen1-1-zen #1
Jul 15 21:29:40 archer kernel: Hardware name: HP HP EliteBook 745 G5/83D5, BIOS Q81 Ver. 01.07.00 04/15/2019
Jul 15 21:29:40 archer kernel: RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
Jul 15 21:29:40 archer kernel: Code: 00 00 00 00 00 0f 1f 44 00 00 55 53 48 8b 87 80 02 00 00 48 89 fb 48 8b b8 b0 01 00 00 e8 b3 38 01 00 84 c0 0f 85 35 02 00 00 <0f> 0b 80 bb 93 01 00 00 00 0f 84 26 02 00 00 48 8b 8b 80 02 00 00
Jul 15 21:29:40 archer kernel: RSP: 0018:fffface2c21bb940 EFLAGS: 00010246
Jul 15 21:29:40 archer kernel: RAX: 0000000000000000 RBX: ffffa0068f2a2000 RCX: 0000000000000000
Jul 15 21:29:40 archer kernel: RDX: 0000000000000000 RSI: ffffa0069fd976e8 RDI: 00000000ffffffff
Jul 15 21:29:40 archer kernel: RBP: ffffa0068f2a2000 R08: 00000000000004fd R09: 0000000000000001
Jul 15 21:29:40 archer kernel: R10: 0000000000000001 R11: 0000000000004c4c R12: ffffa0068f2a2000
Jul 15 21:29:40 archer kernel: R13: ffffa00692248188 R14: 000000f400bc5000 R15: ffffa006982e4500
Jul 15 21:29:40 archer kernel: FS:  00007f086df74dc0(0000) GS:ffffa0069fd80000(0000) knlGS:0000000000000000
Jul 15 21:29:40 archer kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 15 21:29:40 archer kernel: CR2: 000055fe11d65da8 CR3: 0000000406ab8000 CR4: 00000000003406e0
Jul 15 21:29:40 archer kernel: Call Trace:
Jul 15 21:29:40 archer kernel:  dcn10_pipe_control_lock+0x79/0x90 [amdgpu]
Jul 15 21:29:40 archer kernel:  dc_stream_set_cursor_attributes+0x147/0x400 [amdgpu]
Jul 15 21:29:40 archer kernel:  handle_cursor_update.isra.0+0x1d8/0x370 [amdgpu]
Jul 15 21:29:40 archer kernel:  drm_atomic_helper_async_commit+0x63/0xe0 [drm_kms_helper]
Jul 15 21:29:40 archer kernel:  drm_atomic_helper_commit+0xf1/0x1d0 [drm_kms_helper]
Jul 15 21:29:40 archer kernel:  drm_atomic_helper_update_plane+0x12f/0x150 [drm_kms_helper]
Jul 15 21:29:40 archer kernel:  __setplane_atomic+0x175/0x250 [drm]
Jul 15 21:29:40 archer kernel:  drm_mode_cursor_universal+0x128/0x240 [drm]
Jul 15 21:29:40 archer kernel:  drm_mode_cursor_common+0xde/0x230 [drm]
Jul 15 21:29:40 archer kernel:  ? drm_mode_setplane+0x2b0/0x2b0 [drm]
Jul 15 21:29:40 archer kernel:  drm_mode_cursor_ioctl+0x4d/0x70 [drm]
Jul 15 21:29:40 archer kernel:  drm_ioctl_kernel+0xb8/0x100 [drm]
Jul 15 21:29:40 archer kernel:  drm_ioctl+0x253/0x3f0 [drm]
Jul 15 21:29:40 archer kernel:  ? drm_mode_setplane+0x2b0/0x2b0 [drm]
Jul 15 21:29:40 archer kernel:  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
Jul 15 21:29:40 archer kernel:  do_vfs_ioctl+0x43d/0x7a0
Jul 15 21:29:40 archer kernel:  ? syscall_trace_enter+0x1c8/0x2e0
Jul 15 21:29:40 archer kernel:  __x64_sys_ioctl+0x62/0x90
Jul 15 21:29:40 archer kernel:  do_syscall_64+0x5b/0x1b0
Jul 15 21:29:40 archer kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jul 15 21:29:40 archer kernel: RIP: 0033:0x7f086f39e21b
Jul 15 21:29:40 archer kernel: Code: 0f 1e fa 48 8b 05 75 8c 0c 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 45 8c 0c 00 f7 d8 64 89 01 48
Jul 15 21:29:40 archer kernel: RSP: 002b:00007fff9599e0f8 EFLAGS: 00003246 ORIG_RAX: 0000000000000010
Jul 15 21:29:40 archer kernel: RAX: ffffffffffffffda RBX: 00007fff9599e130 RCX: 00007f086f39e21b
Jul 15 21:29:40 archer kernel: RDX: 00007fff9599e130 RSI: 00000000c01c64a3 RDI: 000000000000000d
Jul 15 21:29:40 archer kernel: RBP: 00000000c01c64a3 R08: 0000000000000085 R09: 0000000000000001
Jul 15 21:29:40 archer kernel: R10: 0000000000000004 R11: 0000000000003246 R12: 000055fe14127830
Jul 15 21:29:40 archer kernel: R13: 000000000000000d R14: 0000000000000427 R15: 0000000000000427
Jul 15 21:29:40 archer kernel: ---[ end trace 6241658fa61d84f3 ]---
Jul 15 21:29:40 archer kernel: [drm] pstate TEST_DEBUG_DATA: 0x3EF60000
Jul 15 21:29:40 archer kernel: WARNING: CPU: 6 PID: 885 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
Jul 15 21:29:40 archer kernel: Modules linked in: ccm bnep btusb btrtl btbcm btintel bluetooth ecdh_generic ecc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media amdgpu edac_mce_amd kvm_amd ccp arc4 kvm joydev iwlmvm irqbypass mousedev msr mac80211 crct10dif_pclmul crc32_pclmul amd_iommu_v2 snd_hda_codec_conexant gpu_sched i2c_algo_bit snd_hda_codec_generic ghash_clmulni_intel ttm ledtrig_audio snd_hda_codec_hdmi drm_kms_helper hid_multitouch hid_generic snd_hda_intel hp_wmi iwlwifi drm sparse_keymap wmi_bmof snd_hda_codec snd_hda_core snd_hwdep agpgart aesni_intel snd_pcm aes_x86_64 crypto_simd cryptd cfg80211 r8169 glue_helper snd_timer syscopyarea realtek snd input_leds i2c_hid sysfillrect sp5100_tco rfkill soundcore sysimgblt fb_sys_fops ipmi_devintf psmouse libphy k10temp i2c_piix4 pcspkr tpm_crb hid ipmi_msghandler ucsi_acpi typec_ucsi typec tpm_tis pcc_cpufreq wmi tpm_tis_core tpm battery hp_wireless rng_core i2c_amd_mp2_plat ac pinctrl_amd i2c_amd_mp2_pci
Jul 15 21:29:40 archer kernel:  evdev acpi_cpufreq mac_hid nls_iso8859_1 nls_cp437 vfat fat fuse sg crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd ehci_pci ehci_hcd i8042 serio
Jul 15 21:29:40 archer kernel: CPU: 6 PID: 885 Comm: Xorg Tainted: G        W         5.2.0-zen1-1-zen #1
Jul 15 21:29:40 archer kernel: Hardware name: HP HP EliteBook 745 G5/83D5, BIOS Q81 Ver. 01.07.00 04/15/2019
Jul 15 21:29:40 archer kernel: RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
Jul 15 21:29:40 archer kernel: Code: 00 00 00 00 00 0f 1f 44 00 00 55 53 48 8b 87 80 02 00 00 48 89 fb 48 8b b8 b0 01 00 00 e8 b3 38 01 00 84 c0 0f 85 35 02 00 00 <0f> 0b 80 bb 93 01 00 00 00 0f 84 26 02 00 00 48 8b 8b 80 02 00 00
Jul 15 21:29:40 archer kernel: RSP: 0018:fffface2c21bb960 EFLAGS: 00010246
Jul 15 21:29:40 archer kernel: RAX: 0000000000000000 RBX: ffffa0068f2a2000 RCX: 0000000000000000
Jul 15 21:29:40 archer kernel: RDX: 0000000000000000 RSI: ffffa0069fd976e8 RDI: 00000000ffffffff
Jul 15 21:29:40 archer kernel: RBP: ffffa00692248000 R08: 000000000000052d R09: 0000000000000001
Jul 15 21:29:40 archer kernel: R10: 0000000000000001 R11: 00000000000039cc R12: ffffa0068f2a2000
Jul 15 21:29:40 archer kernel: R13: ffffa00692248188 R14: 000000f400bc5000 R15: ffffa006982e4500
Jul 15 21:29:40 archer kernel: FS:  00007f086df74dc0(0000) GS:ffffa0069fd80000(0000) knlGS:0000000000000000
Jul 15 21:29:40 archer kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 15 21:29:40 archer kernel: CR2: 00007f09372ccca0 CR3: 0000000406ab8000 CR4: 00000000003406e0
Jul 15 21:29:40 archer kernel: Call Trace:
Jul 15 21:29:40 archer kernel:  dc_stream_set_cursor_attributes+0x147/0x400 [amdgpu]
Jul 15 21:29:40 archer kernel:  handle_cursor_update.isra.0+0x1d8/0x370 [amdgpu]
Jul 15 21:29:40 archer kernel:  drm_atomic_helper_async_commit+0x63/0xe0 [drm_kms_helper]
Jul 15 21:29:40 archer kernel:  drm_atomic_helper_commit+0xf1/0x1d0 [drm_kms_helper]
Jul 15 21:29:40 archer kernel:  drm_atomic_helper_update_plane+0x12f/0x150 [drm_kms_helper]
Jul 15 21:29:40 archer kernel:  __setplane_atomic+0x175/0x250 [drm]
Jul 15 21:29:40 archer kernel:  drm_mode_cursor_universal+0x128/0x240 [drm]
Jul 15 21:29:40 archer kernel:  drm_mode_cursor_common+0xde/0x230 [drm]
Jul 15 21:29:40 archer kernel:  ? drm_mode_setplane+0x2b0/0x2b0 [drm]
Jul 15 21:29:40 archer kernel:  drm_mode_cursor_ioctl+0x4d/0x70 [drm]
Jul 15 21:29:40 archer kernel:  drm_ioctl_kernel+0xb8/0x100 [drm]
Jul 15 21:29:40 archer kernel:  drm_ioctl+0x253/0x3f0 [drm]
Jul 15 21:29:40 archer kernel:  ? drm_mode_setplane+0x2b0/0x2b0 [drm]
Jul 15 21:29:40 archer kernel:  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
Jul 15 21:29:40 archer kernel:  do_vfs_ioctl+0x43d/0x7a0
Jul 15 21:29:40 archer kernel:  ? syscall_trace_enter+0x1c8/0x2e0
Jul 15 21:29:40 archer kernel:  __x64_sys_ioctl+0x62/0x90
Jul 15 21:29:40 archer kernel:  do_syscall_64+0x5b/0x1b0
Jul 15 21:29:40 archer kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jul 15 21:29:40 archer kernel: RIP: 0033:0x7f086f39e21b
Jul 15 21:29:40 archer kernel: Code: 0f 1e fa 48 8b 05 75 8c 0c 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 45 8c 0c 00 f7 d8 64 89 01 48
Jul 15 21:29:40 archer kernel: RSP: 002b:00007fff9599e0f8 EFLAGS: 00003246 ORIG_RAX: 0000000000000010
Jul 15 21:29:40 archer kernel: RAX: ffffffffffffffda RBX: 00007fff9599e130 RCX: 00007f086f39e21b
Jul 15 21:29:40 archer kernel: RDX: 00007fff9599e130 RSI: 00000000c01c64a3 RDI: 000000000000000d
Jul 15 21:29:40 archer kernel: RBP: 00000000c01c64a3 R08: 0000000000000085 R09: 0000000000000001
Jul 15 21:29:40 archer kernel: R10: 0000000000000004 R11: 0000000000003246 R12: 000055fe14127830
Jul 15 21:29:40 archer kernel: R13: 000000000000000d R14: 0000000000000427 R15: 0000000000000427
Jul 15 21:29:40 archer kernel: ---[ end trace 6241658fa61d84f4 ]---

After that it's basically an infinite loop of amdgpu stack traces, until I power off the computer.

I am interested to see if anyone else has this issue, or if someone could suggest some solution.

Last edited by JohnDeVries (2019-07-17 19:35:02)

Offline

#2 2019-07-17 02:47:40

cspack
Member
Registered: 2016-09-01
Posts: 24

Re: Laptop fails to resume from inside Plasma X session

I'm having a similar issue since kernel 5.2. My laptop is a Lenovo S340 15 with Ryzen 5 3500U. I'm using i3wm. The system does suspend and power down but on resume there is no display. I can ssh in from another computer so it's not frozen but I can't get the display back without rebooting. Downgraded to kernel 5.1.16 as a workaround. I haven't found any solution thus far.

[  276.323906] PM: suspend entry (deep)
[  276.342274] Filesystems sync: 0.018 seconds
[  276.342458] Freezing user space processes ... (elapsed 0.001 seconds) done.
[  276.344090] OOM killer disabled.
[  276.344090] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  276.345426] printk: Suspending console(s) (use no_console_suspend to debug)
[  276.345827] wlan0: deauthenticating from e8:ad:a6:39:21:7f by local choice (Reason: 3=DEAUTH_LEAVING)
[  276.395330] sd 1:0:0:0: [sda] Synchronizing SCSI cache
[  276.398351] sd 1:0:0:0: [sda] Stopping disk
[  276.462512] WARNING: CPU: 5 PID: 2892 at kernel/irq/chip.c:210 irq_startup+0xe5/0xf0
[  276.462513] Modules linked in: tun fuse ccm algif_aead des_generic algif_skcipher cmac md4 algif_hash af_alg arc4 hid_logitech_hidpp amdgpu nls_iso8859_1 nls_cp437 vfat fat edac_mce_amd kvm_amd ccp ath10k_pci bonding kvm ath10k_core snd_hda_codec_realtek snd_hda_codec_generic ath uvcvideo cdc_ether amd_iommu_v2 videobuf2_vmalloc gpu_sched videobuf2_memops irqbypass usbnet i2c_algo_bit videobuf2_v4l2 ledtrig_audio videobuf2_common ttm r8152 hid_logitech_dj mac80211 mii videodev snd_hda_codec_hdmi drm_kms_helper wmi_bmof btusb joydev snd_hda_intel btrtl btbcm crct10dif_pclmul media crc32_pclmul btintel snd_hda_codec bluetooth drm snd_hda_core ghash_clmulni_intel input_leds mousedev snd_hwdep aesni_intel sp5100_tco cfg80211 aes_x86_64 pcspkr snd_pcm crypto_simd cryptd k10temp i2c_piix4 glue_helper ecdh_generic ecc agpgart snd_pci_acp3x snd_timer tpm_crb syscopyarea sysfillrect sysimgblt fb_sys_fops snd ideapad_laptop rtsx_pci_ms sparse_keymap memstick soundcore rfkill battery tpm_tis ac
[  276.462554]  tpm_tis_core wmi tpm i2c_hid rng_core pinctrl_amd evdev mac_hid pcc_cpufreq acpi_cpufreq pkcs8_key_parser crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 sd_mod hid_multitouch hid_generic usbhid hid rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[  276.462571] CPU: 5 PID: 2892 Comm: kworker/u32:19 Not tainted 5.2.1-arch1-1-ARCH #1
[  276.462572] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[  276.462576] Workqueue: events_unbound async_run_entry_fn
[  276.462578] RIP: 0010:irq_startup+0xe5/0xf0
[  276.462580] Code: f6 4c 89 e7 e8 1c 44 00 00 85 c0 75 21 4c 89 e7 31 d2 4c 89 ee e8 6b cc ff ff 48 89 ef e8 b3 fe ff ff 41 89 c4 e9 50 ff ff ff <0f> 0b eb b6 0f 0b eb b2 0f 1f 00 0f 1f 44 00 00 55 48 89 fd 53 89
[  276.462581] RSP: 0018:ffffa212cbc17c48 EFLAGS: 00010002
[  276.462582] RAX: 0000000000000140 RBX: 0000000000000001 RCX: 0000000000000140
[  276.462583] RDX: 0000000000000000 RSI: ffffffff86d41780 RDI: ffff8adc38a89218
[  276.462584] RBP: ffff8adc38a89200 R08: 0000000000000000 R09: 0000000000000004
[  276.462584] R10: ffff8adc3c9692c4 R11: ffff8adc3c9692a4 R12: 0000000000000001
[  276.462585] R13: ffff8adc38a89218 R14: 0000000000000000 R15: ffff8adc385df000
[  276.462586] FS:  0000000000000000(0000) GS:ffff8adc3c940000(0000) knlGS:0000000000000000
[  276.462586] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  276.462587] CR2: 0000561d72f5d756 CR3: 000000045b654000 CR4: 00000000003406e0
[  276.462588] Call Trace:
[  276.462593]  enable_irq+0x56/0xa0
[  276.462597]  nvme_poll_irqdisable+0x20d/0x280
[  276.462599]  __nvme_disable_io_queues+0x19f/0x1e0
[  276.462601]  ? nvme_del_queue_end+0x30/0x30
[  276.462603]  nvme_dev_disable+0x15c/0x210
[  276.462605]  nvme_suspend+0x17/0x20
[  276.462607]  pci_pm_suspend+0x72/0x130
[  276.462609]  ? pci_pm_freeze+0xd0/0xd0
[  276.462611]  dpm_run_callback+0x4f/0x180
[  276.462613]  __device_suspend+0x121/0x4e0
[  276.462615]  async_suspend+0x1e/0x90
[  276.462617]  async_run_entry_fn+0x37/0x140
[  276.462619]  process_one_work+0x1d1/0x3e0
[  276.462621]  worker_thread+0x4a/0x3d0
[  276.462623]  kthread+0xfd/0x130
[  276.462625]  ? process_one_work+0x3e0/0x3e0
[  276.462626]  ? kthread_park+0x90/0x90
[  276.462629]  ret_from_fork+0x22/0x40
[  276.462631] ---[ end trace b7d15de616090a79 ]---
[  276.822083] bond1: link status definitely down for interface wlan0, disabling it
[  280.382692] kfd2kgd: cp queue preemption time out.
[  280.647399] ACPI: EC: interrupt blocked
[  280.682365] ACPI: Preparing to enter system sleep state S3
[  280.683954] ACPI: EC: event blocked
[  280.683955] ACPI: EC: EC stopped
[  280.683956] PM: Saving platform NVS memory
[  280.684125] Disabling non-boot CPUs ...
[  280.685866] smpboot: CPU 1 is now offline
[  280.688892] smpboot: CPU 2 is now offline
[  280.691565] smpboot: CPU 3 is now offline
[  280.694288] smpboot: CPU 4 is now offline
[  280.697139] smpboot: CPU 5 is now offline
[  280.700077] smpboot: CPU 6 is now offline
[  280.702974] smpboot: CPU 7 is now offline
[  280.704777] ACPI: Low-level resume complete
[  280.704829] ACPI: EC: EC started
[  280.704829] PM: Restoring platform NVS memory
[  280.817266] Enabling non-boot CPUs ...
[  280.817325] x86: Booting SMP configuration:
[  280.817326] smpboot: Booting Node 0 Processor 1 APIC 0x1
[  280.817548] microcode: CPU1: patch_level=0x08108102
[  280.820264] CPU1 is up
[  280.820298] smpboot: Booting Node 0 Processor 2 APIC 0x2
[  280.820537] microcode: CPU2: patch_level=0x08108102
[  280.823172] CPU2 is up
[  280.823185] smpboot: Booting Node 0 Processor 3 APIC 0x3
[  280.823398] microcode: CPU3: patch_level=0x08108102
[  280.825932] CPU3 is up
[  280.825944] smpboot: Booting Node 0 Processor 4 APIC 0x4
[  280.826214] microcode: CPU4: patch_level=0x08108102
[  280.828975] CPU4 is up
[  280.829026] smpboot: Booting Node 0 Processor 5 APIC 0x5
[  280.829254] microcode: CPU5: patch_level=0x08108102
[  280.831919] CPU5 is up
[  280.831939] smpboot: Booting Node 0 Processor 6 APIC 0x6
[  280.832199] microcode: CPU6: patch_level=0x08108102
[  280.835032] CPU6 is up
[  280.835051] smpboot: Booting Node 0 Processor 7 APIC 0x7
[  280.835268] microcode: CPU7: patch_level=0x08108102
[  280.838124] CPU7 is up
[  280.839054] ACPI: Waking up from system sleep state S3
[  280.954424] ACPI: EC: interrupt unblocked
[  281.005862] ACPI: EC: event unblocked
[  281.008766] [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
[  281.008802] [drm] PSP is resuming...
[  281.016118] sd 1:0:0:0: [sda] Starting disk
[  281.028829] [drm] reserve 0x400000 from 0xf400c00000 for PSP TMR SIZE
[  281.038144] [drm] psp command failed and response status is (-65529)
[  281.208829] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[  281.222624] amdgpu: [powerplay] dpm has been enabled
[  281.227748] nvme nvme0: 16/0/0 default/read/poll queues
[  281.246426] usb 3-1: reset full-speed USB device number 2 using xhci_hcd
[  281.248627] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[  281.248642] amdgpu 0000:04:00.0: ring gfx uses VM inv eng 0 on hub 0
[  281.248643] amdgpu 0000:04:00.0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[  281.248645] amdgpu 0000:04:00.0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[  281.248646] amdgpu 0000:04:00.0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[  281.248647] amdgpu 0000:04:00.0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[  281.248648] amdgpu 0000:04:00.0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[  281.248649] amdgpu 0000:04:00.0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[  281.248649] amdgpu 0000:04:00.0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[  281.248650] amdgpu 0000:04:00.0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[  281.248652] amdgpu 0000:04:00.0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[  281.248653] amdgpu 0000:04:00.0: ring sdma0 uses VM inv eng 0 on hub 1
[  281.248653] amdgpu 0000:04:00.0: ring vcn_dec uses VM inv eng 1 on hub 1
[  281.248654] amdgpu 0000:04:00.0: ring vcn_enc0 uses VM inv eng 4 on hub 1
[  281.248655] amdgpu 0000:04:00.0: ring vcn_enc1 uses VM inv eng 5 on hub 1
[  281.248656] amdgpu 0000:04:00.0: ring vcn_jpeg uses VM inv eng 6 on hub 1
[  281.262194] usb 1-4: reset high-speed USB device number 3 using xhci_hcd
[  281.516474] usb 3-2: reset full-speed USB device number 3 using xhci_hcd
[  281.575554] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[  281.768146] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  281.768759] ata2.00: supports DRM functions and may not be fully accessible
[  281.793476] ata2.00: supports DRM functions and may not be fully accessible
[  281.817721] ata2.00: configured for UDMA/133
[  281.817777] ata2.00: Enabling discard_zeroes_data
[  282.094421] usb 2-1.1: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[  282.132313] acpi LNXPOWER:00: Turning OFF
[  282.132359] OOM killer enabled.
[  282.132360] Restarting tasks ... done.
[  282.138570] PM: suspend exit
[  282.153708] audit: type=1130 audit(1563299218.333:42): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  282.153715] audit: type=1131 audit(1563299218.333:43): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  282.176579] audit: type=1130 audit(1563299218.356:44): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  282.180766] usbcore: registered new interface driver ax88179_178a
[  282.318549] wlan0: authenticate with e8:ad:a6:39:21:7f
[  282.348696] wlan0: send auth to e8:ad:a6:39:21:7f (try 1/3)
[  282.349566] wlan0: authenticated
[  282.351446] wlan0: associate with e8:ad:a6:39:21:7f (try 1/3)
[  282.352439] wlan0: RX AssocResp from e8:ad:a6:39:21:7f (capab=0x11 status=0 aid=2)
[  282.354500] wlan0: associated
[  282.398575] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by e8:ad:a6:39:21:7f
[  282.410525] audit: type=1131 audit(1563299218.590:45): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=openvpn-client@client comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  282.433947] audit: type=1130 audit(1563299218.613:46): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=openvpn-client@client comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  282.436392] audit: type=1130 audit(1563299218.616:47): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=post-resume-sleep comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  282.436398] audit: type=1131 audit(1563299218.616:48): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=post-resume-sleep comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  282.815206] Failed to send Message b.
[  283.014846] bond1: link status definitely down for interface eth0, disabling it
[  283.014856] bond1: now running without any active interface!
[  283.014878] bond1: link status definitely up for interface wlan0, 0 Mbps full duplex
[  283.014880] bond1: making interface wlan0 the new active one
[  283.014925] bond1: first active interface up!
[  283.749938] Failed to send Message 7.
[  284.097894] [drm] pstate TEST_DEBUG_DATA: 0xBEF60000
[  284.098025] WARNING: CPU: 1 PID: 2888 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  284.098026] Modules linked in: ax88179_178a tun fuse ccm algif_aead des_generic algif_skcipher cmac md4 algif_hash af_alg arc4 hid_logitech_hidpp amdgpu nls_iso8859_1 nls_cp437 vfat fat edac_mce_amd kvm_amd ccp ath10k_pci bonding kvm ath10k_core snd_hda_codec_realtek snd_hda_codec_generic ath uvcvideo cdc_ether amd_iommu_v2 videobuf2_vmalloc gpu_sched videobuf2_memops irqbypass usbnet i2c_algo_bit videobuf2_v4l2 ledtrig_audio videobuf2_common ttm r8152 hid_logitech_dj mac80211 mii videodev snd_hda_codec_hdmi drm_kms_helper wmi_bmof btusb joydev snd_hda_intel btrtl btbcm crct10dif_pclmul media crc32_pclmul btintel snd_hda_codec bluetooth drm snd_hda_core ghash_clmulni_intel input_leds mousedev snd_hwdep aesni_intel sp5100_tco cfg80211 aes_x86_64 pcspkr snd_pcm crypto_simd cryptd k10temp i2c_piix4 glue_helper ecdh_generic ecc agpgart snd_pci_acp3x snd_timer tpm_crb syscopyarea sysfillrect sysimgblt fb_sys_fops snd ideapad_laptop rtsx_pci_ms sparse_keymap memstick soundcore rfkill battery
[  284.098081]  tpm_tis ac tpm_tis_core wmi tpm i2c_hid rng_core pinctrl_amd evdev mac_hid pcc_cpufreq acpi_cpufreq pkcs8_key_parser crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 sd_mod hid_multitouch hid_generic usbhid hid rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[  284.098108] CPU: 1 PID: 2888 Comm: kworker/u32:15 Tainted: G        W         5.2.1-arch1-1-ARCH #1
[  284.098110] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[  284.098123] Workqueue: events_unbound commit_work [drm_kms_helper]
[  284.098229] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  284.098233] Code: cd 67 c4 66 90 0f 1f 44 00 00 55 53 48 89 fb 48 8b 83 80 02 00 00 48 8b b8 b0 01 00 00 e8 d3 2a 01 00 84 c0 0f 85 2f 02 00 00 <0f> 0b 80 bb 93 01 00 00 00 0f 84 20 02 00 00 48 8b 83 80 02 00 00
[  284.098235] RSP: 0018:ffffa212cbbf7af8 EFLAGS: 00010246
[  284.098238] RAX: 0000000000000000 RBX: ffff8adc2bb1f000 RCX: 0000000000000000
[  284.098240] RDX: 0000000000000000 RSI: ffff8adc3c8576e8 RDI: 0000000000000001
[  284.098241] RBP: ffff8adc2bb1f000 R08: 00000000000004b3 R09: 0000000000000001
[  284.098242] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8adb8a588188
[  284.098243] R13: 0000000000000000 R14: ffff8adb8a588188 R15: 0000000000000004
[  284.098245] FS:  0000000000000000(0000) GS:ffff8adc3c840000(0000) knlGS:0000000000000000
[  284.098246] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  284.098248] CR2: 0000067406f09008 CR3: 00000004a4674000 CR4: 00000000003406e0
[  284.098249] Call Trace:
[  284.098350]  dcn10_pipe_control_lock.part.0+0x6c/0x70 [amdgpu]
[  284.098434]  dc_commit_updates_for_stream+0x81c/0xc10 [amdgpu]
[  284.098513]  amdgpu_dm_atomic_commit_tail+0xac5/0x1a20 [amdgpu]
[  284.098530]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[  284.098538]  commit_tail+0x3c/0x70 [drm_kms_helper]
[  284.098543]  process_one_work+0x1d1/0x3e0
[  284.098546]  worker_thread+0x4a/0x3d0
[  284.098549]  kthread+0xfd/0x130
[  284.098551]  ? process_one_work+0x3e0/0x3e0
[  284.098552]  ? kthread_park+0x90/0x90
[  284.098556]  ret_from_fork+0x22/0x40
[  284.098559] ---[ end trace b7d15de616090a7a ]---
[  284.099113] [drm] pstate TEST_DEBUG_DATA: 0x3EF60000
[  284.099200] WARNING: CPU: 1 PID: 2888 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  284.099201] Modules linked in: ax88179_178a tun fuse ccm algif_aead des_generic algif_skcipher cmac md4 algif_hash af_alg arc4 hid_logitech_hidpp amdgpu nls_iso8859_1 nls_cp437 vfat fat edac_mce_amd kvm_amd ccp ath10k_pci bonding kvm ath10k_core snd_hda_codec_realtek snd_hda_codec_generic ath uvcvideo cdc_ether amd_iommu_v2 videobuf2_vmalloc gpu_sched videobuf2_memops irqbypass usbnet i2c_algo_bit videobuf2_v4l2 ledtrig_audio videobuf2_common ttm r8152 hid_logitech_dj mac80211 mii videodev snd_hda_codec_hdmi drm_kms_helper wmi_bmof btusb joydev snd_hda_intel btrtl btbcm crct10dif_pclmul media crc32_pclmul btintel snd_hda_codec bluetooth drm snd_hda_core ghash_clmulni_intel input_leds mousedev snd_hwdep aesni_intel sp5100_tco cfg80211 aes_x86_64 pcspkr snd_pcm crypto_simd cryptd k10temp i2c_piix4 glue_helper ecdh_generic ecc agpgart snd_pci_acp3x snd_timer tpm_crb syscopyarea sysfillrect sysimgblt fb_sys_fops snd ideapad_laptop rtsx_pci_ms sparse_keymap memstick soundcore rfkill battery
[  284.099232]  tpm_tis ac tpm_tis_core wmi tpm i2c_hid rng_core pinctrl_amd evdev mac_hid pcc_cpufreq acpi_cpufreq pkcs8_key_parser crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 sd_mod hid_multitouch hid_generic usbhid hid rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[  284.099248] CPU: 1 PID: 2888 Comm: kworker/u32:15 Tainted: G        W         5.2.1-arch1-1-ARCH #1
[  284.099249] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[  284.099257] Workqueue: events_unbound commit_work [drm_kms_helper]
[  284.099333] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  284.099335] Code: cd 67 c4 66 90 0f 1f 44 00 00 55 53 48 89 fb 48 8b 83 80 02 00 00 48 8b b8 b0 01 00 00 e8 d3 2a 01 00 84 c0 0f 85 2f 02 00 00 <0f> 0b 80 bb 93 01 00 00 00 0f 84 20 02 00 00 48 8b 83 80 02 00 00
[  284.099336] RSP: 0018:ffffa212cbbf7b18 EFLAGS: 00010246
[  284.099338] RAX: 0000000000000000 RBX: ffff8adc2bb1f000 RCX: 0000000000000000
[  284.099338] RDX: 0000000000000000 RSI: ffff8adc3c8576e8 RDI: 0000000000000001
[  284.099341] RBP: ffffa212cbbf7ba0 R08: 00000000000004d2 R09: 0000000000000001
[  284.099341] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8adc2bb1f000
[  284.099342] R13: 0000000000000000 R14: ffff8adb8a588188 R15: 0000000000000004
[  284.099343] FS:  0000000000000000(0000) GS:ffff8adc3c840000(0000) knlGS:0000000000000000
[  284.099344] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  284.099345] CR2: 0000067406f09008 CR3: 00000004a4674000 CR4: 00000000003406e0
[  284.099346] Call Trace:
[  284.099420]  dc_commit_updates_for_stream+0x81c/0xc10 [amdgpu]
[  284.099499]  amdgpu_dm_atomic_commit_tail+0xac5/0x1a20 [amdgpu]
[  284.099516]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[  284.099524]  commit_tail+0x3c/0x70 [drm_kms_helper]
[  284.099527]  process_one_work+0x1d1/0x3e0
[  284.099529]  worker_thread+0x4a/0x3d0
[  284.099531]  kthread+0xfd/0x130
[  284.099533]  ? process_one_work+0x3e0/0x3e0
[  284.099535]  ? kthread_park+0x90/0x90
[  284.099538]  ret_from_fork+0x22/0x40
[  284.099541] ---[ end trace b7d15de616090a7b ]---
[  284.100058] [drm] pstate TEST_DEBUG_DATA: 0x3EF60000
[  284.100143] WARNING: CPU: 1 PID: 2888 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  284.100144] Modules linked in: ax88179_178a tun fuse ccm algif_aead des_generic algif_skcipher cmac md4 algif_hash af_alg arc4 hid_logitech_hidpp amdgpu nls_iso8859_1 nls_cp437 vfat fat edac_mce_amd kvm_amd ccp ath10k_pci bonding kvm ath10k_core snd_hda_codec_realtek snd_hda_codec_generic ath uvcvideo cdc_ether amd_iommu_v2 videobuf2_vmalloc gpu_sched videobuf2_memops irqbypass usbnet i2c_algo_bit videobuf2_v4l2 ledtrig_audio videobuf2_common ttm r8152 hid_logitech_dj mac80211 mii videodev snd_hda_codec_hdmi drm_kms_helper wmi_bmof btusb joydev snd_hda_intel btrtl btbcm crct10dif_pclmul media crc32_pclmul btintel snd_hda_codec bluetooth drm snd_hda_core ghash_clmulni_intel input_leds mousedev snd_hwdep aesni_intel sp5100_tco cfg80211 aes_x86_64 pcspkr snd_pcm crypto_simd cryptd k10temp i2c_piix4 glue_helper ecdh_generic ecc agpgart snd_pci_acp3x snd_timer tpm_crb syscopyarea sysfillrect sysimgblt fb_sys_fops snd ideapad_laptop rtsx_pci_ms sparse_keymap memstick soundcore rfkill battery
[  284.100173]  tpm_tis ac tpm_tis_core wmi tpm i2c_hid rng_core pinctrl_amd evdev mac_hid pcc_cpufreq acpi_cpufreq pkcs8_key_parser crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 sd_mod hid_multitouch hid_generic usbhid hid rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[  284.100190] CPU: 1 PID: 2888 Comm: kworker/u32:15 Tainted: G        W         5.2.1-arch1-1-ARCH #1
[  284.100190] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[  284.100199] Workqueue: events_unbound commit_work [drm_kms_helper]
[  284.100274] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  284.100276] Code: cd 67 c4 66 90 0f 1f 44 00 00 55 53 48 89 fb 48 8b 83 80 02 00 00 48 8b b8 b0 01 00 00 e8 d3 2a 01 00 84 c0 0f 85 2f 02 00 00 <0f> 0b 80 bb 93 01 00 00 00 0f 84 20 02 00 00 48 8b 83 80 02 00 00
[  284.100277] RSP: 0018:ffffa212cbbf7af8 EFLAGS: 00010246
[  284.100278] RAX: 0000000000000000 RBX: ffff8adc2bb1f000 RCX: 0000000000000000
[  284.100279] RDX: 0000000000000000 RSI: 0000000000000086 RDI: 0000000000000001
[  284.100281] RBP: ffff8adc2bb1f000 R08: 00000000000004f0 R09: 0000000000000001
[  284.100282] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8adb8a588188
[  284.100283] R13: 0000000000000000 R14: ffff8adb8a588188 R15: ffff8adb8a5892e8
[  284.100284] FS:  0000000000000000(0000) GS:ffff8adc3c840000(0000) knlGS:0000000000000000
[  284.100285] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  284.100286] CR2: 0000067406f09008 CR3: 00000004a4674000 CR4: 00000000003406e0
[  284.100287] Call Trace:
[  284.100363]  dcn10_pipe_control_lock.part.0+0x6c/0x70 [amdgpu]
[  284.100435]  dc_commit_updates_for_stream+0x8eb/0xc10 [amdgpu]
[  284.100515]  amdgpu_dm_atomic_commit_tail+0xac5/0x1a20 [amdgpu]
[  284.100531]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[  284.100539]  commit_tail+0x3c/0x70 [drm_kms_helper]
[  284.100541]  process_one_work+0x1d1/0x3e0
[  284.100543]  worker_thread+0x4a/0x3d0
[  284.100545]  kthread+0xfd/0x130
[  284.100547]  ? process_one_work+0x3e0/0x3e0
[  284.100549]  ? kthread_park+0x90/0x90
[  284.100551]  ret_from_fork+0x22/0x40
[  284.100554] ---[ end trace b7d15de616090a7c ]---
[  284.101053] [drm] pstate TEST_DEBUG_DATA: 0x3EF60000
[  284.101138] WARNING: CPU: 1 PID: 2888 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  284.101138] Modules linked in: ax88179_178a tun fuse ccm algif_aead des_generic algif_skcipher cmac md4 algif_hash af_alg arc4 hid_logitech_hidpp amdgpu nls_iso8859_1 nls_cp437 vfat fat edac_mce_amd kvm_amd ccp ath10k_pci bonding kvm ath10k_core snd_hda_codec_realtek snd_hda_codec_generic ath uvcvideo cdc_ether amd_iommu_v2 videobuf2_vmalloc gpu_sched videobuf2_memops irqbypass usbnet i2c_algo_bit videobuf2_v4l2 ledtrig_audio videobuf2_common ttm r8152 hid_logitech_dj mac80211 mii videodev snd_hda_codec_hdmi drm_kms_helper wmi_bmof btusb joydev snd_hda_intel btrtl btbcm crct10dif_pclmul media crc32_pclmul btintel snd_hda_codec bluetooth drm snd_hda_core ghash_clmulni_intel input_leds mousedev snd_hwdep aesni_intel sp5100_tco cfg80211 aes_x86_64 pcspkr snd_pcm crypto_simd cryptd k10temp i2c_piix4 glue_helper ecdh_generic ecc agpgart snd_pci_acp3x snd_timer tpm_crb syscopyarea sysfillrect sysimgblt fb_sys_fops snd ideapad_laptop rtsx_pci_ms sparse_keymap memstick soundcore rfkill battery
[  284.101169]  tpm_tis ac tpm_tis_core wmi tpm i2c_hid rng_core pinctrl_amd evdev mac_hid pcc_cpufreq acpi_cpufreq pkcs8_key_parser crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 sd_mod hid_multitouch hid_generic usbhid hid rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[  284.101184] CPU: 1 PID: 2888 Comm: kworker/u32:15 Tainted: G        W         5.2.1-arch1-1-ARCH #1
[  284.101185] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[  284.101193] Workqueue: events_unbound commit_work [drm_kms_helper]
[  284.101268] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  284.101270] Code: cd 67 c4 66 90 0f 1f 44 00 00 55 53 48 89 fb 48 8b 83 80 02 00 00 48 8b b8 b0 01 00 00 e8 d3 2a 01 00 84 c0 0f 85 2f 02 00 00 <0f> 0b 80 bb 93 01 00 00 00 0f 84 20 02 00 00 48 8b 83 80 02 00 00
[  284.101271] RSP: 0018:ffffa212cbbf7b18 EFLAGS: 00010246
[  284.101272] RAX: 0000000000000000 RBX: ffff8adc2bb1f000 RCX: 0000000000000000
[  284.101273] RDX: 0000000000000000 RSI: 0000000000000082 RDI: 0000000000000001
[  284.101276] RBP: ffffa212cbbf7ba0 R08: 000000000000050f R09: 0000000000000001
[  284.101277] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8adc2bb1f000
[  284.101278] R13: 0000000000000000 R14: ffff8adb8a588188 R15: ffff8adb8a5892e8
[  284.101279] FS:  0000000000000000(0000) GS:ffff8adc3c840000(0000) knlGS:0000000000000000
[  284.101280] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  284.101281] CR2: 0000067406f09008 CR3: 00000004a4674000 CR4: 00000000003406e0
[  284.101282] Call Trace:
[  284.101354]  dc_commit_updates_for_stream+0x8eb/0xc10 [amdgpu]
[  284.101432]  amdgpu_dm_atomic_commit_tail+0xac5/0x1a20 [amdgpu]
[  284.101450]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[  284.101458]  commit_tail+0x3c/0x70 [drm_kms_helper]
[  284.101460]  process_one_work+0x1d1/0x3e0
[  284.101462]  worker_thread+0x4a/0x3d0
[  284.101465]  kthread+0xfd/0x130
[  284.101467]  ? process_one_work+0x3e0/0x3e0
[  284.101469]  ? kthread_park+0x90/0x90
[  284.101471]  ret_from_fork+0x22/0x40
[  284.101474] ---[ end trace b7d15de616090a7d ]---
[  285.222613] [drm] pstate TEST_DEBUG_DATA: 0x3EF60000
[  285.222694] WARNING: CPU: 1 PID: 2888 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  285.222695] Modules linked in: ax88179_178a tun fuse ccm algif_aead des_generic algif_skcipher cmac md4 algif_hash af_alg arc4 hid_logitech_hidpp amdgpu nls_iso8859_1 nls_cp437 vfat fat edac_mce_amd kvm_amd ccp ath10k_pci bonding kvm ath10k_core snd_hda_codec_realtek snd_hda_codec_generic ath uvcvideo cdc_ether amd_iommu_v2 videobuf2_vmalloc gpu_sched videobuf2_memops irqbypass usbnet i2c_algo_bit videobuf2_v4l2 ledtrig_audio videobuf2_common ttm r8152 hid_logitech_dj mac80211 mii videodev snd_hda_codec_hdmi drm_kms_helper wmi_bmof btusb joydev snd_hda_intel btrtl btbcm crct10dif_pclmul media crc32_pclmul btintel snd_hda_codec bluetooth drm snd_hda_core ghash_clmulni_intel input_leds mousedev snd_hwdep aesni_intel sp5100_tco cfg80211 aes_x86_64 pcspkr snd_pcm crypto_simd cryptd k10temp i2c_piix4 glue_helper ecdh_generic ecc agpgart snd_pci_acp3x snd_timer tpm_crb syscopyarea sysfillrect sysimgblt fb_sys_fops snd ideapad_laptop rtsx_pci_ms sparse_keymap memstick soundcore rfkill battery
[  285.222733]  tpm_tis ac tpm_tis_core wmi tpm i2c_hid rng_core pinctrl_amd evdev mac_hid pcc_cpufreq acpi_cpufreq pkcs8_key_parser crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 sd_mod hid_multitouch hid_generic usbhid hid rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[  285.222753] CPU: 1 PID: 2888 Comm: kworker/u32:15 Tainted: G        W         5.2.1-arch1-1-ARCH #1
[  285.222755] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[  285.222763] Workqueue: events_unbound commit_work [drm_kms_helper]
[  285.222823] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  285.222824] Code: cd 67 c4 66 90 0f 1f 44 00 00 55 53 48 89 fb 48 8b 83 80 02 00 00 48 8b b8 b0 01 00 00 e8 d3 2a 01 00 84 c0 0f 85 2f 02 00 00 <0f> 0b 80 bb 93 01 00 00 00 0f 84 20 02 00 00 48 8b 83 80 02 00 00
[  285.222825] RSP: 0018:ffffa212cbbf7af8 EFLAGS: 00010246
[  285.222827] RAX: 0000000000000000 RBX: ffff8adc2bb1f000 RCX: 0000000000000000
[  285.222828] RDX: 0000000000000000 RSI: ffff8adc3c8576e8 RDI: 0000000000000001
[  285.222828] RBP: ffff8adc2bb1f000 R08: 000000000000052d R09: 0000000000000001
[  285.222829] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8adb8a588188
[  285.222830] R13: 0000000000000000 R14: ffff8adb8a588188 R15: 0000000000000004
[  285.222831] FS:  0000000000000000(0000) GS:ffff8adc3c840000(0000) knlGS:0000000000000000
[  285.222832] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  285.222832] CR2: 00007f9cac5698f8 CR3: 00000004a4674000 CR4: 00000000003406e0
[  285.222833] Call Trace:
[  285.222895]  dcn10_pipe_control_lock.part.0+0x6c/0x70 [amdgpu]
[  285.222952]  dc_commit_updates_for_stream+0x81c/0xc10 [amdgpu]
[  285.223012]  amdgpu_dm_atomic_commit_tail+0xac5/0x1a20 [amdgpu]
[  285.223024]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[  285.223030]  commit_tail+0x3c/0x70 [drm_kms_helper]
[  285.223034]  process_one_work+0x1d1/0x3e0
[  285.223037]  worker_thread+0x4a/0x3d0
[  285.223039]  kthread+0xfd/0x130
[  285.223040]  ? process_one_work+0x3e0/0x3e0
[  285.223042]  ? kthread_park+0x90/0x90
[  285.223044]  ret_from_fork+0x22/0x40
[  285.223047] ---[ end trace b7d15de616090a7e ]---
[  285.223529] [drm] pstate TEST_DEBUG_DATA: 0x3EF60000
[  285.223598] WARNING: CPU: 1 PID: 2888 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  285.223598] Modules linked in: ax88179_178a tun fuse ccm algif_aead des_generic algif_skcipher cmac md4 algif_hash af_alg arc4 hid_logitech_hidpp amdgpu nls_iso8859_1 nls_cp437 vfat fat edac_mce_amd kvm_amd ccp ath10k_pci bonding kvm ath10k_core snd_hda_codec_realtek snd_hda_codec_generic ath uvcvideo cdc_ether amd_iommu_v2 videobuf2_vmalloc gpu_sched videobuf2_memops irqbypass usbnet i2c_algo_bit videobuf2_v4l2 ledtrig_audio videobuf2_common ttm r8152 hid_logitech_dj mac80211 mii videodev snd_hda_codec_hdmi drm_kms_helper wmi_bmof btusb joydev snd_hda_intel btrtl btbcm crct10dif_pclmul media crc32_pclmul btintel snd_hda_codec bluetooth drm snd_hda_core ghash_clmulni_intel input_leds mousedev snd_hwdep aesni_intel sp5100_tco cfg80211 aes_x86_64 pcspkr snd_pcm crypto_simd cryptd k10temp i2c_piix4 glue_helper ecdh_generic ecc agpgart snd_pci_acp3x snd_timer tpm_crb syscopyarea sysfillrect sysimgblt fb_sys_fops snd ideapad_laptop rtsx_pci_ms sparse_keymap memstick soundcore rfkill battery
[  285.223620]  tpm_tis ac tpm_tis_core wmi tpm i2c_hid rng_core pinctrl_amd evdev mac_hid pcc_cpufreq acpi_cpufreq pkcs8_key_parser crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 sd_mod hid_multitouch hid_generic usbhid hid rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[  285.223631] CPU: 1 PID: 2888 Comm: kworker/u32:15 Tainted: G        W         5.2.1-arch1-1-ARCH #1
[  285.223631] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[  285.223638] Workqueue: events_unbound commit_work [drm_kms_helper]
[  285.223698] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  285.223700] Code: cd 67 c4 66 90 0f 1f 44 00 00 55 53 48 89 fb 48 8b 83 80 02 00 00 48 8b b8 b0 01 00 00 e8 d3 2a 01 00 84 c0 0f 85 2f 02 00 00 <0f> 0b 80 bb 93 01 00 00 00 0f 84 20 02 00 00 48 8b 83 80 02 00 00
[  285.223701] RSP: 0018:ffffa212cbbf7b18 EFLAGS: 00010246
[  285.223702] RAX: 0000000000000000 RBX: ffff8adc2bb1f000 RCX: 0000000000000000
[  285.223702] RDX: 0000000000000000 RSI: 0000000000000082 RDI: 0000000000000001
[  285.223703] RBP: ffffa212cbbf7ba0 R08: 000000000000054c R09: 0000000000000001
[  285.223704] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8adc2bb1f000
[  285.223704] R13: 0000000000000000 R14: ffff8adb8a588188 R15: 0000000000000004
[  285.223705] FS:  0000000000000000(0000) GS:ffff8adc3c840000(0000) knlGS:0000000000000000
[  285.223706] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  285.223707] CR2: 00007f9cac5698f8 CR3: 00000004a4674000 CR4: 00000000003406e0
[  285.223708] Call Trace:
[  285.223766]  dc_commit_updates_for_stream+0x81c/0xc10 [amdgpu]
[  285.223829]  amdgpu_dm_atomic_commit_tail+0xac5/0x1a20 [amdgpu]
[  285.223841]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[  285.223847]  commit_tail+0x3c/0x70 [drm_kms_helper]
[  285.223849]  process_one_work+0x1d1/0x3e0
[  285.223851]  worker_thread+0x4a/0x3d0
[  285.223853]  kthread+0xfd/0x130
[  285.223854]  ? process_one_work+0x3e0/0x3e0
[  285.223855]  ? kthread_park+0x90/0x90
[  285.223857]  ret_from_fork+0x22/0x40
[  285.223859] ---[ end trace b7d15de616090a7f ]---
[  285.224357] [drm] pstate TEST_DEBUG_DATA: 0x3EF60000
[  285.224426] WARNING: CPU: 1 PID: 2888 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  285.224426] Modules linked in: ax88179_178a tun fuse ccm algif_aead des_generic algif_skcipher cmac md4 algif_hash af_alg arc4 hid_logitech_hidpp amdgpu nls_iso8859_1 nls_cp437 vfat fat edac_mce_amd kvm_amd ccp ath10k_pci bonding kvm ath10k_core snd_hda_codec_realtek snd_hda_codec_generic ath uvcvideo cdc_ether amd_iommu_v2 videobuf2_vmalloc gpu_sched videobuf2_memops irqbypass usbnet i2c_algo_bit videobuf2_v4l2 ledtrig_audio videobuf2_common ttm r8152 hid_logitech_dj mac80211 mii videodev snd_hda_codec_hdmi drm_kms_helper wmi_bmof btusb joydev snd_hda_intel btrtl btbcm crct10dif_pclmul media crc32_pclmul btintel snd_hda_codec bluetooth drm snd_hda_core ghash_clmulni_intel input_leds mousedev snd_hwdep aesni_intel sp5100_tco cfg80211 aes_x86_64 pcspkr snd_pcm crypto_simd cryptd k10temp i2c_piix4 glue_helper ecdh_generic ecc agpgart snd_pci_acp3x snd_timer tpm_crb syscopyarea sysfillrect sysimgblt fb_sys_fops snd ideapad_laptop rtsx_pci_ms sparse_keymap memstick soundcore rfkill battery
[  285.224447]  tpm_tis ac tpm_tis_core wmi tpm i2c_hid rng_core pinctrl_amd evdev mac_hid pcc_cpufreq acpi_cpufreq pkcs8_key_parser crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 sd_mod hid_multitouch hid_generic usbhid hid rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[  285.224458] CPU: 1 PID: 2888 Comm: kworker/u32:15 Tainted: G        W         5.2.1-arch1-1-ARCH #1
[  285.224458] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[  285.224465] Workqueue: events_unbound commit_work [drm_kms_helper]
[  285.224525] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  285.224526] Code: cd 67 c4 66 90 0f 1f 44 00 00 55 53 48 89 fb 48 8b 83 80 02 00 00 48 8b b8 b0 01 00 00 e8 d3 2a 01 00 84 c0 0f 85 2f 02 00 00 <0f> 0b 80 bb 93 01 00 00 00 0f 84 20 02 00 00 48 8b 83 80 02 00 00
[  285.224527] RSP: 0018:ffffa212cbbf7af8 EFLAGS: 00010246
[  285.224528] RAX: 0000000000000000 RBX: ffff8adc2bb1f000 RCX: 0000000000000000
[  285.224529] RDX: 0000000000000000 RSI: 0000000000000086 RDI: 0000000000000001
[  285.224529] RBP: ffff8adc2bb1f000 R08: 000000000000056a R09: 0000000000000001
[  285.224530] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8adb8a588188
[  285.224531] R13: 0000000000000000 R14: ffff8adb8a588188 R15: ffff8adb8a5892e8
[  285.224532] FS:  0000000000000000(0000) GS:ffff8adc3c840000(0000) knlGS:0000000000000000
[  285.224533] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  285.224533] CR2: 00007f9cac5698f8 CR3: 00000004a4674000 CR4: 00000000003406e0
[  285.224534] Call Trace:
[  285.224595]  dcn10_pipe_control_lock.part.0+0x6c/0x70 [amdgpu]
[  285.224660]  dc_commit_updates_for_stream+0x8eb/0xc10 [amdgpu]
[  285.224723]  amdgpu_dm_atomic_commit_tail+0xac5/0x1a20 [amdgpu]
[  285.224735]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[  285.224741]  commit_tail+0x3c/0x70 [drm_kms_helper]
[  285.224742]  process_one_work+0x1d1/0x3e0
[  285.224744]  worker_thread+0x4a/0x3d0
[  285.224746]  kthread+0xfd/0x130
[  285.224747]  ? process_one_work+0x3e0/0x3e0
[  285.224748]  ? kthread_park+0x90/0x90
[  285.224750]  ret_from_fork+0x22/0x40
[  285.224752] ---[ end trace b7d15de616090a80 ]---
[  285.225240] [drm] pstate TEST_DEBUG_DATA: 0x3EF60000
[  285.225306] WARNING: CPU: 1 PID: 2888 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  285.225307] Modules linked in: ax88179_178a tun fuse ccm algif_aead des_generic algif_skcipher cmac md4 algif_hash af_alg arc4 hid_logitech_hidpp amdgpu nls_iso8859_1 nls_cp437 vfat fat edac_mce_amd kvm_amd ccp ath10k_pci bonding kvm ath10k_core snd_hda_codec_realtek snd_hda_codec_generic ath uvcvideo cdc_ether amd_iommu_v2 videobuf2_vmalloc gpu_sched videobuf2_memops irqbypass usbnet i2c_algo_bit videobuf2_v4l2 ledtrig_audio videobuf2_common ttm r8152 hid_logitech_dj mac80211 mii videodev snd_hda_codec_hdmi drm_kms_helper wmi_bmof btusb joydev snd_hda_intel btrtl btbcm crct10dif_pclmul media crc32_pclmul btintel snd_hda_codec bluetooth drm snd_hda_core ghash_clmulni_intel input_leds mousedev snd_hwdep aesni_intel sp5100_tco cfg80211 aes_x86_64 pcspkr snd_pcm crypto_simd cryptd k10temp i2c_piix4 glue_helper ecdh_generic ecc agpgart snd_pci_acp3x snd_timer tpm_crb syscopyarea sysfillrect sysimgblt fb_sys_fops snd ideapad_laptop rtsx_pci_ms sparse_keymap memstick soundcore rfkill battery
[  285.225330]  tpm_tis ac tpm_tis_core wmi tpm i2c_hid rng_core pinctrl_amd evdev mac_hid pcc_cpufreq acpi_cpufreq pkcs8_key_parser crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 sd_mod hid_multitouch hid_generic usbhid hid rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 ahci libahci crc32c_intel libata xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[  285.225343] CPU: 1 PID: 2888 Comm: kworker/u32:15 Tainted: G        W         5.2.1-arch1-1-ARCH #1
[  285.225343] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[  285.225350] Workqueue: events_unbound commit_work [drm_kms_helper]
[  285.225408] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[  285.225410] Code: cd 67 c4 66 90 0f 1f 44 00 00 55 53 48 89 fb 48 8b 83 80 02 00 00 48 8b b8 b0 01 00 00 e8 d3 2a 01 00 84 c0 0f 85 2f 02 00 00 <0f> 0b 80 bb 93 01 00 00 00 0f 84 20 02 00 00 48 8b 83 80 02 00 00
[  285.225411] RSP: 0018:ffffa212cbbf7b18 EFLAGS: 00010246
[  285.225412] RAX: 0000000000000000 RBX: ffff8adc2bb1f000 RCX: 0000000000000000
[  285.225413] RDX: 0000000000000000 RSI: ffff8adc3c8576e8 RDI: 0000000000000001
[  285.225414] RBP: ffffa212cbbf7ba0 R08: 0000000000000589 R09: 0000000000000001
[  285.225415] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8adc2bb1f000
[  285.225415] R13: 0000000000000000 R14: ffff8adb8a588188 R15: ffff8adb8a5892e8
[  285.225417] FS:  0000000000000000(0000) GS:ffff8adc3c840000(0000) knlGS:0000000000000000
[  285.225417] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  285.225418] CR2: 00007f9cac5698f8 CR3: 00000004a4674000 CR4: 00000000003406e0
[  285.225419] Call Trace:
[  285.225475]  dc_commit_updates_for_stream+0x8eb/0xc10 [amdgpu]
[  285.225536]  amdgpu_dm_atomic_commit_tail+0xac5/0x1a20 [amdgpu]
[  285.225549]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[  285.225555]  commit_tail+0x3c/0x70 [drm_kms_helper]
[  285.225556]  process_one_work+0x1d1/0x3e0
[  285.225558]  worker_thread+0x4a/0x3d0
[  285.225560]  kthread+0xfd/0x130
[  285.225562]  ? process_one_work+0x3e0/0x3e0
[  285.225563]  ? kthread_park+0x90/0x90
[  285.225565]  ret_from_fork+0x22/0x40
[  285.225567] ---[ end trace b7d15de616090a81 ]---
[  285.591646] r8152 2-1.1:1.0 eth0: carrier on
[  286.055181] bond1: link status definitely up for interface eth0, 1000 Mbps full duplex
[  286.055183] bond1: making interface eth0 the new active one
[  287.172866] audit: type=1131 audit(1563299223.353:49): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  295.388785] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:56:crtc-0] flip_done timed out
[  316.219154] audit: type=1006 audit(1563299252.400:50): pid=3273 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=4 res=1

Offline

#3 2019-07-17 08:38:59

JohnDeVries
Member
Registered: 2019-07-15
Posts: 12

Re: Laptop fails to resume from inside Plasma X session

Interesting! Yes: "suspends then wakes up without the screen displaying anything" is pretty much how I would describe my issue as well.
Your kernel log also looks very similar to mine.

Good thinking testing ssh, I hadn't tried that. Interesting to see that it actually works.

Kernel 5.2.1 did not fix this for me, by the way. I'll try suspending from a wayland session: see if that changes anything.
Edit: resuming from Wayland works, it's just the X session that causes the issue.

Do other people running Ryzen APUs have similar issues?

Last edited by JohnDeVries (2019-07-17 18:39:53)

Offline

#4 2019-07-17 20:00:33

davinci
Member
Registered: 2019-07-17
Posts: 8

Re: Laptop fails to resume from inside Plasma X session

Same problem. Xorg stays blank after resume. I can switch to another tty and back but i cannot login, reboot or anything at all.
Using suspend from tty works but i can't fire up Xorg since it will freeze upon start.
Having problems with this couple of weeks now, started after some systemd & linux kernel updates with my usb wifi dongle device missing. At least I was able to reboot back then, now i mostly have to use the reset button.
Using systemd 242.32-3-arch right now so i think it's another bug than RDRAND.

Offline

#5 2019-07-17 20:03:54

loqs
Member
Registered: 2014-03-06
Posts: 8,169

Re: Laptop fails to resume from inside Plasma X session

Offline

#6 2019-07-17 22:58:08

seth
Member
Registered: 2012-09-03
Posts: 11,983

Re: Laptop fails to resume from inside Plasma X session

Edit:
https://github.com/systemd/systemd/issues/9748 - but that's supposed to be fixed…
wrong thread, sorry.

Last edited by seth (2019-07-18 06:30:25)

Offline

#7 2019-07-18 00:23:14

cspack
Member
Registered: 2016-09-01
Posts: 24

Re: Laptop fails to resume from inside Plasma X session

loqs wrote:

I just tried this kernel and the issue is present there as well.

Offline

#8 2019-07-18 00:43:34

loqs
Member
Registered: 2014-03-06
Posts: 8,169

Re: Laptop fails to resume from inside Plasma X session

@cspack thank you for testing that.
https://github.com/torvalds/linux/blob/ … bub.c#L235 is the source of the warning but I do not believe it is the cause.

Offline

#9 2019-07-18 09:42:19

davinci
Member
Registered: 2019-07-17
Posts: 8

Re: Laptop fails to resume from inside Plasma X session

My workaround so far:
. Quit Xorg
. Remove and re-insmod usb modules (*hci_hcd & *hci_pci)
. Suspend
. Wake up (using USB keyboard)
. Remove and re-insmod usb modules (*hci_hcd & *hci_pci)
. Start Xorg

seems to do the trick for me. At least a couple of times now.

Offline

#10 2019-07-24 12:58:16

ghastflare
Member
Registered: 2019-07-24
Posts: 4

Re: Laptop fails to resume from inside Plasma X session

I just bought an HP Probook 455 g6 with Ryzen 2700u PRO and I have the exact same issue as described.
I did install OpenSuse tumbleweed for 1 day before switching to Arch because I had the USB ready and needed something up and running quickly. Suspend from plasma on Xorg worked fine there. Both system were up to date.

Did you guys find any other workaround perhaps?

Offline

#11 2019-07-24 17:53:04

JohnDeVries
Member
Registered: 2019-07-15
Posts: 12

Re: Laptop fails to resume from inside Plasma X session

Not yet, and it's still broken with the current kernel.

That's interesting: did tumbleweed have the same version of linux and xorg? I know they are rolling as well, but I guess they might be ahead/behind in some packages compared to Arch.

Offline

#12 2019-07-24 18:32:39

loqs
Member
Registered: 2014-03-06
Posts: 8,169

Re: Laptop fails to resume from inside Plasma X session

Does adding the boot option iommu=pt have any effect?

Offline

#13 2019-07-24 19:18:28

ghastflare
Member
Registered: 2019-07-24
Posts: 4

Re: Laptop fails to resume from inside Plasma X session

JohnDeVries wrote:

Not yet, and it's still broken with the current kernel.

That's interesting: did tumbleweed have the same version of linux and xorg? I know they are rolling as well, but I guess they might be ahead/behind in some packages compared to Arch.


Hey, thanks for the response. I checked the version and it seems opensuse is one minor version behind on the linux kernel, while xorg uses a different versioning so I couldn't tell. One thing that stuck out was that there are two kernel packages on suse, one called default (with patches applied) and one called vanilla. Could it be one of the patches solving the problem? If so would it be possible for anyone that has the expertise to figure out which one?

I might give it another boot to check things again because I only run it for a couple of hours but I could swear I suspended and put the laptop in my bag multiple times. If it froze I would have noticed.

Offline

#14 2019-07-24 19:19:07

ghastflare
Member
Registered: 2019-07-24
Posts: 4

Re: Laptop fails to resume from inside Plasma X session

loqs wrote:

Does adding the boot option iommu=pt have any effect?

Thanks for the response. Sadly adding 'iommu=pt' to my boot parameters does not appear to change anything.

Offline

#15 2019-07-24 19:52:10

loqs
Member
Registered: 2014-03-06
Posts: 8,169

Re: Laptop fails to resume from inside Plasma X session

ghastflare by one minor version behind do you mean 5.1.# or 5.2.1?

Offline

#16 2019-07-24 20:16:46

ghastflare
Member
Registered: 2019-07-24
Posts: 4

Re: Laptop fails to resume from inside Plasma X session

loqs wrote:

ghastflare by one minor version behind do you mean 5.1.# or 5.2.1?

5.2.2 arch vs 5.2.1 suse

Edit: Just tried linux-lts package. Same thing. The only difference is that on lts, the REISUB works (even though the leds such as numlock or caps lock don't respond), where the non-lts needs to be restarted from the power button.

Last edited by ghastflare (2019-07-24 20:34:17)

Offline

#17 2019-07-25 07:16:00

LogXx
Member
Registered: 2019-07-25
Posts: 6

Re: Laptop fails to resume from inside Plasma X session

Using acer a315-41-r8xr, suspend doesn't work properly either. CPU is Ryzen 2500u, GPU is Vega 8, latest kernel

Offline

#18 2019-07-26 08:06:52

davinci
Member
Registered: 2019-07-17
Posts: 8

Re: Laptop fails to resume from inside Plasma X session

loqs wrote:

Does adding the boot option iommu=pt have any effect?

Just tried it once (from Xorg) and seems to work just fine!
Already failed on 2nd try. No screen in Xorg, tty's worked.

Last edited by davinci (2019-07-26 08:24:10)

Offline

#19 2019-07-27 16:35:22

JohnDeVries
Member
Registered: 2019-07-15
Posts: 12

Re: Laptop fails to resume from inside Plasma X session

Still not working on 5.2.3-arch. iommu=pt has no effect for me.

Offline

#20 2019-07-27 16:38:15

loqs
Member
Registered: 2014-03-06
Posts: 8,169

Re: Laptop fails to resume from inside Plasma X session

The following assumes the base-devel group and git are installed and I recomend enabling Makepkg#Parallel_compilation to reduce build times

$ git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/linux"
$ cd packages/trunk
$ git checkout 752f19a3aeb77684fb3915a8958a8615c64fde37 #5.1.16.arch1-1
$ cd ../..
$ cp -r packages/trunk linux-git
$ rm -rf packages
$ cd linux-git
# Edit replace the PKGBUILD and 90-linux.hook with the ones below
$ makepkg -rsi #This is to confirm 5.1 as built on your system does not have the issue.  Update bootloader for new kernel if needed

$ cd linux-git/src/linux
$ git checkout v5.2
$ cd ../..
$ makepkg -ersi #This is to confirm 5.2 as built on your system does have the issue select the default option for all prompted options

$ cd linux-git/src/linux/
$ git bisect start
$ git bisect good v5.1
$ git bisect bad v5.2
$ cd ../..
$ makepkg -ersif

$ cd linux-git/src/linux/
$ git bisect $result #Substitue good or bad here
$ cd ../..
$ makepkg -ersif #Repeat these four lines and test the generated kernel until git has found the bad commit

PKGBUILD

# Maintainer: Boohbah <boohbah at gmail.com>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Thomas Baechler <thomas@archlinux.org>
# Contributor: Jonathan Chan <jyc@fastmail.fm>
# Contributor: misc <tastky@gmail.com>
# Contributor: NextHendrix <cjones12 at sheffield.ac.uk>

pkgbase=linux-git
_srcname=linux
pkgver=5.1.r0.ge93c9c99a629
pkgrel=1
arch=('x86_64')
url="https://www.kernel.org/"
license=('GPL2')
makedepends=('kmod' 'inetutils' 'bc' 'libelf')
options=('!strip')
source=('git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=v5.1'
        #'git+https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git#tag=X.X.Y'
  'config'   # the main kernel config file
  '60-linux.hook'  # pacman hook for depmod
  '90-linux.hook'  # pacman hook for initramfs regeneration
  'linux.preset'   # standard config files for mkinitcpio ramdisk
)

sha256sums=('SKIP'
            'd8eac4a183fbc5a6391a21beb9be1c9b24b7ff2deeb3cedb8b4635722ddcede9'
            'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21'
            '75f99f5239e03238f88d1a834c50043ec32b1dc568f2cc291b07d04718483919'
            'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65')

_kernelname=${pkgbase#linux}
: ${_kernelname:=-ARCH}

pkgver() {
  cd "${_srcname}"

  git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/'
}

prepare() {
  cd ${_srcname}

  cp -Tf ../config .config

  # set localversion to git commit
  sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
  sed -i "s|^.*CONFIG_LOCALVERSION_AUTO.*|CONFIG_LOCALVERSION_AUTO=y|" ./.config

  # don't run depmod on 'make install'. We'll do this ourselves in packaging
#  git tracks scripts/depmod.sh so do not change it when using the existing source dir for bisection
#  sed -i '2iexit 0' scripts/depmod.sh

  # get kernel version
  make prepare

  # load configuration
  # Configure the kernel. Replace the line below with one of your choice.
  #make menuconfig # CLI menu for configuration
  #make nconfig # new CLI menu for configuration
  #make xconfig # X-based configuration
  #make oldconfig # using old config from previous kernel version
  make olddefconfig # old config from previous kernel, defaults for new options
  # ... or manually edit .config
}

build() {
  cd ${_srcname}

  make bzImage modules
}

_package() {
  pkgdesc="The Linux kernel and modules (git version)"
  depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
  optdepends=('crda: to set the correct wireless channels of your country')
  backup=("etc/mkinitcpio.d/${pkgbase}.preset")
  install=linux.install

  cd ${_srcname}

  # get kernel version
  _kernver="$(make kernelrelease)"
  _kernver=${_kernver%-dirty} #https://bbs.archlinux.org/viewtopic.php?id=236702
  _basekernel="$(make kernelversion)"
  _basekernel=${_basekernel%.*}

  mkdir -p "${pkgdir}"/{boot,usr/lib/modules}
  make INSTALL_MOD_PATH="${pkgdir}/usr" modules_install
  cp arch/x86/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"

  # make room for external modules
  local _extramodules="extramodules-${_basekernel}${_kernelname}"
  ln -s "../${_extramodules}" "${pkgdir}/usr/lib/modules/${_kernver}/extramodules"

  # add real version for building modules and running depmod from hook
  echo "${_kernver}" |
    install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modules/${_extramodules}/version"

  # remove build and source links
  rm "${pkgdir}"/usr/lib/modules/${_kernver}/{source,build}

  # now we call depmod...
  depmod -b "${pkgdir}/usr" -F System.map "${_kernver}"

  # add vmlinux
  install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/build" -m644 vmlinux

  # sed expression for following substitutions
  local _subst="
    s|%PKGBASE%|${pkgbase}|g
    s|%KERNVER%|${_kernver}|g
    s|%EXTRAMODULES%|${_extramodules}|g
  "

  # hack to allow specifying an initially nonexisting install file
  sed "${_subst}" "${startdir}/${install}" > "${startdir}/${install}.pkg"
  true && install=${install}.pkg

  # install mkinitcpio preset file
  sed "${_subst}" ../linux.preset |
    install -Dm644 /dev/stdin "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"

  # install pacman hooks
  sed "${_subst}" ../60-linux.hook |
    install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/60-${pkgbase}.hook"
  sed "${_subst}" ../90-linux.hook |
    install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/90-${pkgbase}.hook"
}

_package-headers() {
  pkgdesc="Header files and scripts for building modules for Linux kernel (git version)"

  cd ${_srcname}
  local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build"

  install -Dt "${_builddir}" -m644 Makefile .config Module.symvers
  install -Dt "${_builddir}/kernel" -m644 kernel/Makefile

  mkdir "${_builddir}/.tmp_versions"

  cp -t "${_builddir}" -a include scripts

  install -Dt "${_builddir}/arch/x86" -m644 arch/x86/Makefile
  install -Dt "${_builddir}/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s

  cp -t "${_builddir}/arch/x86" -a arch/x86/include

  install -Dt "${_builddir}/drivers/md" -m644 drivers/md/*.h
  install -Dt "${_builddir}/net/mac80211" -m644 net/mac80211/*.h

  # http://bugs.archlinux.org/task/13146
  install -Dt "${_builddir}/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h

  # http://bugs.archlinux.org/task/20402
  install -Dt "${_builddir}/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h
  install -Dt "${_builddir}/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h
  install -Dt "${_builddir}/drivers/media/tuners" -m644 drivers/media/tuners/*.h

  # add xfs and shmem for aufs building
  mkdir -p "${_builddir}"/{fs/xfs,mm}

  # copy in Kconfig files
  find . -name Kconfig\* -exec install -Dm644 {} "${_builddir}/{}" \;

  # add objtool for external module building and enabled VALIDATION_STACK option
  install -Dt "${_builddir}/tools/objtool" tools/objtool/objtool

  # remove unneeded architectures
  local _arch
  for _arch in "${_builddir}"/arch/*/; do
    [[ ${_arch} == */x86/ ]] && continue
    rm -r "${_arch}"
  done

  # remove files already in linux-docs package
  rm -r "${_builddir}/Documentation"

  # remove now broken symlinks
  find -L "${_builddir}" -type l -printf 'Removing %P\n' -delete

  # Fix permissions
  chmod -R u=rwX,go=rX "${_builddir}"

  # strip scripts directory
  local _binary _strip
  while read -rd '' _binary; do
    case "$(file -bi "${_binary}")" in
      *application/x-sharedlib*)  _strip="${STRIP_SHARED}"   ;; # Libraries (.so)
      *application/x-archive*)    _strip="${STRIP_STATIC}"   ;; # Libraries (.a)
      *application/x-executable*) _strip="${STRIP_BINARIES}" ;; # Binaries
      *) continue ;;
    esac
    /usr/bin/strip ${_strip} "${_binary}"
  done < <(find "${_builddir}/scripts" -type f -perm -u+w -print0 2>/dev/null)
}

_package-docs() {
  pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel (git version)"

  cd ${_srcname}
  local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build"

  mkdir -p "${_builddir}"
  cp -t "${_builddir}" -a Documentation

  # Fix permissions
  chmod -R u=rwX,go=rX "${_builddir}"
}

pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
for _p in ${pkgname[@]}; do
  eval "package_${_p}() {
    $(declare -f "_package${_p#${pkgbase}}")
    _package${_p#${pkgbase}}
  }"
done

# vim:set ts=8 sts=2 sw=2 et:

90-linux.hook

[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = boot/vmlinuz-%PKGBASE%
Target = usr/lib/initcpio/*

[Action]
Description = Updating %PKGBASE% initcpios...
When = PostTransaction
Exec = /usr/bin/mkinitcpio -p %PKGBASE%

Edit:
Should note the bisection is only an option for users whose systems did resume correctly with 5.1.

Last edited by loqs (2019-07-27 16:49:49)

Offline

#21 2019-07-28 07:26:05

cspack
Member
Registered: 2016-09-01
Posts: 24

Re: Laptop fails to resume from inside Plasma X session

42f1a013300dca601d779b02ed6d41f7b2cea362 is the first bad commit
commit 42f1a013300dca601d779b02ed6d41f7b2cea362
Merge: 6e865c723014 f55be0be5b72
Author: Dave Airlie <airlied@redhat.com>
Date:   Wed Apr 24 11:24:22 2019 +1000

    Merge branch 'drm-next-5.2' of git://people.freedesktop.org/~agd5f/linux into drm-next
    
    - Add the amdgpu specific bits for timeline support
    - Add internal interfaces for xgmi pstate support
    - DC Z ordering fixes for planes
    - Add support for NV12 planes in DC
    - Add colorspace properties for planes in DC
    - eDP optimizations if the GOP driver already initialized eDP
    - DC bandwidth validation tracing support
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    From: Alex Deucher <alexdeucher@gmail.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20190419150034.3473-1-alexander.deucher@amd.com

 drivers/gpu/drm/amd/amdgpu/amdgpu.h                |  10 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c             | 152 ++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c            |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c          |  24 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c           |  13 +-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  | 745 +++++++++++++--------
 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c   |  24 +-
 drivers/gpu/drm/amd/display/dc/core/dc.c           |   2 +-
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c   |  33 +-
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c  |   6 +-
 drivers/gpu/drm/amd/display/dc/core/dc_stream.c    |   3 +-
 drivers/gpu/drm/amd/display/dc/dc.h                |  85 ++-
 drivers/gpu/drm/amd/display/dc/dc_link.h           |   2 +-
 drivers/gpu/drm/amd/display/dc/dce/dce_abm.c       |  18 +
 .../drm/amd/display/dc/dce100/dce100_resource.c    |  22 +-
 .../drm/amd/display/dc/dce110/dce110_resource.c    |  41 +-
 .../drm/amd/display/dc/dce112/dce112_resource.c    |  22 +-
 .../drm/amd/display/dc/dce112/dce112_resource.h    |   3 +-
 .../drm/amd/display/dc/dce120/dce120_resource.c    |  19 +-
 .../gpu/drm/amd/display/dc/dce80/dce80_resource.c  |  22 +-
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.h  |   9 +-
 .../gpu/drm/amd/display/dc/dcn10/dcn10_resource.c  |  20 +-
 drivers/gpu/drm/amd/display/dc/inc/core_types.h    |   3 +-
 drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h     |   3 +-
 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h     |   4 +
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c          |   9 +-
 include/uapi/drm/amdgpu_drm.h                      |   8 +
 27 files changed, 944 insertions(+), 361 deletions(-)

Offline

#22 2019-07-28 09:59:05

loqs
Member
Registered: 2014-03-06
Posts: 8,169

Re: Laptop fails to resume from inside Plasma X session

Thank you for the fast bisection cspack can you please post the git bisect log as well.

Offline

#23 2019-07-28 17:10:20

cspack
Member
Registered: 2016-09-01
Posts: 24

Re: Laptop fails to resume from inside Plasma X session

git bisect start
# good: [e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd] Linux 5.1
git bisect good e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd
# bad: [0ecfebd2b52404ae0c54a878c872bb93363ada36] Linux 5.2
git bisect bad 0ecfebd2b52404ae0c54a878c872bb93363ada36
# bad: [a2d635decbfa9c1e4ae15cb05b68b2559f7f827c] Merge tag 'drm-next-2019-05-09' of git://anongit.freedesktop.org/drm/drm
git bisect bad a2d635decbfa9c1e4ae15cb05b68b2559f7f827c
# good: [82efe439599439a5e1e225ce5740e6cfb777a7dd] Merge tag 'devicetree-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
git bisect good 82efe439599439a5e1e225ce5740e6cfb777a7dd
# good: [b3a5e648f5917ea508ecab9a629028b186d38eae] Merge tag 'tty-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
git bisect good b3a5e648f5917ea508ecab9a629028b186d38eae
# good: [27eaa4927dc3be669ed70670241597ac73595caf] drm/amd/display: Add power down display on boot flag
git bisect good 27eaa4927dc3be669ed70670241597ac73595caf
# good: [e7a1414f9dc3498c4c35b9ca266d539e8bccab53] Merge tag 'media/v5.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
git bisect good e7a1414f9dc3498c4c35b9ca266d539e8bccab53
# bad: [422449238e9853458283beffed77562d4b40a2fa] Merge branch 'drm-next-5.2' of git://people.freedesktop.org/~agd5f/linux into drm-next
git bisect bad 422449238e9853458283beffed77562d4b40a2fa
# good: [ad2c467aa92e283e9e8009bb9eb29a5c6a2d1217] drm/i915: Update DRIVER_DATE to 20190417
git bisect good ad2c467aa92e283e9e8009bb9eb29a5c6a2d1217
# bad: [70b5f09e4389c789263c6d79c539b8378e3af3bc] Merge tag 'drm-msm-next-2019-04-21' of https://gitlab.freedesktop.org/drm/msm into drm-next
git bisect bad 70b5f09e4389c789263c6d79c539b8378e3af3bc
# good: [8d8f6f704495b1135ef77b7860d833fda97ea841] Merge tag 'drm-misc-next-2019-04-18' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
git bisect good 8d8f6f704495b1135ef77b7860d833fda97ea841
# good: [b94a6e3737ac7b5c67570cbbd02858b9aec8fbf1] drm/msm/a6xx: Remove unwanted regulator code
git bisect good b94a6e3737ac7b5c67570cbbd02858b9aec8fbf1
# good: [abccb9fe326743b72c8099d5cc039e9038bc50da] drm/msm/a6xx: Add zap shader load
git bisect good abccb9fe326743b72c8099d5cc039e9038bc50da
# good: [11c632e1cfd3dcb49f2d04625d31c818a4c3b426] drm/tegra: sor: Implement acquire/release for reset
git bisect good 11c632e1cfd3dcb49f2d04625d31c818a4c3b426
# bad: [42f1a013300dca601d779b02ed6d41f7b2cea362] Merge branch 'drm-next-5.2' of git://people.freedesktop.org/~agd5f/linux into drm-next
git bisect bad 42f1a013300dca601d779b02ed6d41f7b2cea362
# good: [6e865c7230140126cbac62e0aef5807108e46e63] Merge tag 'drm/tegra/for-5.2-rc1' of git://anongit.freedesktop.org/tegra/linux into drm-next
git bisect good 6e865c7230140126cbac62e0aef5807108e46e63
# first bad commit: [42f1a013300dca601d779b02ed6d41f7b2cea362] Merge branch 'drm-next-5.2' of git://people.freedesktop.org/~agd5f/linux into drm-next

Offline

#24 2019-07-28 17:35:58

loqs
Member
Registered: 2014-03-06
Posts: 8,169

Re: Laptop fails to resume from inside Plasma X session

@cspack can you try the following please

$ cd linux-git
$ cp -r src src.bak #preserve the src directory in bisection state
$ cd src
$ git bisect reset v5.2
$ git config merge.renamelimit 100000
$ git revert -n 2624dd154bcc53ac2de16ecae9746ba867b6ca70
$ cd ../..
$ makepkg -ersi #test kernel again

Offline

#25 2019-07-28 18:34:10

cspack
Member
Registered: 2016-09-01
Posts: 24

Re: Laptop fails to resume from inside Plasma X session

@loqs I'm getting an error in packaging...

  DEPMOD  5.2.0-git-dirty
ln: failed to create symbolic link '/home/ted/src/linux-git/pkg/linux-git/usr/lib/modules/5.2.0-git/extramodules': No such file or directory
==> ERROR: A failure occurred in package_linux-git().
    Aborting...

Offline

Board footer

Powered by FluxBB