libahci driver and power switching HDD on newer kernels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've got some problems with newer kernels during hibernation and
waking up from hibernation.
The symptom of the issue is that there is HDD power switching executed
after I run pm-hibernate command and the same HDD power switching
during the wake up process from hibernation.

As the HDD power switch process I mean: powering off my HDD and
immediately after that powering on the HDD. This process in my case
takes about 1 second.

Here there are more details about both operations: hibernation and waking up:

Hibernation process:
1. in shell I type: "pm-hibernate"
2. kernel is preparing system to hibernation
3. hdd is powered off and immediately powered on - it takes about one
second or less to do the power switch
4. kernel is saving mem image to swap partition with printing progress
in percentage
5. PC and HDD are powered off

Waking up process:
1. my PC and HDD are powered off, I'm pressing any key on my keyboard
so it is powering up my PC
2. kernel is starting, recognizes that there is mem image on swap and
starting to load it - printing progress percentage
3. hdd is powered off and immediately powered on - it takes about one
second or less to do the power switch
4. system is ready to use and working fine

So to sum up - in both processes described above the problematic step
is the step 3.

I noticed this issue when I switched kernel 6.4.12 to 6.7.5. So far I
haven't used git bisect yet to find the exact offending commit so the
change might be introduced somewhere between 6.4.12 and 6.7.5.
In 6.4.12 I have not such an issues with HDD power switching. The
issues exist in 6.7.5 and newer ones and probably somewhere between
6.4.12 and 6.7.5.

I noticed some errors in dmesg coming from ahci driver like these:
Sep 11 15:49:30 localhost kernel: ahci 0000:00:17.0: port does not
support device sleep

and ACPI BIOS errors like these:
Sep 11 15:49:30 localhost kernel: ACPI BIOS Error (bug): Could not
resolve symbol [\_SB.PCI0.SAT0.PRT0._GTF.DSSP], AE_NOT_FOUND
(20240322/psargs-330)

Please take a look at included dmesg in the attachment.

The mainboard I use is: Gigabyte Z370 HD3P with the newest available
BIOS update.

I'd like to ask if this is known issue and if yes how could I fix it?
I'm not quite sure where exactly is the issue: in kernel or in my Gigabyte BIOS?
Sep 11 15:48:14 localhost kernel: EXT4-fs (sdc3): re-mounted 74f580dd-0819-46ea-bb1d-761996f80da2 r/w. Quota mode: none.
Sep 11 15:48:14 localhost kernel: PM: hibernation: hibernation entry
Sep 11 15:48:14 localhost kernel: Filesystems sync: 0.001 seconds
Sep 11 15:49:30 localhost kernel: Freezing user space processes
Sep 11 15:49:30 localhost kernel: Freezing user space processes completed (elapsed 0.001 seconds)
Sep 11 15:49:30 localhost kernel: OOM killer disabled.
Sep 11 15:49:30 localhost kernel: PM: hibernation: Preallocating image memory
Sep 11 15:49:30 localhost kernel: PM: hibernation: Allocated 766253 pages for snapshot
Sep 11 15:49:30 localhost kernel: PM: hibernation: Allocated 3065012 kbytes in 0.36 seconds (8513.92 MB/s)
Sep 11 15:49:30 localhost kernel: Freezing remaining freezable tasks
Sep 11 15:49:30 localhost kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
Sep 11 15:49:30 localhost kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Sep 11 15:49:30 localhost kernel: serial 00:04: disabled
Sep 11 15:49:30 localhost kernel: parport_pc 00:02: disabled
Sep 11 15:49:30 localhost kernel: ata2.00: Entering standby power mode
Sep 11 15:49:30 localhost kernel: ata4.00: Entering standby power mode
Sep 11 15:49:30 localhost kernel: ata1.00: Entering standby power mode
Sep 11 15:49:30 localhost kernel: ACPI: PM: Preparing to enter system sleep state S4
Sep 11 15:49:30 localhost kernel: ACPI: PM: Saving platform NVS memory
Sep 11 15:49:30 localhost kernel: Disabling non-boot CPUs ...
Sep 11 15:49:30 localhost kernel: smpboot: CPU 1 is now offline
Sep 11 15:49:30 localhost kernel: smpboot: CPU 2 is now offline
Sep 11 15:49:30 localhost kernel: smpboot: CPU 3 is now offline
Sep 11 15:49:30 localhost kernel: smpboot: CPU 4 is now offline
Sep 11 15:49:30 localhost kernel: smpboot: CPU 5 is now offline
Sep 11 15:49:30 localhost kernel: smpboot: CPU 6 is now offline
Sep 11 15:49:30 localhost kernel: smpboot: CPU 7 is now offline
Sep 11 15:49:30 localhost kernel: smpboot: CPU 8 is now offline
Sep 11 15:49:30 localhost kernel: smpboot: CPU 9 is now offline
Sep 11 15:49:30 localhost kernel: smpboot: CPU 10 is now offline
Sep 11 15:49:30 localhost kernel: smpboot: CPU 11 is now offline
Sep 11 15:49:30 localhost kernel: PM: hibernation: Creating image:
Sep 11 15:49:30 localhost kernel: PM: hibernation: Need to copy 756937 pages
Sep 11 15:49:30 localhost kernel: ACPI: PM: Restoring platform NVS memory
Sep 11 15:49:30 localhost kernel: Enabling non-boot CPUs ...
Sep 11 15:49:30 localhost kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
Sep 11 15:49:30 localhost kernel: CPU1 is up
Sep 11 15:49:30 localhost kernel: smpboot: Booting Node 0 Processor 2 APIC 0x4
Sep 11 15:49:30 localhost kernel: CPU2 is up
Sep 11 15:49:30 localhost kernel: smpboot: Booting Node 0 Processor 3 APIC 0x6
Sep 11 15:49:30 localhost kernel: CPU3 is up
Sep 11 15:49:30 localhost kernel: smpboot: Booting Node 0 Processor 4 APIC 0x8
Sep 11 15:49:30 localhost kernel: CPU4 is up
Sep 11 15:49:30 localhost kernel: smpboot: Booting Node 0 Processor 5 APIC 0xa
Sep 11 15:49:30 localhost kernel: CPU5 is up
Sep 11 15:49:30 localhost kernel: smpboot: Booting Node 0 Processor 6 APIC 0x1
Sep 11 15:49:30 localhost kernel: CPU6 is up
Sep 11 15:49:30 localhost kernel: smpboot: Booting Node 0 Processor 7 APIC 0x3
Sep 11 15:49:30 localhost kernel: CPU7 is up
Sep 11 15:49:30 localhost kernel: smpboot: Booting Node 0 Processor 8 APIC 0x5
Sep 11 15:49:30 localhost kernel: CPU8 is up
Sep 11 15:49:30 localhost kernel: smpboot: Booting Node 0 Processor 9 APIC 0x7
Sep 11 15:49:30 localhost kernel: CPU9 is up
Sep 11 15:49:30 localhost kernel: smpboot: Booting Node 0 Processor 10 APIC 0x9
Sep 11 15:49:30 localhost kernel: CPU10 is up
Sep 11 15:49:30 localhost kernel: smpboot: Booting Node 0 Processor 11 APIC 0xb
Sep 11 15:49:30 localhost kernel: CPU11 is up
Sep 11 15:49:30 localhost kernel: ACPI: PM: Waking up from system sleep state S4
Sep 11 15:49:30 localhost kernel: usb usb1: root hub lost power or was reset
Sep 11 15:49:30 localhost kernel: usb usb2: root hub lost power or was reset
Sep 11 15:49:30 localhost kernel: usb usb3: root hub lost power or was reset
Sep 11 15:49:30 localhost kernel: usb usb4: root hub lost power or was reset
Sep 11 15:49:30 localhost kernel: parport_pc 00:02: activated
Sep 11 15:49:30 localhost kernel: serial 00:04: activated
Sep 11 15:49:30 localhost kernel: sd 0:0:0:0: [sda] Starting disk
Sep 11 15:49:30 localhost kernel: sd 1:0:0:0: [sdb] Starting disk
Sep 11 15:49:30 localhost kernel: sd 3:0:0:0: [sdc] Starting disk
Sep 11 15:49:30 localhost kernel: ata5: SATA link down (SStatus 4 SControl 300)
Sep 11 15:49:30 localhost kernel: ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Sep 11 15:49:30 localhost kernel: ata3: SATA link down (SStatus 4 SControl 300)
Sep 11 15:49:30 localhost kernel: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Sep 11 15:49:30 localhost kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.PRT1._GTF.DSSP], AE_NOT_FOUND (20240322/psargs-330)
Sep 11 15:49:30 localhost kernel: ACPI Error: Aborting method \_SB.PCI0.SAT0.PRT1._GTF due to previous error (AE_NOT_FOUND) (20240322/psparse-529)
Sep 11 15:49:30 localhost kernel: ata2.00: supports DRM functions and may not be fully accessible
Sep 11 15:49:30 localhost kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.PRT0._GTF.DSSP], AE_NOT_FOUND (20240322/psargs-330)
Sep 11 15:49:30 localhost kernel: ACPI Error: Aborting method \_SB.PCI0.SAT0.PRT0._GTF due to previous error (AE_NOT_FOUND) (20240322/psparse-529)
Sep 11 15:49:30 localhost kernel: ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Sep 11 15:49:30 localhost kernel: ata4: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Sep 11 15:49:30 localhost kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.PRT0._GTF.DSSP], AE_NOT_FOUND (20240322/psargs-330)
Sep 11 15:49:30 localhost kernel: ACPI Error: Aborting method \_SB.PCI0.SAT0.PRT0._GTF due to previous error (AE_NOT_FOUND) (20240322/psparse-529)
Sep 11 15:49:30 localhost kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.PRT3._GTF.DSSP], AE_NOT_FOUND (20240322/psargs-330)
Sep 11 15:49:30 localhost kernel: ACPI Error: Aborting method \_SB.PCI0.SAT0.PRT3._GTF due to previous error (AE_NOT_FOUND) (20240322/psparse-529)
Sep 11 15:49:30 localhost kernel: ata1.00: configured for UDMA/133
Sep 11 15:49:30 localhost kernel: ata1.00: Entering active power mode
Sep 11 15:49:30 localhost kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.PRT5._GTF.DSSP], AE_NOT_FOUND (20240322/psargs-330)
Sep 11 15:49:30 localhost kernel: ACPI Error: Aborting method \_SB.PCI0.SAT0.PRT5._GTF due to previous error (AE_NOT_FOUND) (20240322/psparse-529)
Sep 11 15:49:30 localhost kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.PRT1._GTF.DSSP], AE_NOT_FOUND (20240322/psargs-330)
Sep 11 15:49:30 localhost kernel: ACPI Error: Aborting method \_SB.PCI0.SAT0.PRT1._GTF due to previous error (AE_NOT_FOUND) (20240322/psparse-529)
Sep 11 15:49:30 localhost kernel: ata2.00: supports DRM functions and may not be fully accessible
Sep 11 15:49:30 localhost kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.PRT5._GTF.DSSP], AE_NOT_FOUND (20240322/psargs-330)
Sep 11 15:49:30 localhost kernel: ACPI Error: Aborting method \_SB.PCI0.SAT0.PRT5._GTF due to previous error (AE_NOT_FOUND) (20240322/psparse-529)
Sep 11 15:49:30 localhost kernel: ata6.00: configured for UDMA/100
Sep 11 15:49:30 localhost kernel: ata2.00: configured for UDMA/133
Sep 11 15:49:30 localhost kernel: ata2.00: Entering active power mode
Sep 11 15:49:30 localhost kernel: ahci 0000:00:17.0: port does not support device sleep
Sep 11 15:49:30 localhost kernel: ata2.00: Enabling discard_zeroes_data
Sep 11 15:49:30 localhost kernel: usb 1-10: reset low-speed USB device number 2 using xhci_hcd
Sep 11 15:49:30 localhost kernel: OOM killer enabled.
Sep 11 15:49:30 localhost kernel: Restarting tasks ... done.
Sep 11 15:49:30 localhost kernel: PM: hibernation: hibernation exit
Sep 11 15:49:30 localhost kernel: EXT4-fs (sdc3): re-mounted 74f580dd-0819-46ea-bb1d-761996f80da2 r/w. Quota mode: none.
Sep 11 15:49:31 localhost kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.SAT0.PRT3._GTF.DSSP], AE_NOT_FOUND (20240322/psargs-330)
Sep 11 15:49:31 localhost kernel: ACPI Error: Aborting method \_SB.PCI0.SAT0.PRT3._GTF due to previous error (AE_NOT_FOUND) (20240322/psparse-529)
Sep 11 15:49:31 localhost kernel: ata4.00: configured for UDMA/133
Sep 11 15:49:32 localhost kernel: e1000e 0000:00:1f.6 eth0: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None


[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux