You are not logged in.

#26 2019-07-28 18:45:02

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: Laptop fails to resume from inside Plasma X session

Forgot about git detecting none commited changes.
If you have not configured git with a commit identity please add one [1]
Then

cd linux-git/src/linux
git commit -am "dummy commit message"
cd ../..
makepkg -ersi --repackage

[1] https://git-scm.com/book/en/v2/Getting- … -Git-Setup

Offline

#27 2019-07-28 19:28:19

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

Re: Laptop fails to resume from inside Plasma X session

Ok, successfully built now but the original problem is still present with this kernel.

[   71.994573] PM: suspend entry (deep)
[   72.018146] Filesystems sync: 0.023 seconds
[   72.018431] Freezing user space processes ... (elapsed 0.001 seconds) done.
[   72.020100] OOM killer disabled.
[   72.020100] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   72.021429] printk: Suspending console(s) (use no_console_suspend to debug)
[   72.021729] wlan0: deauthenticating from e8:ad:a6:39:21:7f by local choice (Reason: 3=DEAUTH_LEAVING)
[   72.075013] sd 1:0:0:0: [sda] Synchronizing SCSI cache
[   72.078811] sd 1:0:0:0: [sda] Stopping disk
[   72.125556] WARNING: CPU: 6 PID: 2029 at kernel/irq/chip.c:210 irq_startup+0xdf/0xf0
[   72.125558] Modules linked in: tun fuse ccm algif_aead des_generic algif_skcipher cmac md4 algif_hash af_alg arc4 hid_logitech_hidpp amdgpu edac_mce_amd kvm_amd ccp nls_iso8859_1 nls_cp437 vfat bonding kvm fat ath10k_pci irqbypass uvcvideo ath10k_core hid_logitech_dj cdc_ether usbnet videobuf2_vmalloc videobuf2_memops r8152 videobuf2_v4l2 videobuf2_common mii crct10dif_pclmul ath videodev crc32_pclmul mac80211 amd_iommu_v2 wmi_bmof gpu_sched media ghash_clmulni_intel i2c_algo_bit ttm snd_hda_codec_realtek drm_kms_helper snd_hda_codec_generic btusb btrtl ledtrig_audio snd_hda_codec_hdmi btbcm btintel snd_hda_intel drm bluetooth joydev snd_hda_codec input_leds mousedev aesni_intel snd_hda_core aes_x86_64 cfg80211 crypto_simd snd_hwdep cryptd ecdh_generic pcspkr glue_helper k10temp ecc snd_pcm agpgart syscopyarea sysfillrect sysimgblt snd_timer fb_sys_fops rtsx_pci_ms snd sp5100_tco memstick ideapad_laptop tpm_crb sparse_keymap i2c_piix4 soundcore snd_pci_acp3x rfkill wmi battery tpm_tis ac
[   72.125625]  tpm_tis_core 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 serio_raw mmc_core atkbd libps2 ahci libahci libata crc32c_intel xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[   72.125654] CPU: 6 PID: 2029 Comm: kworker/u32:19 Not tainted 5.2.0-git-00001-gee0f4addf618 #18
[   72.125656] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[   72.125662] Workqueue: events_unbound async_run_entry_fn
[   72.125667] RIP: 0010:irq_startup+0xdf/0xf0
[   72.125670] Code: f6 4c 89 e7 e8 12 41 00 00 85 c0 75 21 4c 89 e7 31 d2 4c 89 ee e8 01 ce 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
[   72.125672] RSP: 0018:ffffb5750a86bc50 EFLAGS: 00010002
[   72.125675] RAX: 0000000000000140 RBX: 0000000000000001 RCX: 0000000000000140
[   72.125676] RDX: 0000000000000000 RSI: ffffffffb0941540 RDI: ffff9afb78a92418
[   72.125677] RBP: ffff9afb78a92400 R08: 0000000000000000 R09: 0000000000000004
[   72.125679] R10: 0000000000000000 R11: ffffffffb08516c8 R12: 0000000000000001
[   72.125680] R13: ffff9afb78a92418 R14: 0000000000000000 R15: ffff9afb785a8000
[   72.125682] FS:  0000000000000000(0000) GS:ffff9afb7c980000(0000) knlGS:0000000000000000
[   72.125683] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   72.125685] CR2: 000055b5d3f333f0 CR3: 00000004618dc000 CR4: 00000000003406e0
[   72.125687] Call Trace:
[   72.125696]  enable_irq+0x4b/0x90
[   72.125702]  nvme_poll_irqdisable+0x20c/0x280
[   72.125707]  __nvme_disable_io_queues+0x19d/0x1d0
[   72.125710]  ? nvme_del_queue_end+0x20/0x20
[   72.125715]  nvme_dev_disable+0x15c/0x210
[   72.125719]  nvme_suspend+0x13/0x20
[   72.125723]  pci_pm_suspend+0x72/0x130
[   72.125726]  ? pci_pm_freeze+0xd0/0xd0
[   72.125730]  dpm_run_callback+0x4f/0x180
[   72.125734]  __device_suspend+0x121/0x4e0
[   72.125737]  async_suspend+0x1b/0x90
[   72.125740]  async_run_entry_fn+0x37/0x140
[   72.125745]  process_one_work+0x1d1/0x3e0
[   72.125748]  worker_thread+0x4a/0x3d0
[   72.125752]  kthread+0xfb/0x130
[   72.125754]  ? process_one_work+0x3e0/0x3e0
[   72.125757]  ? kthread_park+0x90/0x90
[   72.125761]  ret_from_fork+0x22/0x40
[   72.125766] ---[ end trace 3fdbd4c5ada0380a ]---
[   73.035011] bond1: link status definitely down for interface wlan0, disabling it
[   76.062362] kfd2kgd: cp queue preemption time out.
[   76.290285] ACPI: EC: interrupt blocked
[   76.328676] ACPI: Preparing to enter system sleep state S3
[   76.330421] ACPI: EC: event blocked
[   76.330423] ACPI: EC: EC stopped
[   76.330424] PM: Saving platform NVS memory
[   76.330562] Disabling non-boot CPUs ...
[   76.332356] smpboot: CPU 1 is now offline
[   76.336162] smpboot: CPU 2 is now offline
[   76.339609] smpboot: CPU 3 is now offline
[   76.342868] smpboot: CPU 4 is now offline
[   76.346409] smpboot: CPU 5 is now offline
[   76.349761] smpboot: CPU 6 is now offline
[   76.353210] smpboot: CPU 7 is now offline
[   76.355517] ACPI: Low-level resume complete
[   76.355572] ACPI: EC: EC started
[   76.355573] PM: Restoring platform NVS memory
[   76.414154] Enabling non-boot CPUs ...
[   76.414213] x86: Booting SMP configuration:
[   76.414213] smpboot: Booting Node 0 Processor 1 APIC 0x1
[   76.414437] microcode: CPU1: patch_level=0x08108102
[   76.417060] CPU1 is up
[   76.417095] smpboot: Booting Node 0 Processor 2 APIC 0x2
[   76.417337] microcode: CPU2: patch_level=0x08108102
[   76.419849] CPU2 is up
[   76.419868] smpboot: Booting Node 0 Processor 3 APIC 0x3
[   76.420083] microcode: CPU3: patch_level=0x08108102
[   76.422600] CPU3 is up
[   76.422614] smpboot: Booting Node 0 Processor 4 APIC 0x4
[   76.423345] microcode: CPU4: patch_level=0x08108102
[   76.425919] CPU4 is up
[   76.425943] smpboot: Booting Node 0 Processor 5 APIC 0x5
[   76.426152] microcode: CPU5: patch_level=0x08108102
[   76.428705] CPU5 is up
[   76.428720] smpboot: Booting Node 0 Processor 6 APIC 0x6
[   76.428963] microcode: CPU6: patch_level=0x08108102
[   76.431713] CPU6 is up
[   76.431747] smpboot: Booting Node 0 Processor 7 APIC 0x7
[   76.431965] microcode: CPU7: patch_level=0x08108102
[   76.434662] CPU7 is up
[   76.435561] ACPI: Waking up from system sleep state S3
[   76.550474] ACPI: EC: interrupt unblocked
[   76.602133] ACPI: EC: event unblocked
[   76.605039] [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
[   76.605072] [drm] PSP is resuming...
[   76.612396] sd 1:0:0:0: [sda] Starting disk
[   76.625102] [drm] reserve 0x400000 from 0xf400c00000 for PSP TMR SIZE
[   76.633962] [drm] psp command failed and response status is (-65529)
[   76.800980] ath10k_pci 0000:02:00.0: unsupported HTC service id: 1536
[   76.816752] nvme nvme0: 16/0/0 default/read/poll queues
[   76.819235] amdgpu: [powerplay] dpm has been enabled
[   76.846794] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[   76.846808] amdgpu 0000:04:00.0: ring gfx uses VM inv eng 0 on hub 0
[   76.846809] amdgpu 0000:04:00.0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[   76.846810] amdgpu 0000:04:00.0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[   76.846811] amdgpu 0000:04:00.0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[   76.846812] amdgpu 0000:04:00.0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[   76.846813] amdgpu 0000:04:00.0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[   76.846814] amdgpu 0000:04:00.0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[   76.846814] amdgpu 0000:04:00.0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[   76.846815] amdgpu 0000:04:00.0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[   76.846816] amdgpu 0000:04:00.0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[   76.846817] amdgpu 0000:04:00.0: ring sdma0 uses VM inv eng 0 on hub 1
[   76.846818] amdgpu 0000:04:00.0: ring vcn_dec uses VM inv eng 1 on hub 1
[   76.846818] amdgpu 0000:04:00.0: ring vcn_enc0 uses VM inv eng 4 on hub 1
[   76.846819] amdgpu 0000:04:00.0: ring vcn_enc1 uses VM inv eng 5 on hub 1
[   76.846820] amdgpu 0000:04:00.0: ring vcn_jpeg uses VM inv eng 6 on hub 1
[   76.847073] usb 3-2: reset full-speed USB device number 3 using xhci_hcd
[   76.858634] usb 1-4: reset high-speed USB device number 3 using xhci_hcd
[   77.118818] usb 3-1: reset full-speed USB device number 2 using xhci_hcd
[   77.172014] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[   77.307307] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[   77.307915] ata2.00: supports DRM functions and may not be fully accessible
[   77.332622] ata2.00: supports DRM functions and may not be fully accessible
[   77.356943] ata2.00: configured for UDMA/133
[   77.357001] ata2.00: Enabling discard_zeroes_data
[   77.690730] usb 2-1.1: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[   77.744643] acpi LNXPOWER:00: Turning OFF
[   77.744694] OOM killer enabled.
[   77.744695] Restarting tasks ... done.
[   77.760771] PM: suspend exit
[   77.772481] audit: type=1130 audit(1564340852.350:40): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   77.772487] audit: type=1131 audit(1564340852.350:41): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   77.783460] audit: type=1130 audit(1564340852.363:42): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   77.798268] usbcore: registered new interface driver ax88179_178a
[   77.800234] [drm] pstate TEST_DEBUG_DATA: 0xB7F60000
[   77.800379] WARNING: CPU: 2 PID: 2035 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   77.800380] 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 edac_mce_amd kvm_amd ccp nls_iso8859_1 nls_cp437 vfat bonding kvm fat ath10k_pci irqbypass uvcvideo ath10k_core hid_logitech_dj cdc_ether usbnet videobuf2_vmalloc videobuf2_memops r8152 videobuf2_v4l2 videobuf2_common mii crct10dif_pclmul ath videodev crc32_pclmul mac80211 amd_iommu_v2 wmi_bmof gpu_sched media ghash_clmulni_intel i2c_algo_bit ttm snd_hda_codec_realtek drm_kms_helper snd_hda_codec_generic btusb btrtl ledtrig_audio snd_hda_codec_hdmi btbcm btintel snd_hda_intel drm bluetooth joydev snd_hda_codec input_leds mousedev aesni_intel snd_hda_core aes_x86_64 cfg80211 crypto_simd snd_hwdep cryptd ecdh_generic pcspkr glue_helper k10temp ecc snd_pcm agpgart syscopyarea sysfillrect sysimgblt snd_timer fb_sys_fops rtsx_pci_ms snd sp5100_tco memstick ideapad_laptop tpm_crb sparse_keymap i2c_piix4 soundcore snd_pci_acp3x rfkill wmi battery
[   77.800446]  tpm_tis ac tpm_tis_core 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 serio_raw mmc_core atkbd libps2 ahci libahci libata crc32c_intel xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[   77.800484] CPU: 2 PID: 2035 Comm: kworker/u32:25 Tainted: G        W         5.2.0-git-00001-gee0f4addf618 #18
[   77.800486] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[   77.800503] Workqueue: events_unbound commit_work [drm_kms_helper]
[   77.800583] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   77.800586] Code: 0f 1f 44 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 a3 23 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
[   77.800588] RSP: 0018:ffffb5750aa5bb58 EFLAGS: 00010246
[   77.800590] RAX: 0000000000000000 RBX: ffff9afb74a1c000 RCX: 0000000000000000
[   77.800591] RDX: 0000000000000000 RSI: ffff9afb7c8975d8 RDI: 00000000ffffffff
[   77.800592] RBP: ffff9afb74a1c000 R08: 00000000000004a2 R09: 0000000000000001
[   77.800593] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9afac3260188
[   77.800594] R13: 0000000000000000 R14: ffff9afac3260188 R15: 0000000000000004
[   77.800595] FS:  0000000000000000(0000) GS:ffff9afb7c880000(0000) knlGS:0000000000000000
[   77.800596] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   77.800597] CR2: 00007f861c05a000 CR3: 000000047bec8000 CR4: 00000000003406e0
[   77.800598] Call Trace:
[   77.800678]  dcn10_pipe_control_lock.part.0+0x69/0x70 [amdgpu]
[   77.800751]  dc_commit_updates_for_stream+0x81c/0xc10 [amdgpu]
[   77.800832]  amdgpu_dm_atomic_commit_tail+0xa7e/0x19b0 [amdgpu]
[   77.800844]  ? __switch_to_asm+0x40/0x70
[   77.800846]  ? __switch_to_asm+0x34/0x70
[   77.800848]  ? __switch_to_asm+0x40/0x70
[   77.800849]  ? __switch_to_asm+0x34/0x70
[   77.800851]  ? __switch_to_asm+0x40/0x70
[   77.800852]  ? __switch_to_asm+0x34/0x70
[   77.800854]  ? __switch_to_asm+0x40/0x70
[   77.800855]  ? __switch_to_asm+0x34/0x70
[   77.800857]  ? __switch_to_asm+0x40/0x70
[   77.800859]  ? _raw_spin_lock+0x13/0x30
[   77.800860]  ? _raw_spin_unlock+0x16/0x30
[   77.800867]  ? __switch_to_xtra+0x3fd/0x5d0
[   77.800873]  ? preempt_count_add+0x79/0xb0
[   77.800876]  ? _raw_spin_lock_irq+0x1a/0x40
[   77.800877]  ? _raw_spin_unlock_irq+0x1d/0x30
[   77.800881]  ? wait_for_common+0x129/0x170
[   77.800883]  ? _raw_spin_unlock_irq+0x1d/0x30
[   77.800885]  ? finish_task_switch+0x84/0x2d0
[   77.800903]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[   77.800910]  commit_tail+0x3c/0x70 [drm_kms_helper]
[   77.800916]  process_one_work+0x1d1/0x3e0
[   77.800921]  worker_thread+0x4a/0x3d0
[   77.800924]  kthread+0xfb/0x130
[   77.800926]  ? process_one_work+0x3e0/0x3e0
[   77.800927]  ? kthread_park+0x90/0x90
[   77.800930]  ret_from_fork+0x22/0x40
[   77.800935] ---[ end trace 3fdbd4c5ada0380b ]---
[   77.801820] [drm] pstate TEST_DEBUG_DATA: 0x37F60000
[   77.801935] WARNING: CPU: 2 PID: 2035 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   77.801937] 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 edac_mce_amd kvm_amd ccp nls_iso8859_1 nls_cp437 vfat bonding kvm fat ath10k_pci irqbypass uvcvideo ath10k_core hid_logitech_dj cdc_ether usbnet videobuf2_vmalloc videobuf2_memops r8152 videobuf2_v4l2 videobuf2_common mii crct10dif_pclmul ath videodev crc32_pclmul mac80211 amd_iommu_v2 wmi_bmof gpu_sched media ghash_clmulni_intel i2c_algo_bit ttm snd_hda_codec_realtek drm_kms_helper snd_hda_codec_generic btusb btrtl ledtrig_audio snd_hda_codec_hdmi btbcm btintel snd_hda_intel drm bluetooth joydev snd_hda_codec input_leds mousedev aesni_intel snd_hda_core aes_x86_64 cfg80211 crypto_simd snd_hwdep cryptd ecdh_generic pcspkr glue_helper k10temp ecc snd_pcm agpgart syscopyarea sysfillrect sysimgblt snd_timer fb_sys_fops rtsx_pci_ms snd sp5100_tco memstick ideapad_laptop tpm_crb sparse_keymap i2c_piix4 soundcore snd_pci_acp3x rfkill wmi battery
[   77.801987]  tpm_tis ac tpm_tis_core 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 serio_raw mmc_core atkbd libps2 ahci libahci libata crc32c_intel xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[   77.802009] CPU: 2 PID: 2035 Comm: kworker/u32:25 Tainted: G        W         5.2.0-git-00001-gee0f4addf618 #18
[   77.802010] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[   77.802024] Workqueue: events_unbound commit_work [drm_kms_helper]
[   77.802100] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   77.802102] Code: 0f 1f 44 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 a3 23 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
[   77.802103] RSP: 0018:ffffb5750aa5bb78 EFLAGS: 00010246
[   77.802105] RAX: 0000000000000000 RBX: ffff9afb74a1c000 RCX: 0000000000000000
[   77.802106] RDX: 0000000000000000 RSI: ffff9afb7c8975d8 RDI: 00000000ffffffff
[   77.802106] RBP: ffffb5750aa5bc00 R08: 00000000000004d3 R09: 0000000000000001
[   77.802107] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9afb74a1c000
[   77.802108] R13: 0000000000000000 R14: ffff9afac3260188 R15: 0000000000000004
[   77.802110] FS:  0000000000000000(0000) GS:ffff9afb7c880000(0000) knlGS:0000000000000000
[   77.802111] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   77.802112] CR2: 0000562040f292e0 CR3: 0000000402cca000 CR4: 00000000003406e0
[   77.802113] Call Trace:
[   77.802189]  dc_commit_updates_for_stream+0x81c/0xc10 [amdgpu]
[   77.802266]  amdgpu_dm_atomic_commit_tail+0xa7e/0x19b0 [amdgpu]
[   77.802274]  ? __switch_to_asm+0x40/0x70
[   77.802275]  ? __switch_to_asm+0x34/0x70
[   77.802276]  ? __switch_to_asm+0x40/0x70
[   77.802278]  ? __switch_to_asm+0x34/0x70
[   77.802279]  ? __switch_to_asm+0x40/0x70
[   77.802280]  ? __switch_to_asm+0x34/0x70
[   77.802282]  ? __switch_to_asm+0x40/0x70
[   77.802283]  ? __switch_to_asm+0x34/0x70
[   77.802285]  ? __switch_to_asm+0x40/0x70
[   77.802287]  ? _raw_spin_lock+0x13/0x30
[   77.802288]  ? _raw_spin_unlock+0x16/0x30
[   77.802291]  ? __switch_to_xtra+0x3fd/0x5d0
[   77.802294]  ? preempt_count_add+0x79/0xb0
[   77.802295]  ? _raw_spin_lock_irq+0x1a/0x40
[   77.802297]  ? _raw_spin_unlock_irq+0x1d/0x30
[   77.802299]  ? wait_for_common+0x129/0x170
[   77.802301]  ? _raw_spin_unlock_irq+0x1d/0x30
[   77.802302]  ? finish_task_switch+0x84/0x2d0
[   77.802311]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[   77.802320]  commit_tail+0x3c/0x70 [drm_kms_helper]
[   77.802323]  process_one_work+0x1d1/0x3e0
[   77.802326]  worker_thread+0x4a/0x3d0
[   77.802328]  kthread+0xfb/0x130
[   77.802330]  ? process_one_work+0x3e0/0x3e0
[   77.802332]  ? kthread_park+0x90/0x90
[   77.802334]  ret_from_fork+0x22/0x40
[   77.802337] ---[ end trace 3fdbd4c5ada0380c ]---
[   77.802862] [drm] pstate TEST_DEBUG_DATA: 0x37F60000
[   77.802960] WARNING: CPU: 2 PID: 2035 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   77.802961] 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 edac_mce_amd kvm_amd ccp nls_iso8859_1 nls_cp437 vfat bonding kvm fat ath10k_pci irqbypass uvcvideo ath10k_core hid_logitech_dj cdc_ether usbnet videobuf2_vmalloc videobuf2_memops r8152 videobuf2_v4l2 videobuf2_common mii crct10dif_pclmul ath videodev crc32_pclmul mac80211 amd_iommu_v2 wmi_bmof gpu_sched media ghash_clmulni_intel i2c_algo_bit ttm snd_hda_codec_realtek drm_kms_helper snd_hda_codec_generic btusb btrtl ledtrig_audio snd_hda_codec_hdmi btbcm btintel snd_hda_intel drm bluetooth joydev snd_hda_codec input_leds mousedev aesni_intel snd_hda_core aes_x86_64 cfg80211 crypto_simd snd_hwdep cryptd ecdh_generic pcspkr glue_helper k10temp ecc snd_pcm agpgart syscopyarea sysfillrect sysimgblt snd_timer fb_sys_fops rtsx_pci_ms snd sp5100_tco memstick ideapad_laptop tpm_crb sparse_keymap i2c_piix4 soundcore snd_pci_acp3x rfkill wmi battery
[   77.803005]  tpm_tis ac tpm_tis_core 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 serio_raw mmc_core atkbd libps2 ahci libahci libata crc32c_intel xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[   77.803024] CPU: 2 PID: 2035 Comm: kworker/u32:25 Tainted: G        W         5.2.0-git-00001-gee0f4addf618 #18
[   77.803026] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[   77.803038] Workqueue: events_unbound commit_work [drm_kms_helper]
[   77.803117] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   77.803119] Code: 0f 1f 44 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 a3 23 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
[   77.803121] RSP: 0018:ffffb5750aa5bb58 EFLAGS: 00010246
[   77.803123] RAX: 0000000000000000 RBX: ffff9afb74a1c000 RCX: 0000000000000000
[   77.803124] RDX: 0000000000000000 RSI: 0000000000000086 RDI: 00000000ffffffff
[   77.803125] RBP: ffff9afb74a1c000 R08: 0000000000000503 R09: 0000000000000001
[   77.803126] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9afac3260188
[   77.803127] R13: 0000000000000000 R14: ffff9afac3260188 R15: ffff9afac32612e8
[   77.803128] FS:  0000000000000000(0000) GS:ffff9afb7c880000(0000) knlGS:0000000000000000
[   77.803129] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   77.803131] CR2: 0000562040f292e0 CR3: 0000000402cca000 CR4: 00000000003406e0
[   77.803132] Call Trace:
[   77.803214]  dcn10_pipe_control_lock.part.0+0x69/0x70 [amdgpu]
[   77.803291]  dc_commit_updates_for_stream+0x8eb/0xc10 [amdgpu]
[   77.803374]  amdgpu_dm_atomic_commit_tail+0xa7e/0x19b0 [amdgpu]
[   77.803381]  ? __switch_to_asm+0x40/0x70
[   77.803383]  ? __switch_to_asm+0x34/0x70
[   77.803384]  ? __switch_to_asm+0x40/0x70
[   77.803385]  ? __switch_to_asm+0x34/0x70
[   77.803387]  ? __switch_to_asm+0x40/0x70
[   77.803388]  ? __switch_to_asm+0x34/0x70
[   77.803389]  ? __switch_to_asm+0x40/0x70
[   77.803390]  ? __switch_to_asm+0x34/0x70
[   77.803392]  ? __switch_to_asm+0x40/0x70
[   77.803394]  ? _raw_spin_lock+0x13/0x30
[   77.803395]  ? _raw_spin_unlock+0x16/0x30
[   77.803398]  ? __switch_to_xtra+0x3fd/0x5d0
[   77.803400]  ? preempt_count_add+0x79/0xb0
[   77.803402]  ? _raw_spin_lock_irq+0x1a/0x40
[   77.803403]  ? _raw_spin_unlock_irq+0x1d/0x30
[   77.803406]  ? wait_for_common+0x129/0x170
[   77.803408]  ? _raw_spin_unlock_irq+0x1d/0x30
[   77.803409]  ? finish_task_switch+0x84/0x2d0
[   77.803419]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[   77.803427]  commit_tail+0x3c/0x70 [drm_kms_helper]
[   77.803430]  process_one_work+0x1d1/0x3e0
[   77.803433]  worker_thread+0x4a/0x3d0
[   77.803436]  kthread+0xfb/0x130
[   77.803438]  ? process_one_work+0x3e0/0x3e0
[   77.803439]  ? kthread_park+0x90/0x90
[   77.803441]  ret_from_fork+0x22/0x40
[   77.803444] ---[ end trace 3fdbd4c5ada0380d ]---
[   77.803970] [drm] pstate TEST_DEBUG_DATA: 0x37F60000
[   77.804061] WARNING: CPU: 2 PID: 2035 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   77.804062] 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 edac_mce_amd kvm_amd ccp nls_iso8859_1 nls_cp437 vfat bonding kvm fat ath10k_pci irqbypass uvcvideo ath10k_core hid_logitech_dj cdc_ether usbnet videobuf2_vmalloc videobuf2_memops r8152 videobuf2_v4l2 videobuf2_common mii crct10dif_pclmul ath videodev crc32_pclmul mac80211 amd_iommu_v2 wmi_bmof gpu_sched media ghash_clmulni_intel i2c_algo_bit ttm snd_hda_codec_realtek drm_kms_helper snd_hda_codec_generic btusb btrtl ledtrig_audio snd_hda_codec_hdmi btbcm btintel snd_hda_intel drm bluetooth joydev snd_hda_codec input_leds mousedev aesni_intel snd_hda_core aes_x86_64 cfg80211 crypto_simd snd_hwdep cryptd ecdh_generic pcspkr glue_helper k10temp ecc snd_pcm agpgart syscopyarea sysfillrect sysimgblt snd_timer fb_sys_fops rtsx_pci_ms snd sp5100_tco memstick ideapad_laptop tpm_crb sparse_keymap i2c_piix4 soundcore snd_pci_acp3x rfkill wmi battery
[   77.804104]  tpm_tis ac tpm_tis_core 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 serio_raw mmc_core atkbd libps2 ahci libahci libata crc32c_intel xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[   77.804124] CPU: 2 PID: 2035 Comm: kworker/u32:25 Tainted: G        W         5.2.0-git-00001-gee0f4addf618 #18
[   77.804125] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[   77.804136] Workqueue: events_unbound commit_work [drm_kms_helper]
[   77.804209] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   77.804211] Code: 0f 1f 44 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 a3 23 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
[   77.804213] RSP: 0018:ffffb5750aa5bb78 EFLAGS: 00010246
[   77.804214] RAX: 0000000000000000 RBX: ffff9afb74a1c000 RCX: 0000000000000000
[   77.804214] RDX: 0000000000000000 RSI: ffff9afb7c8975d8 RDI: 00000000ffffffff
[   77.804215] RBP: ffffb5750aa5bc00 R08: 0000000000000534 R09: 0000000000000001
[   77.804216] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9afb74a1c000
[   77.804217] R13: 0000000000000000 R14: ffff9afac3260188 R15: ffff9afac32612e8
[   77.804218] FS:  0000000000000000(0000) GS:ffff9afb7c880000(0000) knlGS:0000000000000000
[   77.804219] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   77.804219] CR2: 0000562040f292e0 CR3: 000000022500a000 CR4: 00000000003406e0
[   77.804220] Call Trace:
[   77.804286]  dc_commit_updates_for_stream+0x8eb/0xc10 [amdgpu]
[   77.804360]  amdgpu_dm_atomic_commit_tail+0xa7e/0x19b0 [amdgpu]
[   77.804370]  ? __switch_to_asm+0x40/0x70
[   77.804372]  ? __switch_to_asm+0x34/0x70
[   77.804373]  ? __switch_to_asm+0x40/0x70
[   77.804374]  ? __switch_to_asm+0x34/0x70
[   77.804375]  ? __switch_to_asm+0x40/0x70
[   77.804376]  ? __switch_to_asm+0x34/0x70
[   77.804378]  ? __switch_to_asm+0x40/0x70
[   77.804379]  ? __switch_to_asm+0x34/0x70
[   77.804380]  ? __switch_to_asm+0x40/0x70
[   77.804382]  ? _raw_spin_lock+0x13/0x30
[   77.804383]  ? _raw_spin_unlock+0x16/0x30
[   77.804386]  ? __switch_to_xtra+0x3fd/0x5d0
[   77.804389]  ? preempt_count_add+0x79/0xb0
[   77.804390]  ? _raw_spin_lock_irq+0x1a/0x40
[   77.804392]  ? _raw_spin_unlock_irq+0x1d/0x30
[   77.804394]  ? wait_for_common+0x129/0x170
[   77.804396]  ? _raw_spin_unlock_irq+0x1d/0x30
[   77.804397]  ? finish_task_switch+0x84/0x2d0
[   77.804406]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[   77.804412]  commit_tail+0x3c/0x70 [drm_kms_helper]
[   77.804416]  process_one_work+0x1d1/0x3e0
[   77.804419]  worker_thread+0x4a/0x3d0
[   77.804421]  kthread+0xfb/0x130
[   77.804423]  ? process_one_work+0x3e0/0x3e0
[   77.804424]  ? kthread_park+0x90/0x90
[   77.804426]  ret_from_fork+0x22/0x40
[   77.804431] ---[ end trace 3fdbd4c5ada0380e ]---
[   78.027932] [drm] pstate TEST_DEBUG_DATA: 0x37F60000
[   78.028090] WARNING: CPU: 2 PID: 2021 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   78.028091] 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 edac_mce_amd kvm_amd ccp nls_iso8859_1 nls_cp437 vfat bonding kvm fat ath10k_pci irqbypass uvcvideo ath10k_core hid_logitech_dj cdc_ether usbnet videobuf2_vmalloc videobuf2_memops r8152 videobuf2_v4l2 videobuf2_common mii crct10dif_pclmul ath videodev crc32_pclmul mac80211 amd_iommu_v2 wmi_bmof gpu_sched media ghash_clmulni_intel i2c_algo_bit ttm snd_hda_codec_realtek drm_kms_helper snd_hda_codec_generic btusb btrtl ledtrig_audio snd_hda_codec_hdmi btbcm btintel snd_hda_intel drm bluetooth joydev snd_hda_codec input_leds mousedev aesni_intel snd_hda_core aes_x86_64 cfg80211 crypto_simd snd_hwdep cryptd ecdh_generic pcspkr glue_helper k10temp ecc snd_pcm agpgart syscopyarea sysfillrect sysimgblt snd_timer fb_sys_fops rtsx_pci_ms snd sp5100_tco memstick ideapad_laptop tpm_crb sparse_keymap i2c_piix4 soundcore snd_pci_acp3x rfkill wmi battery
[   78.028150]  tpm_tis ac tpm_tis_core 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 serio_raw mmc_core atkbd libps2 ahci libahci libata crc32c_intel xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[   78.028180] CPU: 2 PID: 2021 Comm: kworker/u32:11 Tainted: G        W         5.2.0-git-00001-gee0f4addf618 #18
[   78.028182] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[   78.028198] Workqueue: events_unbound commit_work [drm_kms_helper]
[   78.028327] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   78.028331] Code: 0f 1f 44 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 a3 23 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
[   78.028333] RSP: 0018:ffffb5750a2dbb58 EFLAGS: 00010246
[   78.028336] RAX: 0000000000000000 RBX: ffff9afb74a1c000 RCX: 0000000000000000
[   78.028338] RDX: 0000000000000000 RSI: ffff9afb7c8975d8 RDI: 00000000ffffffff
[   78.028339] RBP: ffff9afb74a1c000 R08: 0000000000000564 R09: 0000000000000001
[   78.028341] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9afac3260188
[   78.028342] R13: 0000000000000000 R14: ffff9afac3260188 R15: 0000000000000004
[   78.028345] FS:  0000000000000000(0000) GS:ffff9afb7c880000(0000) knlGS:0000000000000000
[   78.028347] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   78.028348] CR2: 00007fb4bb7651d0 CR3: 000000049bca6000 CR4: 00000000003406e0
[   78.028350] Call Trace:
[   78.028482]  dcn10_pipe_control_lock.part.0+0x69/0x70 [amdgpu]
[   78.028603]  dc_commit_updates_for_stream+0x81c/0xc10 [amdgpu]
[   78.028733]  amdgpu_dm_atomic_commit_tail+0xa7e/0x19b0 [amdgpu]
[   78.028744]  ? __switch_to_asm+0x40/0x70
[   78.028746]  ? __switch_to_asm+0x34/0x70
[   78.028749]  ? __switch_to_asm+0x40/0x70
[   78.028751]  ? __switch_to_asm+0x34/0x70
[   78.028753]  ? __switch_to_asm+0x40/0x70
[   78.028755]  ? __switch_to_asm+0x34/0x70
[   78.028757]  ? __switch_to_asm+0x40/0x70
[   78.028759]  ? __switch_to_asm+0x34/0x70
[   78.028761]  ? __switch_to_asm+0x40/0x70
[   78.028764]  ? __switch_to_asm+0x40/0x70
[   78.028766]  ? __switch_to_asm+0x34/0x70
[   78.028768]  ? __switch_to_asm+0x40/0x70
[   78.028769]  ? __switch_to_asm+0x34/0x70
[   78.028774]  ? preempt_count_add+0x79/0xb0
[   78.028776]  ? _raw_spin_lock_irq+0x1a/0x40
[   78.028778]  ? _raw_spin_unlock_irq+0x1d/0x30
[   78.028781]  ? wait_for_common+0x129/0x170
[   78.028783]  ? __switch_to_asm+0x34/0x70
[   78.028786]  ? __switch_to_asm+0x40/0x70
[   78.028787]  ? __switch_to_asm+0x34/0x70
[   78.028789]  ? __switch_to_asm+0x40/0x70
[   78.028792]  ? _raw_spin_unlock_irq+0x1d/0x30
[   78.028794]  ? finish_task_switch+0x84/0x2d0
[   78.028809]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[   78.028822]  commit_tail+0x3c/0x70 [drm_kms_helper]
[   78.028827]  process_one_work+0x1d1/0x3e0
[   78.028831]  worker_thread+0x4a/0x3d0
[   78.028835]  kthread+0xfb/0x130
[   78.028838]  ? process_one_work+0x3e0/0x3e0
[   78.028841]  ? kthread_park+0x90/0x90
[   78.028844]  ret_from_fork+0x22/0x40
[   78.028849] ---[ end trace 3fdbd4c5ada0380f ]---
[   78.029475] [drm] pstate TEST_DEBUG_DATA: 0x37F60000
[   78.029616] WARNING: CPU: 2 PID: 2021 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   78.029617] 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 edac_mce_amd kvm_amd ccp nls_iso8859_1 nls_cp437 vfat bonding kvm fat ath10k_pci irqbypass uvcvideo ath10k_core hid_logitech_dj cdc_ether usbnet videobuf2_vmalloc videobuf2_memops r8152 videobuf2_v4l2 videobuf2_common mii crct10dif_pclmul ath videodev crc32_pclmul mac80211 amd_iommu_v2 wmi_bmof gpu_sched media ghash_clmulni_intel i2c_algo_bit ttm snd_hda_codec_realtek drm_kms_helper snd_hda_codec_generic btusb btrtl ledtrig_audio snd_hda_codec_hdmi btbcm btintel snd_hda_intel drm bluetooth joydev snd_hda_codec input_leds mousedev aesni_intel snd_hda_core aes_x86_64 cfg80211 crypto_simd snd_hwdep cryptd ecdh_generic pcspkr glue_helper k10temp ecc snd_pcm agpgart syscopyarea sysfillrect sysimgblt snd_timer fb_sys_fops rtsx_pci_ms snd sp5100_tco memstick ideapad_laptop tpm_crb sparse_keymap i2c_piix4 soundcore snd_pci_acp3x rfkill wmi battery
[   78.029663]  tpm_tis ac tpm_tis_core 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 serio_raw mmc_core atkbd libps2 ahci libahci libata crc32c_intel xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[   78.029686] CPU: 2 PID: 2021 Comm: kworker/u32:11 Tainted: G        W         5.2.0-git-00001-gee0f4addf618 #18
[   78.029687] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[   78.029701] Workqueue: events_unbound commit_work [drm_kms_helper]
[   78.029826] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   78.029830] Code: 0f 1f 44 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 a3 23 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
[   78.029832] RSP: 0018:ffffb5750a2dbb78 EFLAGS: 00010246
[   78.029834] RAX: 0000000000000000 RBX: ffff9afb74a1c000 RCX: 0000000000000000
[   78.029835] RDX: 0000000000000000 RSI: 0000000000000082 RDI: 00000000ffffffff
[   78.029837] RBP: ffffb5750a2dbc00 R08: 000000000000059a R09: 0000000000000001
[   78.029838] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9afb74a1c000
[   78.029839] R13: 0000000000000000 R14: ffff9afac3260188 R15: 0000000000000004
[   78.029841] FS:  0000000000000000(0000) GS:ffff9afb7c880000(0000) knlGS:0000000000000000
[   78.029843] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   78.029844] CR2: 00007fb4bb7651d0 CR3: 000000049bca6000 CR4: 00000000003406e0
[   78.029845] Call Trace:
[   78.029964]  dc_commit_updates_for_stream+0x81c/0xc10 [amdgpu]
[   78.030093]  amdgpu_dm_atomic_commit_tail+0xa7e/0x19b0 [amdgpu]
[   78.030101]  ? __switch_to_asm+0x40/0x70
[   78.030104]  ? __switch_to_asm+0x34/0x70
[   78.030106]  ? __switch_to_asm+0x40/0x70
[   78.030107]  ? __switch_to_asm+0x34/0x70
[   78.030109]  ? __switch_to_asm+0x40/0x70
[   78.030111]  ? __switch_to_asm+0x34/0x70
[   78.030113]  ? __switch_to_asm+0x40/0x70
[   78.030115]  ? __switch_to_asm+0x34/0x70
[   78.030117]  ? __switch_to_asm+0x40/0x70
[   78.030119]  ? __switch_to_asm+0x40/0x70
[   78.030121]  ? __switch_to_asm+0x34/0x70
[   78.030123]  ? __switch_to_asm+0x40/0x70
[   78.030125]  ? __switch_to_asm+0x34/0x70
[   78.030128]  ? preempt_count_add+0x79/0xb0
[   78.030130]  ? _raw_spin_lock_irq+0x1a/0x40
[   78.030132]  ? _raw_spin_unlock_irq+0x1d/0x30
[   78.030136]  ? wait_for_common+0x129/0x170
[   78.030138]  ? __switch_to_asm+0x34/0x70
[   78.030140]  ? __switch_to_asm+0x40/0x70
[   78.030141]  ? __switch_to_asm+0x34/0x70
[   78.030143]  ? __switch_to_asm+0x40/0x70
[   78.030146]  ? _raw_spin_unlock_irq+0x1d/0x30
[   78.030148]  ? finish_task_switch+0x84/0x2d0
[   78.030162]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[   78.030175]  commit_tail+0x3c/0x70 [drm_kms_helper]
[   78.030179]  process_one_work+0x1d1/0x3e0
[   78.030182]  worker_thread+0x4a/0x3d0
[   78.030186]  kthread+0xfb/0x130
[   78.030189]  ? process_one_work+0x3e0/0x3e0
[   78.030191]  ? kthread_park+0x90/0x90
[   78.030194]  ret_from_fork+0x22/0x40
[   78.030199] ---[ end trace 3fdbd4c5ada03810 ]---
[   78.030868] [drm] pstate TEST_DEBUG_DATA: 0x37F60000
[   78.031040] WARNING: CPU: 2 PID: 2021 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   78.031041] 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 edac_mce_amd kvm_amd ccp nls_iso8859_1 nls_cp437 vfat bonding kvm fat ath10k_pci irqbypass uvcvideo ath10k_core hid_logitech_dj cdc_ether usbnet videobuf2_vmalloc videobuf2_memops r8152 videobuf2_v4l2 videobuf2_common mii crct10dif_pclmul ath videodev crc32_pclmul mac80211 amd_iommu_v2 wmi_bmof gpu_sched media ghash_clmulni_intel i2c_algo_bit ttm snd_hda_codec_realtek drm_kms_helper snd_hda_codec_generic btusb btrtl ledtrig_audio snd_hda_codec_hdmi btbcm btintel snd_hda_intel drm bluetooth joydev snd_hda_codec input_leds mousedev aesni_intel snd_hda_core aes_x86_64 cfg80211 crypto_simd snd_hwdep cryptd ecdh_generic pcspkr glue_helper k10temp ecc snd_pcm agpgart syscopyarea sysfillrect sysimgblt snd_timer fb_sys_fops rtsx_pci_ms snd sp5100_tco memstick ideapad_laptop tpm_crb sparse_keymap i2c_piix4 soundcore snd_pci_acp3x rfkill wmi battery
[   78.031111]  tpm_tis ac tpm_tis_core 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 serio_raw mmc_core atkbd libps2 ahci libahci libata crc32c_intel xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[   78.031146] CPU: 2 PID: 2021 Comm: kworker/u32:11 Tainted: G        W         5.2.0-git-00001-gee0f4addf618 #18
[   78.031148] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[   78.031167] Workqueue: events_unbound commit_work [drm_kms_helper]
[   78.031313] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   78.031319] Code: 0f 1f 44 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 a3 23 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
[   78.031321] RSP: 0018:ffffb5750a2dbb58 EFLAGS: 00010246
[   78.031324] RAX: 0000000000000000 RBX: ffff9afb74a1c000 RCX: 0000000000000000
[   78.031326] RDX: 0000000000000000 RSI: ffff9afb7c8975d8 RDI: 00000000ffffffff
[   78.031328] RBP: ffff9afb74a1c000 R08: 00000000000005cf R09: 0000000000000001
[   78.031330] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9afac3260188
[   78.031331] R13: 0000000000000000 R14: ffff9afac3260188 R15: ffff9afac32612e8
[   78.031334] FS:  0000000000000000(0000) GS:ffff9afb7c880000(0000) knlGS:0000000000000000
[   78.031337] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   78.031339] CR2: 00007fb4bb7651d0 CR3: 000000049bca6000 CR4: 00000000003406e0
[   78.031341] Call Trace:
[   78.031493]  dcn10_pipe_control_lock.part.0+0x69/0x70 [amdgpu]
[   78.031630]  dc_commit_updates_for_stream+0x8eb/0xc10 [amdgpu]
[   78.031791]  amdgpu_dm_atomic_commit_tail+0xa7e/0x19b0 [amdgpu]
[   78.031810]  ? __switch_to_asm+0x40/0x70
[   78.031813]  ? __switch_to_asm+0x34/0x70
[   78.031816]  ? __switch_to_asm+0x40/0x70
[   78.031818]  ? __switch_to_asm+0x34/0x70
[   78.031821]  ? __switch_to_asm+0x40/0x70
[   78.031824]  ? __switch_to_asm+0x34/0x70
[   78.031827]  ? __switch_to_asm+0x40/0x70
[   78.031829]  ? __switch_to_asm+0x34/0x70
[   78.031832]  ? __switch_to_asm+0x40/0x70
[   78.031836]  ? __switch_to_asm+0x40/0x70
[   78.031839]  ? __switch_to_asm+0x34/0x70
[   78.031842]  ? __switch_to_asm+0x40/0x70
[   78.031845]  ? __switch_to_asm+0x34/0x70
[   78.031849]  ? preempt_count_add+0x79/0xb0
[   78.031852]  ? _raw_spin_lock_irq+0x1a/0x40
[   78.031855]  ? _raw_spin_unlock_irq+0x1d/0x30
[   78.031860]  ? wait_for_common+0x129/0x170
[   78.031863]  ? __switch_to_asm+0x34/0x70
[   78.031866]  ? __switch_to_asm+0x40/0x70
[   78.031868]  ? __switch_to_asm+0x34/0x70
[   78.031871]  ? __switch_to_asm+0x40/0x70
[   78.031874]  ? _raw_spin_unlock_irq+0x1d/0x30
[   78.031878]  ? finish_task_switch+0x84/0x2d0
[   78.031899]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[   78.031914]  commit_tail+0x3c/0x70 [drm_kms_helper]
[   78.031922]  process_one_work+0x1d1/0x3e0
[   78.031928]  worker_thread+0x4a/0x3d0
[   78.031936]  kthread+0xfb/0x130
[   78.031939]  ? process_one_work+0x3e0/0x3e0
[   78.031943]  ? kthread_park+0x90/0x90
[   78.031948]  ret_from_fork+0x22/0x40
[   78.031958] ---[ end trace 3fdbd4c5ada03811 ]---
[   78.032551] [drm] pstate TEST_DEBUG_DATA: 0x37F60000
[   78.032719] WARNING: CPU: 2 PID: 2021 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:853 dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   78.032721] 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 edac_mce_amd kvm_amd ccp nls_iso8859_1 nls_cp437 vfat bonding kvm fat ath10k_pci irqbypass uvcvideo ath10k_core hid_logitech_dj cdc_ether usbnet videobuf2_vmalloc videobuf2_memops r8152 videobuf2_v4l2 videobuf2_common mii crct10dif_pclmul ath videodev crc32_pclmul mac80211 amd_iommu_v2 wmi_bmof gpu_sched media ghash_clmulni_intel i2c_algo_bit ttm snd_hda_codec_realtek drm_kms_helper snd_hda_codec_generic btusb btrtl ledtrig_audio snd_hda_codec_hdmi btbcm btintel snd_hda_intel drm bluetooth joydev snd_hda_codec input_leds mousedev aesni_intel snd_hda_core aes_x86_64 cfg80211 crypto_simd snd_hwdep cryptd ecdh_generic pcspkr glue_helper k10temp ecc snd_pcm agpgart syscopyarea sysfillrect sysimgblt snd_timer fb_sys_fops rtsx_pci_ms snd sp5100_tco memstick ideapad_laptop tpm_crb sparse_keymap i2c_piix4 soundcore snd_pci_acp3x rfkill wmi battery
[   78.032788]  tpm_tis ac tpm_tis_core 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 serio_raw mmc_core atkbd libps2 ahci libahci libata crc32c_intel xhci_pci scsi_mod xhci_hcd rtsx_pci i8042 serio
[   78.032820] CPU: 2 PID: 2021 Comm: kworker/u32:11 Tainted: G        W         5.2.0-git-00001-gee0f4addf618 #18
[   78.032822] Hardware name: LENOVO 81QG/LNVNB161216, BIOS AMCN22WW(V1.06) 05/10/2019
[   78.032840] Workqueue: events_unbound commit_work [drm_kms_helper]
[   78.032985] RIP: 0010:dcn10_verify_allow_pstate_change_high+0x25/0x260 [amdgpu]
[   78.032991] Code: 0f 1f 44 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 a3 23 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
[   78.032993] RSP: 0018:ffffb5750a2dbb78 EFLAGS: 00010246
[   78.032996] RAX: 0000000000000000 RBX: ffff9afb74a1c000 RCX: 0000000000000000
[   78.032998] RDX: 0000000000000000 RSI: 0000000000000082 RDI: 00000000ffffffff
[   78.033000] RBP: ffffb5750a2dbc00 R08: 0000000000000605 R09: 0000000000000001
[   78.033002] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9afb74a1c000
[   78.033003] R13: 0000000000000000 R14: ffff9afac3260188 R15: ffff9afac32612e8
[   78.033007] FS:  0000000000000000(0000) GS:ffff9afb7c880000(0000) knlGS:0000000000000000
[   78.033009] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   78.033011] CR2: 00007fb4bb7651d0 CR3: 000000049bca6000 CR4: 00000000003406e0
[   78.033013] Call Trace:
[   78.033153]  dc_commit_updates_for_stream+0x8eb/0xc10 [amdgpu]
[   78.033313]  amdgpu_dm_atomic_commit_tail+0xa7e/0x19b0 [amdgpu]
[   78.033330]  ? __switch_to_asm+0x40/0x70
[   78.033333]  ? __switch_to_asm+0x34/0x70
[   78.033336]  ? __switch_to_asm+0x40/0x70
[   78.033339]  ? __switch_to_asm+0x34/0x70
[   78.033341]  ? __switch_to_asm+0x40/0x70
[   78.033344]  ? __switch_to_asm+0x34/0x70
[   78.033347]  ? __switch_to_asm+0x40/0x70
[   78.033349]  ? __switch_to_asm+0x34/0x70
[   78.033352]  ? __switch_to_asm+0x40/0x70
[   78.033357]  ? __switch_to_asm+0x40/0x70
[   78.033359]  ? __switch_to_asm+0x34/0x70
[   78.033362]  ? __switch_to_asm+0x40/0x70
[   78.033364]  ? __switch_to_asm+0x34/0x70
[   78.033368]  ? preempt_count_add+0x79/0xb0
[   78.033371]  ? _raw_spin_lock_irq+0x1a/0x40
[   78.033374]  ? _raw_spin_unlock_irq+0x1d/0x30
[   78.033377]  ? wait_for_common+0x129/0x170
[   78.033381]  ? __switch_to_asm+0x34/0x70
[   78.033384]  ? __switch_to_asm+0x40/0x70
[   78.033387]  ? __switch_to_asm+0x34/0x70
[   78.033389]  ? __switch_to_asm+0x40/0x70
[   78.033392]  ? _raw_spin_unlock_irq+0x1d/0x30
[   78.033395]  ? finish_task_switch+0x84/0x2d0
[   78.033417]  ? commit_tail+0x3c/0x70 [drm_kms_helper]
[   78.033433]  commit_tail+0x3c/0x70 [drm_kms_helper]
[   78.033439]  process_one_work+0x1d1/0x3e0
[   78.033445]  worker_thread+0x4a/0x3d0
[   78.033452]  kthread+0xfb/0x130
[   78.033455]  ? process_one_work+0x3e0/0x3e0
[   78.033459]  ? kthread_park+0x90/0x90
[   78.033464]  ret_from_fork+0x22/0x40
[   78.033474] ---[ end trace 3fdbd4c5ada03812 ]---
[   78.123016] audit: type=1131 audit(1564340852.703:43): 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'
[   78.137946] audit: type=1130 audit(1564340852.720:44): 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'
[   78.139539] audit: type=1130 audit(1564340852.720:45): 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'
[   78.139544] audit: type=1131 audit(1564340852.720:46): 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'
[   78.160724] bond1: link status definitely down for interface eth0, disabling it
[   78.160738] bond1: now running without any active interface!
[   81.227457] r8152 2-1.1:1.0 eth0: carrier on
[   82.214872] bond1: link status definitely up for interface eth0, 1000 Mbps full duplex
[   82.214877] bond1: making interface eth0 the new active one
[   82.214939] bond1: first active interface up!
[   82.771631] wlan0: authenticate with e8:ad:a6:39:21:7f
[   82.788942] audit: type=1131 audit(1564340857.370:47): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   82.802425] wlan0: send auth to e8:ad:a6:39:21:7f (try 1/3)
[   82.803322] wlan0: authenticated
[   82.803937] wlan0: associate with e8:ad:a6:39:21:7f (try 1/3)
[   82.804942] wlan0: RX AssocResp from e8:ad:a6:39:21:7f (capab=0x11 status=0 aid=2)
[   82.807067] wlan0: associated
[   82.814713] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by e8:ad:a6:39:21:7f
[   82.854268] audit: type=1130 audit(1564340857.436:48): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=rtkit-daemon comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   83.227362] bond1: link status definitely up for interface wlan0, 0 Mbps full duplex
[   85.615549] audit: type=1006 audit(1564340860.196:49): pid=2192 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=5 res=1
[   88.160632] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:56:crtc-0] flip_done timed out

Offline

#28 2019-07-28 20:05:36

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: Laptop fails to resume from inside Plasma X session

Given the git bisect result I think the bad commit is in the range

git log 6e865c7230140126cbac62e0aef5807108e46e63..42f1a013300dca601d779b02ed6d41f7b2cea362

The last commit was just reverted and that did not fix it
Ideally you want to revert the rest of the commits until you the system can resume.  Unfortunately some commits can not be reverted without manual intervention.
I believe the following should cleanly revert with git revert commitid

1afeb3144344e303547a211ff29d1e18ba9a9994
3d2aca8c8620346abdba96c6300d2c0b90a1d0cc
93abb05fd5d6f3042320ae3c485b034d7c5e8e54
3be0a0b8501585120f8de68e9077ca143024139b
ea36ad34c5b2d6d2e079efc20fb0784e63dad438
623588b8ee601c4e15e717ea5cbea838cd9723ac
e54ae524294f0fe66f5fbbde4cdcb4a52e89bdd5
f6ff2a08f49d565e38300f1a9d2f13359c7efc54
5ac4619b9d2fdbb54ef4b247db774637e347d46e
6491f0c05abd009631e0d0a33d671bb5a685847a
f843b308adb2c412da611351acbe29292190cae8
6e8dc7b0a7a4d5532c2e0706795a95b7beb9592e
004b3938e6374f39d43cc32bd4953f2fe8b8905b

So lets revert everything that can be done so easily (covers 14 of the 25 commits in the merge)

git reset --hard
git checkout v5.2
git revert 1afeb3144344e303547a211ff29d1e18ba9a9994 3d2aca8c8620346abdba96c6300d2c0b90a1d0cc 93abb05fd5d6f3042320ae3c485b034d7c5e8e54 3be0a0b8501585120f8de68e9077ca143024139b ea36ad34c5b2d6d2e079efc20fb0784e63dad438 623588b8ee601c4e15e717ea5cbea838cd9723ac e54ae524294f0fe66f5fbbde4cdcb4a52e89bdd5 f6ff2a08f49d565e38300f1a9d2f13359c7efc54 5ac4619b9d2fdbb54ef4b247db774637e347d46e 6491f0c05abd009631e0d0a33d671bb5a685847a f843b308adb2c412da611351acbe29292190cae8 6e8dc7b0a7a4d5532c2e0706795a95b7beb9592e 004b3938e6374f39d43cc32bd4953f2fe8b8905b 2624dd154bcc53ac2de16ecae9746ba867b6ca70

Offline

#29 2019-07-28 20:44:55

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: Laptop fails to resume from inside Plasma X session

Lets forget that,  the following should be simpler

rm -rf src
cp -r src.bak src #this should decrease the amount of code that needs to be rebuilt
cd src
git bisect start
git bisect bad 42f1a013300dca601d779b02ed6d41f7b2cea362
git bisect good 6e865c7230140126cbac62e0aef5807108e46e63

Last edited by loqs (2019-07-28 20:50:06)

Offline

#30 2019-07-28 22:41:01

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

Re: Laptop fails to resume from inside Plasma X session

git bisect start
# 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
# good: [0a8d85e0a16051c06aa8ae6286dd434e719c55c6] drm/amd/display: 3.2.26
git bisect good 0a8d85e0a16051c06aa8ae6286dd434e719c55c6
# bad: [6491f0c05abd009631e0d0a33d671bb5a685847a] drm/amd/display: Add basic downscale and upscale valdiation
git bisect bad 6491f0c05abd009631e0d0a33d671bb5a685847a
# bad: [320932bfd9e30222f427811079323b6c86edf4da] drm/amd/display: Recalculate pitch when buffers change
git bisect bad 320932bfd9e30222f427811079323b6c86edf4da
# good: [f6ff2a08f49d565e38300f1a9d2f13359c7efc54] drm/amd/display: Maintain z-ordering when creating planes
git bisect good f6ff2a08f49d565e38300f1a9d2f13359c7efc54
# first bad commit: [320932bfd9e30222f427811079323b6c86edf4da] drm/amd/display: Recalculate pitch when buffers change
320932bfd9e30222f427811079323b6c86edf4da is the first bad commit
commit 320932bfd9e30222f427811079323b6c86edf4da
Author: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Date:   Thu Mar 28 09:46:23 2019 -0400

    drm/amd/display: Recalculate pitch when buffers change
    
    [Why]
    Pitch was only calculated based on format whenever the plane state
    was recreated. This could result in surface corruption due to the
    incorrect pitch being programmed when the surface pitch changed during
    commits where state->allow_modeset = false.
    
    [How]
    Recalculate pitch at the same time we update the buffer address and
    other buffer attributes. This function was previously called
    fill_plane_tiling_attributes but I've also renamed it to
    fill_plane_buffer_attributes to clarify the actual intent of the
    function now that it's handling most buffer related attributes.
    
    Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
    Reviewed-by: David Francis <David.Francis@amd.com>
    Acked-by: Bhawanpreet Lakha <Bhawanpreet Lakha@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 73 +++++++++++------------
 1 file changed, 34 insertions(+), 39 deletions(-)

Offline

#31 2019-07-28 22:53:35

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: Laptop fails to resume from inside Plasma X session

Thank you for the second bisection this time it is not a merge commit.
Can you report the issue upstream now that the cause has been identified?
https://bugs.freedesktop.org/buglist.cg … esolution=---
Please include the bisection results.  Other information to possibly include:
https://www.kernel.org/doc/html/latest/ … -bugs.html

I tried to revert that commit from v5.2 but it does not do so cleanl.

Last edited by loqs (2019-07-28 22:53:49)

Offline

#32 2019-07-29 04:11:55

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

Re: Laptop fails to resume from inside Plasma X session

Thanks for your help @loqs. I filed the bug report here https://bugs.freedesktop.org/show_bug.cgi?id=111244

Offline

#33 2019-07-29 10:50:06

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: Laptop fails to resume from inside Plasma X session

Try retesting 27eaa4927dc3be669ed70670241597ac73595caf (there should be a package with containing the first few letters of the commit already built) as that contained all the commits from the merge.

Offline

#34 2019-07-29 17:30:01

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

Re: Laptop fails to resume from inside Plasma X session

Ok looks like I marked that incorrectly as good.  Or the person that replied to my ticket is correct and the problem is not 100% reproducible which would make things much more difficult. I guess I will try the bisect again and test more thoroughly.

Offline

#35 2019-08-02 13:33:33

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

Re: Laptop fails to resume from inside Plasma X session

Still broken with the latest kernel.

I performed a bisection of my own and added my findings to cspack's bug report, here https://bugs.freedesktop.org/show_bug.cgi?id=111244

bisect result:

df8368be1382b442384507a5147c89978cd60702 is the first bad commit
commit df8368be1382b442384507a5147c89978cd60702
Author: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Date:   Wed Feb 27 12:56:36 2019 -0500

    drm/amdgpu: Bump amdgpu version for per-flip plane tiling updates
    
    To help xf86-video-amdgpu and mesa know DC supports updating the
    tiling attributes for a framebuffer per-flip.
    
    Cc: Michel Dänzer <michel@daenzer.net>
    Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
    Acked-by: Alex Deucher <alexander.deucher@amd.com>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

bisect log:

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
# bad: [27eaa4927dc3be669ed70670241597ac73595caf] drm/amd/display: Add power down display on boot flag
git bisect bad 27eaa4927dc3be669ed70670241597ac73595caf
# good: [b4e4538a0ab5079ae5dc401970e11f0ff2ba13a7] Merge tag 'drm-misc-next-2019-03-28-1' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
git bisect good b4e4538a0ab5079ae5dc401970e11f0ff2ba13a7
# bad: [163def43e9a10ff834859e3b0bf04bcc71b90888] drm/amdgpu: Fix lockdep warning more gracely
git bisect bad 163def43e9a10ff834859e3b0bf04bcc71b90888
# good: [c9ff9d8ee3c6832f8a203fffbc710ab4b177ceda] drm/amd/powerplay: add watermarks related data structs and function for SMU11.
git bisect good c9ff9d8ee3c6832f8a203fffbc710ab4b177ceda
# bad: [71ec90943876620f50f8d0ebaf305877667a069e] drm/ttm: Fix spelling of "KiB"
git bisect bad 71ec90943876620f50f8d0ebaf305877667a069e
# good: [cbbf388fa26bff77e2a1be56dadee1eb41aa110d] drm/amd/powerplay: set dpm table of vclk/dclk/eclk for smu11 (v2)
git bisect good cbbf388fa26bff77e2a1be56dadee1eb41aa110d
# good: [7cef6a120ec4d04c204b2caac226af473b67e410] drm/amd/display: Add function to create 4d19 fixed point
git bisect good 7cef6a120ec4d04c204b2caac226af473b67e410
# good: [162f807858d15bde60cf373a3ad46e03200ad9d8] drm/amd/display: half bandwidth for YCbCr420 during validation
git bisect good 162f807858d15bde60cf373a3ad46e03200ad9d8
# good: [69226e9c7d4e721c683bac7fef4c613a71a3508d] drm/amd/display: 3.2.20
git bisect good 69226e9c7d4e721c683bac7fef4c613a71a3508d
# bad: [df8368be1382b442384507a5147c89978cd60702] drm/amdgpu: Bump amdgpu version for per-flip plane tiling updates
git bisect bad df8368be1382b442384507a5147c89978cd60702
# good: [a08ac5a62c0f8b29d110004d05b1554a8b8fd5f5] drm/amd/display: Add pp_smu null pointer check
git bisect good a08ac5a62c0f8b29d110004d05b1554a8b8fd5f5
# first bad commit: [df8368be1382b442384507a5147c89978cd60702] drm/amdgpu: Bump amdgpu version for per-flip plane tiling updates

The same commit is mentioned in another issue: https://bugs.freedesktop.org/show_bug.cgi?id=111122

Given that the commit just bumps a version and exposes some functionality, the error might  be in another package, not the kernel itself. Presumably the package that uses this functionality.
My guess would be either Xorg or the amdgpu xorg video driver.

Last edited by JohnDeVries (2019-08-02 13:34:14)

Offline

#36 2019-08-02 18:10:07

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

Re: Laptop fails to resume from inside Plasma X session

Thanks @JohnDeVries. I redid my bisect and got the same result as you. But I was doubting my result because a) even though 5.2 fails consistently, some commits during bisect required multiple tests to get a failure and b) as you say the first bad commit it identified seems like an innocent commit.

Offline

#37 2019-08-02 19:29:34

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: Laptop fails to resume from inside Plasma X session

If you boot to console never starting X or Wayland can you suspend and resume successfully?
Edit:
Possibly the same tiling support https://github.com/freedesktop/xorg-xf8 … a09593d079

Last edited by loqs (2019-08-02 19:38:58)

Offline

#38 2019-08-02 20:30:31

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

Re: Laptop fails to resume from inside Plasma X session

Yes if I boot to console I can successfully suspend/resume. If  I then start X and suspend from the lightdm login screen I can still successfully resume. But once I login and i3 starts, suspend/resume fails.

Offline

#39 2019-08-02 20:36:01

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: Laptop fails to resume from inside Plasma X session

Are you using a compositor with i3?

Offline

#40 2019-08-02 21:03:19

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

Re: Laptop fails to resume from inside Plasma X session

Yes I'm using compton. Should I try some tests without it?

Offline

#41 2019-08-02 21:09:57

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: Laptop fails to resume from inside Plasma X session

Yes as lightdm worked so starting X itself does not seem to trigger it or could be the intermittent nature of the bug.

Offline

#42 2019-08-02 22:35:28

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

Re: Laptop fails to resume from inside Plasma X session

It seems to work fine when the compositor is not running.

Offline

#43 2019-08-03 08:11:56

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

Re: Laptop fails to resume from inside Plasma X session

Same thing for me: console, Wayland session, and just SDDM works fine with suspend.
Leaving compositor on breaks it. If I disable it in the KDE system settings, then resume works again.

Offline

#44 2019-08-03 11:45:08

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: Laptop fails to resume from inside Plasma X session

What if you downgrade to xf86-video-amdgpu 19.0.0-1 which does not include the commit for tiling support does the issue still trigger with the compositor?

Offline

#45 2019-08-03 16:06:28

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

Re: Laptop fails to resume from inside Plasma X session

I built and tested 19.0.0-1, 18.1.0-1 and 18.0.1-2. Older versions are not compatible with the current version of the X ABI and xorg-server.
They all fail, although the 18 series took more tries to break.

Edit: upon further investigation, 18.1.0 and 18.0.1 fail for different reasons compared to 19.0.0-1, which shows a similar stack trace as the current version.

Relevant part of the log:

Aug 03 18:21:58 archer systemd-sleep[4232]: Suspending system...
Aug 03 18:21:58 archer kernel: PM: suspend entry (deep)
Aug 03 18:22:03 archer kernel: Filesystems sync: 0.008 seconds
Aug 03 18:22:03 archer kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
Aug 03 18:22:03 archer kernel: OOM killer disabled.
Aug 03 18:22:03 archer kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Aug 03 18:22:03 archer kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 03 18:22:03 archer kernel: xhci_hcd 0000:04:00.4: WARN: xHC CMD_RUN timeout
Aug 03 18:22:03 archer kernel: PM: suspend_common(): xhci_pci_suspend+0x0/0xd0 [xhci_pci] returns -110
Aug 03 18:22:03 archer kernel: PM: pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -110
Aug 03 18:22:03 archer kernel: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x130 returns -110
Aug 03 18:22:03 archer kernel: PM: Device 0000:04:00.4 failed to suspend async: error -110
Aug 03 18:22:03 archer kernel: kfd2kgd: cp queue preemption time out.
Aug 03 18:22:03 archer kernel: PM: Some devices failed to suspend, or early wake event detected
Aug 03 18:22:03 archer kernel: hub 4-0:1.0: hub_ext_port_status failed (err = -108)
Aug 03 18:22:03 archer kernel: usb usb4-port1: cannot disable (err = -108)
Aug 03 18:22:03 archer kernel: hub 4-0:1.0: hub_ext_port_status failed (err = -108)
Aug 03 18:22:03 archer kernel: usb usb4-port2: cannot disable (err = -108)
Aug 03 18:22:03 archer kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
Aug 03 18:22:03 archer kernel: [drm] PSP is resuming...
Aug 03 18:22:03 archer kernel: [drm] reserve 0x400000 from 0xf400c00000 for PSP TMR SIZE
Aug 03 18:22:03 archer kernel: [drm] psp command failed and response status is (-65529)
Aug 03 18:22:03 archer kernel: nvme nvme0: Shutdown timeout set to 8 seconds
Aug 03 18:22:03 archer kernel: iwlwifi 0000:02:00.0: BIOS contains WGDS but no WRDS
Aug 03 18:22:03 archer kernel: nvme nvme0: 16/0/0 default/read/poll queues
Aug 03 18:22:03 archer kernel: ata2: SATA link down (SStatus 0 SControl 300)
Aug 03 18:22:03 archer kernel: ata1: SATA link down (SStatus 0 SControl 300)
Aug 03 18:22:03 archer kernel: amdgpu: [powerplay] dpm has been enabled
Aug 03 18:22:03 archer kernel: [drm] VCN decode and encode initialized successfully(under SPG Mode).
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring gfx uses VM inv eng 0 on hub 0
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring sdma0 uses VM inv eng 0 on hub 1
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring vcn_dec uses VM inv eng 1 on hub 1
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring vcn_enc0 uses VM inv eng 4 on hub 1
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring vcn_enc1 uses VM inv eng 5 on hub 1
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: ring vcn_jpeg uses VM inv eng 6 on hub 1
Aug 03 18:22:03 archer kernel: [drm] Fence fallback timer expired on ring sdma0
Aug 03 18:22:03 archer kernel: [drm] Fence fallback timer expired on ring gfx
Aug 03 18:22:03 archer kernel: amdgpu 0000:04:00.0: [drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* IB test failed on gfx (-22).
Aug 03 18:22:03 archer kernel: [drm:amdgpu_device_ip_late_init_func_handler [amdgpu]] *ERROR* ib ring test failed (-22).
Aug 03 18:22:03 archer kernel: OOM killer enabled.
Aug 03 18:22:03 archer kernel: Restarting tasks ... done.

Edit2: I also get similar errors using the LTS kernel now

Aug 03 18:38:35 archer systemd-sleep[2367]: Suspending system...
Aug 03 18:38:35 archer kernel: PM: suspend entry (deep)
Aug 03 18:38:36 archer kernel: PM: Syncing filesystems ... done.
Aug 03 18:38:36 archer kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
Aug 03 18:38:36 archer kernel: OOM killer disabled.
Aug 03 18:38:36 archer kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Aug 03 18:38:36 archer kernel: Suspending console(s) (use no_console_suspend to debug)
Aug 03 18:38:36 archer kernel: xhci_hcd 0000:04:00.4: WARN: xHC CMD_RUN timeout
Aug 03 18:38:36 archer kernel: suspend_common(): xhci_pci_suspend+0x0/0xd0 [xhci_pci] returns -110
Aug 03 18:38:36 archer kernel: pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -110
Aug 03 18:38:36 archer kernel: dpm_run_callback(): pci_pm_suspend+0x0/0x120 returns -110
Aug 03 18:38:36 archer kernel: PM: Device 0000:04:00.4 failed to suspend async: error -110
Aug 03 18:38:36 archer kernel: PM: Some devices failed to suspend, or early wake event detected
Aug 03 18:38:36 archer kernel: hub 4-0:1.0: hub_ext_port_status failed (err = -108)
Aug 03 18:38:36 archer kernel: hub 4-0:1.0: hub_ext_port_status failed (err = -108)
Aug 03 18:38:36 archer kernel: hub 4-0:1.0: hub_ext_port_status failed (err = -108)
Aug 03 18:38:36 archer kernel: usb usb4-port2: cannot disable (err = -108)
Aug 03 18:38:36 archer kernel: hub 4-0:1.0: hub_ext_port_status failed (err = -108)
Aug 03 18:38:36 archer kernel: usb usb4-port1: cannot disable (err = -108)
Aug 03 18:38:36 archer kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
Aug 03 18:38:36 archer kernel: [drm] PSP is resuming...
Aug 03 18:38:36 archer kernel: iwlwifi 0000:02:00.0: BIOS contains WGDS but no WRDS
Aug 03 18:38:36 archer kernel: nvme nvme0: Shutdown timeout set to 8 seconds
Aug 03 18:38:36 archer kernel: ata1: SATA link down (SStatus 0 SControl 300)
Aug 03 18:38:36 archer kernel: ata2: SATA link down (SStatus 0 SControl 300)
Aug 03 18:38:36 archer kernel: amdgpu: [powerplay] dpm has been enabled
Aug 03 18:38:36 archer kernel: [drm:gfx_v9_0_hw_init [amdgpu]] *ERROR* KCQ enable failed (scratch(0xC040)=0xCAFEDEAD)
Aug 03 18:38:36 archer kernel: [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <gfx_v9_0> failed -22
Aug 03 18:38:36 archer kernel: [drm:amdgpu_device_resume [amdgpu]] *ERROR* amdgpu_device_ip_resume failed (-22).
Aug 03 18:38:36 archer kernel: dpm_run_callback(): pci_pm_resume+0x0/0x90 returns -22
Aug 03 18:38:36 archer kernel: PM: Device 0000:04:00.0 failed to resume async: error -22
Aug 03 18:38:36 archer kernel: OOM killer enabled.
Aug 03 18:38:36 archer kernel: Restarting tasks ... 
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: done.
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:38:36 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:38:36 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>

Edit3: got it again, with LTS. This one seems to happen whenever that usb device fails to sleep and re-awakes everything else

Aug 03 18:43:53 archer systemd-sleep[4553]: Suspending system...
Aug 03 18:43:53 archer kernel: PM: suspend entry (deep)
Aug 03 18:43:55 archer kernel: PM: Syncing filesystems ... done.
Aug 03 18:43:55 archer kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
Aug 03 18:43:55 archer kernel: OOM killer disabled.
Aug 03 18:43:55 archer kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Aug 03 18:43:55 archer kernel: Suspending console(s) (use no_console_suspend to debug)
Aug 03 18:43:55 archer kernel: xhci_hcd 0000:04:00.4: WARN: xHC CMD_RUN timeout
Aug 03 18:43:55 archer kernel: suspend_common(): xhci_pci_suspend+0x0/0xd0 [xhci_pci] returns -110
Aug 03 18:43:55 archer kernel: pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -110
Aug 03 18:43:55 archer kernel: dpm_run_callback(): pci_pm_suspend+0x0/0x120 returns -110
Aug 03 18:43:55 archer kernel: PM: Device 0000:04:00.4 failed to suspend async: error -110
Aug 03 18:43:55 archer kernel: PM: Some devices failed to suspend, or early wake event detected
Aug 03 18:43:55 archer kernel: hub 4-0:1.0: hub_ext_port_status failed (err = -108)
Aug 03 18:43:55 archer kernel: usb usb4-port1: cannot disable (err = -108)
Aug 03 18:43:55 archer kernel: hub 4-0:1.0: hub_ext_port_status failed (err = -108)
Aug 03 18:43:55 archer kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
Aug 03 18:43:55 archer kernel: [drm] PSP is resuming...
Aug 03 18:43:55 archer kernel: hub 4-0:1.0: hub_ext_port_status failed (err = -108)
Aug 03 18:43:55 archer kernel: usb usb4-port2: cannot disable (err = -108)
Aug 03 18:43:55 archer kernel: iwlwifi 0000:02:00.0: BIOS contains WGDS but no WRDS
Aug 03 18:43:55 archer kernel: nvme nvme0: Shutdown timeout set to 8 seconds
Aug 03 18:43:55 archer kernel: ata1: SATA link down (SStatus 0 SControl 300)
Aug 03 18:43:55 archer kernel: ata2: SATA link down (SStatus 0 SControl 300)
Aug 03 18:43:55 archer kernel: amdgpu: [powerplay] dpm has been enabled
Aug 03 18:43:55 archer kernel: [drm:gfx_v9_0_hw_init [amdgpu]] *ERROR* KCQ enable failed (scratch(0xC040)=0xCAFEDEAD)
Aug 03 18:43:55 archer kernel: [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <gfx_v9_0> failed -22
Aug 03 18:43:55 archer kernel: [drm:amdgpu_device_resume [amdgpu]] *ERROR* amdgpu_device_ip_resume failed (-22).
Aug 03 18:43:55 archer kernel: dpm_run_callback(): pci_pm_resume+0x0/0x90 returns -22
Aug 03 18:43:55 archer kernel: PM: Device 0000:04:00.0 failed to resume async: error -22
Aug 03 18:43:55 archer kernel: OOM killer enabled.
Aug 03 18:43:55 archer kernel: Restarting tasks ... 
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: done.
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: [gfxhub] VMC page fault (src_id:0 ring:222 vmid:1 pasid:32768, for process Xorg pid 1041 thread Xorg:cs0 pid 1043
                               )
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0:   at address 0x0000000000233000 from 27
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: VM_L2_PROTECTION_FAULT_STATUS:0x001009BC
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:43:55 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:43:55 archer wpa_supplicant[752]: wlp2s0: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=WORLD
Aug 03 18:43:55 archer kernel: PM: suspend exit
Aug 03 18:43:55 archer kernel: PM: suspend entry (shallow)
Aug 03 18:44:15 archer kernel: PM: Syncing filesystems ... done.
Aug 03 18:44:15 archer kernel: Freezing user space processes ... 
Aug 03 18:44:15 archer kernel: psmouse serio3: synaptics: queried max coordinates: x [..5658], y [..4736]
Aug 03 18:44:15 archer kernel: psmouse serio3: synaptics: queried min coordinates: x [1286..], y [1114..]
Aug 03 18:44:15 archer kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=12129, emitted seq=12131
Aug 03 18:44:15 archer kernel: [drm] GPU recovery disabled.
Aug 03 18:44:15 archer kernel: Freezing of tasks failed after 20.014 seconds (1 tasks refusing to freeze, wq_busy=0):
Aug 03 18:44:15 archer kernel: plasmashell     D    0  4556   1272 0x80000084
Aug 03 18:44:15 archer kernel: Call Trace:
Aug 03 18:44:15 archer kernel:  ? __schedule+0x26c/0x8b0
Aug 03 18:44:15 archer kernel:  ? __switch_to_asm+0x41/0x70
Aug 03 18:44:15 archer kernel:  ? __switch_to_asm+0x35/0x70
Aug 03 18:44:15 archer kernel:  schedule+0x32/0x80
Aug 03 18:44:15 archer kernel:  drm_sched_entity_flush+0x189/0x190 [gpu_sched]
Aug 03 18:44:15 archer kernel:  ? wait_woken+0x70/0x70
Aug 03 18:44:15 archer kernel:  amdgpu_ctx_mgr_entity_flush+0x90/0xe0 [amdgpu]
Aug 03 18:44:15 archer kernel:  amdgpu_flush+0x1f/0x30 [amdgpu]
Aug 03 18:44:15 archer kernel:  filp_close+0x32/0x70
Aug 03 18:44:15 archer kernel:  ? do_close_on_exec+0xd9/0x110
Aug 03 18:44:15 archer kernel:  ? flush_old_exec+0x36c/0x6b0
Aug 03 18:44:15 archer kernel:  ? load_elf_binary+0x330/0x1702
Aug 03 18:44:15 archer kernel:  ? get_user_pages_remote+0x13b/0x1e0
Aug 03 18:44:15 archer kernel:  ? get_acl+0x1a/0x110
Aug 03 18:44:15 archer kernel:  ? generic_permission+0x10a/0x190
Aug 03 18:44:15 archer kernel:  ? copy_strings.isra.0+0x305/0x3c0
Aug 03 18:44:15 archer kernel:  ? search_binary_handler+0x8a/0x1b0
Aug 03 18:44:15 archer kernel:  ? __do_execve_file.isra.0+0x529/0x810
Aug 03 18:44:15 archer kernel:  ? do_execve+0x21/0x30
Aug 03 18:44:15 archer kernel:  ? __x64_sys_execve+0x27/0x30
Aug 03 18:44:15 archer kernel:  ? do_syscall_64+0x4e/0x100
Aug 03 18:44:15 archer kernel:  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
Aug 03 18:44:15 archer kernel: OOM killer enabled.
Aug 03 18:44:15 archer kernel: Restarting tasks ... done.
Aug 03 18:44:15 archer rtkit-daemon[1295]: The canary thread is apparently starving. Taking action.
Aug 03 18:44:15 archer systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Aug 03 18:44:15 archer rtkit-daemon[1295]: Demoting known real-time threads.
Aug 03 18:44:15 archer rtkit-daemon[1295]: Successfully demoted thread 1403 of process 1291.
Aug 03 18:44:15 archer rtkit-daemon[1295]: Successfully demoted thread 1401 of process 1291.
Aug 03 18:44:15 archer rtkit-daemon[1295]: Successfully demoted thread 1291 of process 1291.
Aug 03 18:44:15 archer rtkit-daemon[1295]: Demoted 3 threads.
Aug 03 18:44:15 archer audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 03 18:44:15 archer kernel: audit: type=1131 audit(1564850655.629:107): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 03 18:44:15 archer kernel: PM: suspend exit
Aug 03 18:44:15 archer kernel: PM: suspend entry (s2idle)
Aug 03 18:44:15 archer ksmserver[1243]: CreateNotify: 58720313
Aug 03 18:44:15 archer kernel: PM: Syncing filesystems ... 
Aug 03 18:44:15 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:44:15 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 03 18:44:15 archer kernel: amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>
Aug 03 18:44:15 archer kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)

Last edited by JohnDeVries (2019-08-03 16:47:32)

Offline

#46 2019-08-04 01:47:51

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

Re: Laptop fails to resume from inside Plasma X session

No success with xf86-video-amdgpu 19.0.0-1 here either.

Offline

#47 2019-08-04 06:45:37

seth
Member
Registered: 2012-09-03
Posts: 58,826

Re: Laptop fails to resume from inside Plasma X session

amdgpu.dpm=0 might workaround this
Let's see what's on that usb hub: lsusb -t (and also lsusb)

Offline

#48 2019-08-04 07:02:27

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

Re: Laptop fails to resume from inside Plasma X session

seth wrote:

amdgpu.dpm=0 might workaround this
Let's see what's on that usb hub: lsusb -t (and also lsusb)

Pretty much everything is attached to hub 4. I think it's used for "internal" laptop stuff: camera, some light sensor,  fingerprint reader, bluetooth, etc.
I'll see if it still causes problems when dynamic power management is disabled on the GPU.

Edit: although this is probably unrelated to the first bug I reported, so I suppose I should move to another thread.

$ lsusb
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 003: ID 04f2:b5e7 Chicony Electronics Co., Ltd 
Bus 004 Device 005: ID 138a:00ab Validity Sensors, Inc. 
Bus 004 Device 004: ID 8087:0a2b Intel Corp. 
Bus 004 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 10000M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 3: Dev 5, If 0, Class=Vendor Specific Class, Driver=, 12M
        |__ Port 1: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M
        |__ Port 1: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 2: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 2: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 2: Dev 3, If 2, Class=Video, Driver=uvcvideo, 480M
    |__ Port 2: Dev 3, If 3, Class=Video, Driver=uvcvideo, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/1p, 480M

Last edited by JohnDeVries (2019-08-04 07:05:03)

Offline

#49 2019-08-04 07:10:34

seth
Member
Registered: 2012-09-03
Posts: 58,826

Re: Laptop fails to resume from inside Plasma X session

No idea whether it's still OT - do you need bluetooth?
Since I didn't really follow th thread: you do not have a parallel windows installation, do you?

Offline

#50 2019-08-04 07:20:09

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

Re: Laptop fails to resume from inside Plasma X session

seth wrote:

No idea whether it's still OT - do you need bluetooth?
Since I didn't really follow th thread: you do not have a parallel windows installation, do you?

Not on a regular basis, but occasionally I do use it. In theory it should be disabled/turned off most of the time.
Yep, I also have Windows installed.

dpm=0 did not help. Also, this particular "wake instantly because of usb-4 and freeze" happens even if I just suspend from tty, without xorg running, which gives a cleaner log.

Aug 04 09:08:31 archer systemd[1]: Starting Suspend...
Aug 04 09:08:31 archer systemd-sleep[2042]: Suspending system...
Aug 04 09:08:31 archer kernel: PM: suspend entry (deep)
Aug 04 09:08:33 archer kernel: PM: Syncing filesystems ... done.
Aug 04 09:08:33 archer kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Aug 04 09:08:33 archer kernel: OOM killer disabled.
Aug 04 09:08:33 archer kernel: Freezing remaining freezable tasks ... (elapsed 0.068 seconds) done.
Aug 04 09:08:33 archer kernel: Suspending console(s) (use no_console_suspend to debug)
Aug 04 09:08:33 archer kernel: xhci_hcd 0000:04:00.4: WARN: xHC CMD_RUN timeout
Aug 04 09:08:33 archer kernel: suspend_common(): xhci_pci_suspend+0x0/0xd0 [xhci_pci] returns -110
Aug 04 09:08:33 archer kernel: pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -110
Aug 04 09:08:33 archer kernel: dpm_run_callback(): pci_pm_suspend+0x0/0x120 returns -110
Aug 04 09:08:33 archer kernel: PM: Device 0000:04:00.4 failed to suspend async: error -110
Aug 04 09:08:33 archer kernel: PM: Some devices failed to suspend, or early wake event detected
Aug 04 09:08:33 archer kernel: hub 4-0:1.0: hub_ext_port_status failed (err = -108)
Aug 04 09:08:33 archer kernel: usb usb4-port1: cannot disable (err = -108)
Aug 04 09:08:33 archer kernel: hub 4-0:1.0: hub_ext_port_status failed (err = -108)
Aug 04 09:08:33 archer kernel: usb usb4-port2: cannot disable (err = -108)
Aug 04 09:08:33 archer kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
Aug 04 09:08:33 archer kernel: [drm] PSP is resuming...
Aug 04 09:08:33 archer kernel: iwlwifi 0000:02:00.0: BIOS contains WGDS but no WRDS
Aug 04 09:08:33 archer kernel: nvme nvme0: Shutdown timeout set to 8 seconds
Aug 04 09:08:33 archer kernel: ata2: SATA link down (SStatus 0 SControl 300)
Aug 04 09:08:33 archer kernel: ata1: SATA link down (SStatus 0 SControl 300)
Aug 04 09:08:33 archer kernel: psmouse serio3: synaptics: queried max coordinates: x [..5658], y [..4736]
Aug 04 09:08:33 archer kernel: psmouse serio3: synaptics: queried min coordinates: x [1286..], y [1114..]
Aug 04 09:08:33 archer kernel: Bluetooth: hci0: command 0xfc09 tx timeout
Aug 04 09:08:33 archer kernel: [drm:gfx_v9_0_hw_init [amdgpu]] *ERROR* KCQ enable failed (scratch(0xC040)=0xCAFEDEAD)
Aug 04 09:08:33 archer kernel: [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <gfx_v9_0> failed -22
Aug 04 09:08:33 archer kernel: [drm:amdgpu_device_resume [amdgpu]] *ERROR* amdgpu_device_ip_resume failed (-22).
Aug 04 09:08:33 archer kernel: dpm_run_callback(): pci_pm_resume+0x0/0x90 returns -22
Aug 04 09:08:33 archer kernel: PM: Device 0000:04:00.0 failed to resume async: error -22
Aug 04 09:08:33 archer kernel: OOM killer enabled.
Aug 04 09:08:33 archer kernel: Restarting tasks ... done.
Aug 04 09:08:33 archer wpa_supplicant[792]: wlp2s0: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=WORLD
Aug 04 09:08:33 archer kernel: PM: suspend exit
Aug 04 09:08:33 archer kernel: PM: suspend entry (shallow)

Offline

Board footer

Powered by FluxBB