You are not logged in.

#1 2024-09-23 22:12:50

avalonv
Member
Registered: 2024-09-23
Posts: 2

[Solved] Suspend fails on consecutive attempts

When I suspend my system with `systemctl suspend` the first time after a boot, it works normally.

However subsequent attempts freeze the system and either fail to suspend or take an unusually long amount of time (+30 seconds).

Normal suspend dmesg:

[  655.858404] r8169 0000:08:00.0 enp8s0: Link is Down
[  656.022540] PM: suspend entry (deep)
[  656.026554] Filesystems sync: 0.004 seconds
[  656.027148] Freezing user space processes
[  656.028366] Freezing user space processes completed (elapsed 0.001 seconds)
[  656.028368] OOM killer disabled.
[  656.028369] Freezing remaining freezable tasks
[  656.029459] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[  656.029477] printk: Suspending console(s) (use no_console_suspend to debug)
[  656.180018] serial 00:05: disabled
[  656.210347] sd 4:0:0:0: [sdb] Synchronizing SCSI cache
[  656.210368] sd 5:0:0:0: [sdc] Synchronizing SCSI cache
[  656.210369] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  656.210885] ata5.00: Entering standby power mode
[  656.211385] ata1.00: Entering standby power mode
[  656.212301] ata6.00: Entering standby power mode
[  656.845207] amdgpu 0000:0b:00.0: amdgpu: MODE1 reset
[  656.845214] amdgpu 0000:0b:00.0: amdgpu: GPU mode1 reset
[  656.845377] amdgpu 0000:0b:00.0: amdgpu: GPU smu mode1 reset
[  657.400963] ACPI: PM: Preparing to enter system sleep state S3
[  657.930907] ACPI: PM: Saving platform NVS memory
[  657.930988] Disabling non-boot CPUs ...
[  657.932582] smpboot: CPU 1 is now offline
[  657.934446] smpboot: CPU 2 is now offline
[  657.936299] smpboot: CPU 3 is now offline
[  657.938013] smpboot: CPU 4 is now offline
[  657.939834] smpboot: CPU 5 is now offline
[  657.941658] smpboot: CPU 6 is now offline
[  657.941945] Spectre V2 : Update user space SMT mitigation: STIBP off
[  657.943334] smpboot: CPU 7 is now offline
[  657.944997] smpboot: CPU 8 is now offline
[  657.946702] smpboot: CPU 9 is now offline
[  657.948356] smpboot: CPU 10 is now offline
[  657.950021] smpboot: CPU 11 is now offline
[  657.950643] ACPI: PM: Low-level resume complete
[  657.950666] ACPI: PM: Restoring platform NVS memory
[  657.950722] LVT offset 0 assigned for vector 0x400
[  657.951358] Enabling non-boot CPUs ...
[  657.951534] smpboot: Booting Node 0 Processor 1 APIC 0x2
[  657.954164] ACPI: \_PR_.C002: Found 2 idle states
[  657.954515] CPU1 is up
[  657.954645] smpboot: Booting Node 0 Processor 2 APIC 0x4
[  657.957110] ACPI: \_PR_.C004: Found 2 idle states
[  657.957795] CPU2 is up
[  657.957905] smpboot: Booting Node 0 Processor 3 APIC 0x6
[  657.960361] ACPI: \_PR_.C006: Found 2 idle states
[  657.961147] CPU3 is up
[  657.961250] smpboot: Booting Node 0 Processor 4 APIC 0x8
[  657.963722] ACPI: \_PR_.C008: Found 2 idle states
[  657.964484] CPU4 is up
[  657.964595] smpboot: Booting Node 0 Processor 5 APIC 0xa
[  657.967065] ACPI: \_PR_.C00A: Found 2 idle states
[  657.967834] CPU5 is up
[  657.967958] smpboot: Booting Node 0 Processor 6 APIC 0x1
[  657.970461] ACPI: \_PR_.C001: Found 2 idle states
[  657.971218] Spectre V2 : Update user space SMT mitigation: STIBP always-on
[  657.971231] CPU6 is up
[  657.971329] smpboot: Booting Node 0 Processor 7 APIC 0x3
[  657.973798] ACPI: \_PR_.C003: Found 2 idle states
[  657.974538] CPU7 is up
[  657.974634] smpboot: Booting Node 0 Processor 8 APIC 0x5
[  657.977108] ACPI: \_PR_.C005: Found 2 idle states
[  657.977874] CPU8 is up
[  657.978035] smpboot: Booting Node 0 Processor 9 APIC 0x7
[  657.980516] ACPI: \_PR_.C007: Found 2 idle states
[  657.981219] CPU9 is up
[  657.981309] smpboot: Booting Node 0 Processor 10 APIC 0x9
[  657.983800] ACPI: \_PR_.C009: Found 2 idle states
[  657.984565] CPU10 is up
[  657.984672] smpboot: Booting Node 0 Processor 11 APIC 0xb
[  657.987153] ACPI: \_PR_.C00B: Found 2 idle states
[  657.987924] CPU11 is up
[  657.988992] ACPI: PM: Waking up from system sleep state S3
[  657.992482] xhci_hcd 0000:02:00.0: xHC error in resume, USBSTS 0x401, Reinit
[  657.992484] usb usb1: root hub lost power or was reset
[  657.992486] usb usb2: root hub lost power or was reset
[  657.993165] serial 00:05: activated
[  657.993999] [drm] PCIE GART of 512M enabled (table at 0x00000081FEB00000).
[  657.994023] amdgpu 0000:0b:00.0: amdgpu: PSP is resuming...
[  658.076240] nvme nvme0: 8/0/0 default/read/poll queues
[  658.076944] amdgpu 0000:0b:00.0: amdgpu: reserve 0xa00000 from 0x81fd000000 for PSP TMR
[  658.182242] amdgpu 0000:0b:00.0: amdgpu: RAS: optional ras ta ucode is not available
[  658.199681] amdgpu 0000:0b:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[  658.199683] amdgpu 0000:0b:00.0: amdgpu: SMU is resuming...
[  658.199687] amdgpu 0000:0b:00.0: amdgpu: smu driver if version = 0x0000000f, smu fw if version = 0x00000013, smu fw program = 0, version = 0x003b3100 (59.49.0)
[  658.199690] amdgpu 0000:0b:00.0: amdgpu: SMU driver if version not matched
[  658.199739] amdgpu 0000:0b:00.0: amdgpu: use vbios provided pptable
[  658.252274] amdgpu 0000:0b:00.0: amdgpu: SMU is resumed successfully!
[  658.253635] [drm] DMUB hardware initialized: version=0x02020020
[  658.307505] ata2: SATA link down (SStatus 0 SControl 300)
[  658.321233] usb 1-1: reset full-speed USB device number 2 using xhci_hcd
[  658.464425] ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  658.466666] sd 4:0:0:0: [sdb] Starting disk
[  658.470100] ata5.00: configured for UDMA/133
[  658.470414] HDR SB:01 1a 02 00 44 7e 91 42 e4 3b ee 7c 60 1d 59 09
[  658.470416] HDR SB:3a 3d 47 40 90 01 71 0b 90 01 90 01 00 00 00 00
[  658.470486] HDR SB:01 1a 02 00 44 7e 91 42 e4 3b ee 7c 60 1d 59 09
[  658.470487] HDR SB:3a 3d 47 40 90 01 71 0b 90 01 90 01 00 00 00 00
[  658.591019] [drm] kiq ring mec 2 pipe 1 q 0
[  658.595686] [drm] JPEG decode initialized successfully.
[  658.595717] amdgpu 0000:0b:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[  658.595719] amdgpu 0000:0b:00.0: amdgpu: ring gfx_0.1.0 uses VM inv eng 1 on hub 0
[  658.595720] amdgpu 0000:0b:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 4 on hub 0
[  658.595721] amdgpu 0000:0b:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 5 on hub 0
[  658.595722] amdgpu 0000:0b:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
[  658.595723] amdgpu 0000:0b:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
[  658.595724] amdgpu 0000:0b:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
[  658.595725] amdgpu 0000:0b:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
[  658.595726] amdgpu 0000:0b:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
[  658.595727] amdgpu 0000:0b:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
[  658.595728] amdgpu 0000:0b:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 12 on hub 0
[  658.595729] amdgpu 0000:0b:00.0: amdgpu: ring sdma0 uses VM inv eng 13 on hub 0
[  658.595730] amdgpu 0000:0b:00.0: amdgpu: ring sdma1 uses VM inv eng 14 on hub 0
[  658.595731] amdgpu 0000:0b:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
[  658.595732] amdgpu 0000:0b:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 8
[  658.595733] amdgpu 0000:0b:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 8
[  658.595734] amdgpu 0000:0b:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 8
[  658.597131] amdgpu 0000:0b:00.0: amdgpu: Failed to set manual fan control mode
[  658.602388] OOM killer enabled.
[  658.602390] Restarting tasks ... done.
[  658.602728] random: crng reseeded on system resumption
[  658.602732] PM: suspend exit

Unusually long suspend dmesg:

[  676.902295] r8169 0000:08:00.0 enp8s0: Link is Down
[  676.989345] PM: suspend entry (deep)
[  676.994344] Filesystems sync: 0.004 seconds
[  676.994893] Freezing user space processes
[  676.996130] Freezing user space processes completed (elapsed 0.001 seconds)
[  676.996132] OOM killer disabled.
[  676.996133] Freezing remaining freezable tasks
[  679.501164] usb 1-5: device descriptor read/64, error -110
[  679.938122] usb 1-5: new high-speed USB device number 8 using xhci_hcd
[  685.261328] usb 1-5: device descriptor read/64, error -110
[  697.003071] Freezing remaining freezable tasks failed after 20.007 seconds (0 tasks refusing to freeze, wq_busy=1):
[  697.003079] Showing freezable workqueues that are still busy:
[  697.003081] workqueue events_freezable: flags=0x4
[  697.003085]   pwq 42: cpus=10 node=0 flags=0x0 nice=0 active=0 refcnt=2
[  697.003092]     inactive: pci_pme_list_scan
[  697.003100] workqueue usb_hub_wq: flags=0x4
[  697.003102]   pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=3
[  697.003108]     in-flight: 9:hub_event
[  697.003114]     inactive: hub_event
[  697.003154] Restarting kernel threads ... done.
[  697.003350] OOM killer enabled.
[  697.003352] Restarting tasks ... done.
[  697.003687] random: crng reseeded on system resumption
[  697.003694] PM: suspend exit
[  697.003747] PM: suspend entry (s2idle)
[  697.011660] Filesystems sync: 0.007 seconds
[  697.011863] Freezing user space processes
[  697.013065] Freezing user space processes completed (elapsed 0.001 seconds)
[  697.013067] OOM killer disabled.
[  697.013068] Freezing remaining freezable tasks
[  700.834368] usb 1-5: device descriptor read/64, error -110
[  700.942799] usb usb1-port5: attempt power cycle
[  701.344492] usb 1-5: new high-speed USB device number 9 using xhci_hcd
[  706.145613] usb 1-5: Device not responding to setup address.
[  711.154976] usb 1-5: Device not responding to setup address.
[  711.361012] usb 1-5: device not accepting address 9, error -71
[  711.691116] usb 1-5: new high-speed USB device number 10 using xhci_hcd
[  716.491814] usb 1-5: Device not responding to setup address.
[  717.018272] Freezing remaining freezable tasks failed after 20.005 seconds (0 tasks refusing to freeze, wq_busy=1):
[  717.018280] Showing freezable workqueues that are still busy:
[  717.018282] workqueue events_freezable: flags=0x4
[  717.018285]   pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=0 refcnt=2
[  717.018293]     inactive: pci_pme_list_scan
[  717.018301] workqueue usb_hub_wq: flags=0x4
[  717.018304]   pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3
[  717.018309]     in-flight: 9:hub_event hub_event
[  717.018353] Restarting kernel threads ... done.
[  717.018705] OOM killer enabled.
[  717.018707] Restarting tasks ... done.
[  717.019016] random: crng reseeded on system resumption
[  717.019022] PM: suspend exit

System information:
Host: B450M-HDV R4.0
Kernel: 6.10.10-arch1-1
DE: Plasma 6.1.5
CPU: AMD Ryzen 5 5600X
GPU: AMD ATI Radeon RX 6600

Last edited by avalonv (2024-09-24 21:30:24)

Offline

#2 2024-09-24 08:53:21

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,524
Website

Re: [Solved] Suspend fails on consecutive attempts

Is this a new issue? Does it also occur with the linux-lts kernel?

Offline

#3 2024-09-24 21:30:00

avalonv
Member
Registered: 2024-09-23
Posts: 2

Re: [Solved] Suspend fails on consecutive attempts

Ironically enough, after installing linux-lts, I can't replicate it on either kernel.

I haven't changed anything else about my configuration besides running grub-mkconfig but I can no longer reproduce it hmm

I guess I'll mark this as solved for now.

Offline

Board footer

Powered by FluxBB