Bug 47831

Summary: Long delays when waking up from suspend-to-ram on Gigabyte MB
Product: ACPI Reporter: Mehmet Giritli (mehmet)
Component: Power-Sleep-WakeAssignee: Aaron Lu (aaron.lu)
Status: CLOSED WILL_NOT_FIX    
Severity: normal CC: alan, info, matthew4196, rui.zhang
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.5.3 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg
dmesg after resume

Description Mehmet Giritli 2012-09-23 09:51:58 UTC
This is the dmesg I get after a delayed wake up:

[ 3178.962307] nfsd: last server has exited, flushing export cache
[ 3179.100031] wlan0: deauthenticating from 00:25:9c:42:39:2a by local choice (reason=3)
[ 3179.149969] cfg80211: Calling CRDA to update world regulatory domain
[ 3179.970156] ata1.00: configured for UDMA/133
[ 3179.970168] ata1: EH complete
[ 3180.059108] ata2.00: configured for UDMA/133
[ 3180.059117] ata2: EH complete
[ 3180.067181] ata4.00: configured for UDMA/133
[ 3180.067191] ata4: EH complete
[ 3180.362327] EXT4-fs (sdb2): re-mounted. Opts: commit=0
[ 3180.370345] EXT4-fs (sdb3): re-mounted. Opts: commit=0
[ 3180.621192] EXT4-fs (sdb6): re-mounted. Opts: commit=0
[ 3180.659779] EXT4-fs (dm-0): re-mounted. Opts: commit=0
[ 3180.664484] EXT4-fs (dm-1): re-mounted. Opts: commit=0
[ 3180.669042] EXT4-fs (sdb8): re-mounted. Opts: commit=0
[ 3180.671895] EXT4-fs (sdc1): re-mounted. Opts: commit=0
[ 3181.439943] PM: Syncing filesystems ... done.
[ 3181.556925] Freezing user space processes ... (elapsed 0.01 seconds) done.
[ 3181.568452] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[ 3181.579440] Suspending console(s) (use no_console_suspend to debug)
[ 3181.579880] sd 3:0:0:0: [sdc] Synchronizing SCSI cache
[ 3181.579910] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[ 3181.579943] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 3181.580037] serial 00:08: disabled
[ 3181.580047] sd 1:0:0:0: [sdb] Stopping disk
[ 3181.580089] sd 0:0:0:0: [sda] Stopping disk
[ 3181.580227] sd 3:0:0:0: [sdc] Stopping disk
[ 3181.580562] ACPI handle has no context!
[ 3181.580566] ACPI handle has no context!
[ 3181.995677] ACPI handle has no context!
[ 3182.118450] PM: suspend of devices complete after 539.836 msecs
[ 3182.118597] PM: late suspend of devices complete after 0.145 msecs
[ 3182.118729] pcieport 0000:00:09.0: wake-up capability enabled by ACPI
[ 3182.129458] pcieport 0000:00:07.0: wake-up capability enabled by ACPI
[ 3182.140478] ohci_hcd 0000:00:14.5: wake-up capability enabled by ACPI
[ 3182.140567] ehci_hcd 0000:00:13.2: wake-up capability enabled by ACPI
[ 3182.151380] ohci_hcd 0000:00:13.1: wake-up capability enabled by ACPI
[ 3182.151400] ohci_hcd 0000:00:13.0: wake-up capability enabled by ACPI
[ 3182.151429] ehci_hcd 0000:00:12.2: wake-up capability enabled by ACPI
[ 3182.162358] ohci_hcd 0000:00:12.1: wake-up capability enabled by ACPI
[ 3182.162379] ohci_hcd 0000:00:12.0: wake-up capability enabled by ACPI
[ 3182.162399] PM: noirq suspend of devices complete after 43.880 msecs
[ 3182.162926] ACPI: Preparing to enter system sleep state S3
[ 3182.167448] PM: Saving platform NVS memory
[ 3182.167462] Disabling non-boot CPUs ...
[ 3182.168814] CPU 1 is now offline
[ 3182.170402] CPU 2 is now offline
[ 3182.172009] CPU 3 is now offline
[ 3182.173481] CPU 4 is now offline
[ 3182.174927] CPU 5 is now offline
[ 3182.176773] ACPI: Low-level resume complete
[ 3182.176802] PM: Restoring platform NVS memory
[ 3182.176815] PCI-DMA: Resuming GART IOMMU
[ 3182.176815] PCI-DMA: Restoring GART aperture settings
[ 3182.177144] Enabling non-boot CPUs ...
[ 3182.177206] Booting Node 0 Processor 1 APIC 0x1
[ 3182.188219] [Firmware Bug]: cpu 1, try to use APIC500 (LVT offset 0) for vector 0x400, but the register is already in use for vector 0xf9 on another cpu
[ 3182.188220] perf: IBS APIC setup failed on cpu #1
[ 3182.190301] Switch to broadcast mode on CPU1
[ 3182.190530] CPU1 is up
[ 3182.190588] Booting Node 0 Processor 2 APIC 0x2
[ 3182.201596] [Firmware Bug]: cpu 2, try to use APIC500 (LVT offset 0) for vector 0x400, but the register is already in use for vector 0xf9 on another cpu
[ 3182.201598] perf: IBS APIC setup failed on cpu #2
[ 3182.203686] Switch to broadcast mode on CPU2
[ 3182.203837] CPU2 is up
[ 3182.203908] Booting Node 0 Processor 3 APIC 0x3
[ 3182.214922] [Firmware Bug]: cpu 3, try to use APIC500 (LVT offset 0) for vector 0x400, but the register is already in use for vector 0xf9 on another cpu
[ 3182.214923] perf: IBS APIC setup failed on cpu #3
[ 3182.217003] Switch to broadcast mode on CPU3
[ 3182.217241] CPU3 is up
[ 3182.217297] Booting Node 0 Processor 4 APIC 0x4
[ 3182.228311] [Firmware Bug]: cpu 4, try to use APIC500 (LVT offset 0) for vector 0x400, but the register is already in use for vector 0xf9 on another cpu
[ 3182.228312] perf: IBS APIC setup failed on cpu #4
[ 3182.230392] Switch to broadcast mode on CPU4
[ 3182.230615] CPU4 is up
[ 3182.230722] Booting Node 0 Processor 5 APIC 0x5
[ 3182.241750] [Firmware Bug]: cpu 5, try to use APIC500 (LVT offset 0) for vector 0x400, but the register is already in use for vector 0xf9 on another cpu
[ 3182.241751] perf: IBS APIC setup failed on cpu #5
[ 3182.243830] Switch to broadcast mode on CPU5
[ 3182.244056] CPU5 is up
[ 3182.250492] ACPI: Waking up from system sleep state S3
[ 3182.250808] ohci_hcd 0000:00:12.0: wake-up capability disabled by ACPI
[ 3182.250830] ohci_hcd 0000:00:12.1: wake-up capability disabled by ACPI
[ 3182.261226] ehci_hcd 0000:00:12.2: wake-up capability disabled by ACPI
[ 3182.261252] ohci_hcd 0000:00:13.0: wake-up capability disabled by ACPI
[ 3182.261274] ohci_hcd 0000:00:13.1: wake-up capability disabled by ACPI
[ 3182.272197] ehci_hcd 0000:00:13.2: wake-up capability disabled by ACPI
[ 3182.272352] ohci_hcd 0000:00:14.5: wake-up capability disabled by ACPI
[ 3182.322969] PM: noirq resume of devices complete after 72.494 msecs
[ 3182.323072] PM: early resume of devices complete after 0.057 msecs
[ 3182.323511] saa7134[0]: board init: gpio is 38500
[ 3182.323512] saa7134[0]: there are different flyvideo cards with different tuners
[ 3182.323512] saa7134[0]: out there, you might have to use the tuner=<nr> insmod
[ 3182.323512] saa7134[0]: option to override the default value.
[ 3182.323684] pcieport 0000:00:07.0: wake-up capability disabled by ACPI
[ 3182.323703] pcieport 0000:00:09.0: wake-up capability disabled by ACPI
[ 3182.324042] serial 00:08: activated
[ 3182.523687] usb 1-4: reset high-speed USB device number 4 using ehci_hcd
[ 3182.627531] ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 3182.627572] ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 3182.628503] ata6.00: configured for UDMA/100
[ 3182.629498] ata3: SATA link down (SStatus 0 SControl 300)
[ 3182.638507] ata9: SATA link down (SStatus 0 SControl 300)
[ 3182.638542] ata13: SATA link down (SStatus 0 SControl 300)
[ 3182.638551] ata15: SATA link down (SStatus 0 SControl 300)
[ 3182.638576] ata12: SATA link down (SStatus 0 SControl 300)
[ 3182.638606] ata10: SATA link down (SStatus 0 SControl 300)
[ 3182.638635] ata8: SATA link down (SStatus 0 SControl 300)
[ 3182.640509] ata14: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 3182.640541] ata11: SATA link down (SStatus 0 SControl 300)
[ 3182.640576] ata7: SATA link down (SStatus 0 SControl 300)
[ 3182.640697] ata14.00: configured for UDMA/66
[ 3182.720833] ata5.00: configured for UDMA/100
[ 3182.874040] firewire_core 0000:07:0e.0: rediscovered device fw0
[ 3182.878043] ata16: SATA link down (SStatus 0 SControl 300)
[ 3182.889041] ata16: exception Emask 0x10 SAct 0x0 SErr 0x4060000 action 0xe frozen t4
[ 3182.889042] ata16: irq_stat 0x00000040, connection status changed
[ 3182.889046] ata16: hard resetting link
[ 3182.909456] snd-usb-audio 1-4:1.0: no reset_resume for driver snd-usb-audio?
[ 3182.909458] snd-usb-audio 1-4:1.1: no reset_resume for driver snd-usb-audio?
[ 3184.816506] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 3184.838030] ata2.00: configured for UDMA/133
[ 3184.848487] sd 1:0:0:0: [sdb] Starting disk
[ 3185.427365] ata16: COMRESET failed (errno=-32)
[ 3185.427369] ata16: reset failed (errno=-32), retrying in 8 secs
[ 3187.616353] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 3187.619477] ata1.00: configured for UDMA/133
[ 3187.630374] sd 0:0:0:0: [sda] Starting disk
[ 3187.667248] ata4: link is slow to respond, please be patient (ready=0)
[ 3190.925281] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 3190.943100] ata4.00: configured for UDMA/133
[ 3190.953284] sd 3:0:0:0: [sdc] Starting disk
[ 3192.870701] ata16: limiting SATA link speed to 1.5 Gbps
[ 3192.870703] ata16: hard resetting link
[ 3193.592400] ata16: SATA link down (SStatus 0 SControl 310)
[ 3193.603367] ata16: EH complete
[ 3193.605443] PM: resume of devices complete after 11303.053 msecs
[ 3193.661703] usb 2-2: USB disconnect, device number 4
[ 3193.661588] Restarting tasks ... done.
[ 3193.746033] ata16: exception Emask 0x10 SAct 0x0 SErr 0x4060000 action 0xe frozen
[ 3193.746036] ata16: irq_stat 0x00000040, connection status changed
[ 3193.746070] ata16: hard resetting link
[ 3194.013673] usb 5-2: new full-speed USB device number 7 using ohci_hcd
[ 3194.049523] ata1.00: configured for UDMA/133
[ 3194.049534] ata1: EH complete
[ 3194.133585] ata2.00: configured for UDMA/133
[ 3194.133594] ata2: EH complete
[ 3194.141451] usb 5-2: device descriptor read/64, error -62
[ 3194.141774] ata4.00: configured for UDMA/133
[ 3194.141783] ata4: EH complete
[ 3194.265409] EXT4-fs (sdb2): re-mounted. Opts: commit=0
[ 3194.273129] EXT4-fs (sdb3): re-mounted. Opts: commit=0
[ 3194.368975] usb 5-2: device descriptor read/64, error -62
[ 3194.469826] ata16: SATA link down (SStatus 0 SControl 300)
[ 3194.480263] EXT4-fs (sdb6): re-mounted. Opts: commit=0
[ 3194.480734] ata16: EH complete
[ 3194.489801] EXT4-fs (dm-0): re-mounted. Opts: commit=0
[ 3194.494829] EXT4-fs (dm-1): re-mounted. Opts: commit=0
[ 3194.498927] EXT4-fs (sdb8): re-mounted. Opts: commit=0
[ 3194.501871] EXT4-fs (sdc1): re-mounted. Opts: commit=0
[ 3194.592576] usb 5-2: new full-speed USB device number 8 using ohci_hcd
[ 3194.672211] r8169 0000:04:00.0: eth0: link down
[ 3194.719316] usb 5-2: device descriptor read/64, error -62
[ 3194.723284] r8169 0000:05:00.0: eth1: link down
[ 3194.946913] usb 5-2: device descriptor read/64, error -62
[ 3195.170494] usb 5-2: new full-speed USB device number 9 using ohci_hcd
[ 3195.571762] usb 5-2: device not accepting address 9, error -62
[ 3195.694554] usb 5-2: new full-speed USB device number 10 using ohci_hcd
[ 3196.095792] usb 5-2: device not accepting address 10, error -62
[ 3196.095818] hub 5-0:1.0: unable to enumerate USB device on port 2
[ 3202.586381] CE: hpet increased min_delta_ns to 20113 nsec


I think these parts  (for each core) are related to my problem:

[ 3182.190588] Booting Node 0 Processor 2 APIC 0x2
[ 3182.201596] [Firmware Bug]: cpu 2, try to use APIC500 (LVT offset 0) for vector 0x400, but the register is already in use for vector 0xf9 on another cpu
[ 3182.201598] perf: IBS APIC setup failed on cpu #2
[ 3182.203686] Switch to broadcast mode on CPU2
[ 3182.203837] CPU2 is up

Some internet search showed that it has to do with these Gigabyte motherboards but none of the fixes worked for me. Changing clocksource to hpet or adding acpi_skip_timer_override parameter at boot did not work (supposedly these worked for some boards to solve the problem)
Comment 1 Alan 2012-09-23 21:14:56 UTC
This appears to be the disk coming back on line taking 15 seconds.

 3192.870701] ata16: limiting SATA link speed to 1.5 Gbps
[ 3192.870703] ata16: hard resetting link

and looks like it's because we have to fall back to lower SATA speed. That points to cabling or drive problems. Fixes are either to set the 1.5Gb limit jumper on the drive, check the cables (but it could be a drive/compat funny), or force the speed with boot options. It'll probably speed your initial boot up the same amount if this is the cause.

I don't think there is anything we can "fix" here.
Comment 2 Mehmet Giritli 2012-09-24 10:56:32 UTC
Hey alan, can you tell me if there is a way to tell which disk drive ata16 is? How can I find this out? I checked the dmesg but I was not able to..
Comment 3 Mehmet Giritli 2012-09-24 11:00:10 UTC
BTW, I don't have any boot up lag at all. My problems are only with resume from STR.
Comment 4 Matthew Stapleton 2012-10-06 11:06:32 UTC
I'm also seeing a similar problem on a Asus G74S laptop running kernel: 3.5.0, although it doesn't report any other problems in dmesg.  Here is the ata layout in case that is the problem:

ata1: INTEL SSDSA2CW160G3 (SSD)
ata2: WDC WD7500BPKT-80PK4T0 (Hard Drive)
ata3: MATSHITABD-MLT UJ240AS (blueray drive)

[773524.241542] PM: Syncing filesystems ... done.
[773524.247028] Freezing user space processes ... (elapsed 0.01 seconds) done.
[773524.259663] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[773524.270901] Suspending console(s) (use no_console_suspend to debug)
[773524.271393] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[773524.271529] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[773524.271637] sd 0:0:0:0: [sda] Stopping disk
[773524.318265] sd 1:0:0:0: [sdb] Stopping disk
[773524.728062] ACPI handle has no context!
[773524.924920] PM: suspend of devices complete after 654.643 msecs
[773524.925056] PM: late suspend of devices complete after 0.135 msecs
[773524.946993] ehci_hcd 0000:00:1d.0: wake-up capability enabled by ACPI
[773524.958094] ehci_hcd 0000:00:1a.0: wake-up capability enabled by ACPI
[773524.968882] PM: noirq suspend of devices complete after 43.872 msecs
[773524.969093] ACPI: Preparing to enter system sleep state S3
[773525.075473] PM: Saving platform NVS memory
[773525.076310] Disabling non-boot CPUs ...
[773525.092939] CPU 1 is now offline
[773525.120872] CPU 2 is now offline
[773525.142872] CPU 3 is now offline
[773525.166078] CPU 4 is now offline
[773525.188798] CPU 5 is now offline
[773525.208793] CPU 6 is now offline
[773525.226700] CPU 7 is now offline
[773525.227116] Extended CMOS year: 2000
[773525.228139] ACPI: Low-level resume complete
[773525.228189] PM: Restoring platform NVS memory
[773525.228648] Extended CMOS year: 2000
[773525.228670] Enabling non-boot CPUs ...
[773525.230884] Booting Node 0 Processor 1 APIC 0x2
[773525.269158] CPU1 is up
[773525.269233] Booting Node 0 Processor 2 APIC 0x4
[773525.303120] CPU2 is up
[773525.303183] Booting Node 0 Processor 3 APIC 0x6
[773525.342065] CPU3 is up
[773525.342120] Booting Node 0 Processor 4 APIC 0x1
[773525.385047] CPU4 is up
[773525.385150] Booting Node 0 Processor 5 APIC 0x3
[773525.427052] CPU5 is up
[773525.427124] Booting Node 0 Processor 6 APIC 0x5
[773525.470003] CPU6 is up
[773525.470075] Booting Node 0 Processor 7 APIC 0x7
[773525.508981] CPU7 is up
[773525.515203] ACPI: Waking up from system sleep state S3
[773525.821656] ehci_hcd 0000:00:1a.0: wake-up capability disabled by ACPI
[773525.822006] ehci_hcd 0000:00:1d.0: wake-up capability disabled by ACPI
[773525.833345] xhci_hcd 0000:04:00.0: Refused to change power state, currently in D3
[773525.844334] xhci_hcd 0000:04:00.0: Refused to change power state, currently in D3
[773525.844575] PM: noirq resume of devices complete after 23.120 msecs
[773525.844663] PM: early resume of devices complete after 0.056 msecs
[773525.844731] ehci_hcd 0000:00:1a.0: setting latency timer to 64
[773525.844788] ehci_hcd 0000:00:1d.0: setting latency timer to 64
[773525.844803] snd_hda_intel 0000:00:1b.0: irq 46 for MSI/MSI-X
[773525.844842] ahci 0000:00:1f.2: setting latency timer to 64
[773525.857232] xhci_hcd 0000:04:00.0: Refused to change power state, currently in D3
[773526.075103] usb 1-1.4: reset high-speed USB device number 5 using ehci_hcd
[773526.161916] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[773526.163913] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[773526.163935] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[773526.163938] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[773526.164364] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[773526.164408] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[773526.164410] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[773526.165111] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[773526.165140] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[773526.165141] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[773526.165410] ata1.00: configured for UDMA/133
[773526.165462] sd 0:0:0:0: [sda] Starting disk
[773526.169721] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[773526.169723] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[773526.171614] ata3.00: configured for UDMA/100
[773528.248672] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[773528.462319] ata2.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[773528.462467] ata2.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[773528.462474] ata2.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[773528.502794] ata2.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[773528.502939] ata2.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[773528.502945] ata2.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[773528.506091] ata2.00: configured for UDMA/133
[773528.506246] sd 1:0:0:0: [sdb] Starting disk
[773540.636168] PM: resume of devices complete after 14807.981 msecs
[773540.636278] Restarting tasks ... done.
[773540.645132] video LNXVIDEO:00: Restoring backlight state
[773540.852409] microcode: CPU0 sig=0x206a7, pf=0x10, revision=0x28
[773540.855086] microcode: CPU1 sig=0x206a7, pf=0x10, revision=0x15
[773540.856423] microcode: CPU1 updated to revision 0x28, date = 2012-04-24
[773540.856431] microcode: CPU2 sig=0x206a7, pf=0x10, revision=0x15
[773540.858016] microcode: CPU2 updated to revision 0x28, date = 2012-04-24
[773540.858033] microcode: CPU3 sig=0x206a7, pf=0x10, revision=0x15
[773540.859454] microcode: CPU3 updated to revision 0x28, date = 2012-04-24
[773540.859465] microcode: CPU4 sig=0x206a7, pf=0x10, revision=0x15
[773540.861237] microcode: CPU4 updated to revision 0x28, date = 2012-04-24
[773540.861251] microcode: CPU5 sig=0x206a7, pf=0x10, revision=0x15
[773540.862800] microcode: CPU5 updated to revision 0x28, date = 2012-04-24
[773540.862810] microcode: CPU6 sig=0x206a7, pf=0x10, revision=0x15
[773540.864410] microcode: CPU6 updated to revision 0x28, date = 2012-04-24
[773540.864422] microcode: CPU7 sig=0x206a7, pf=0x10, revision=0x15
[773540.865925] microcode: CPU7 updated to revision 0x28, date = 2012-04-24
[773540.865994] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[773540.899265] microcode: Microcode Update Driver: v2.00 removed.
[773541.321814] r8169 0000:05:00.0: eth0: link down
[773541.321821] r8169 0000:05:00.0: eth0: link down
[773541.324673] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[773542.897970] r8169 0000:05:00.0: eth0: link up
[773542.906629] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Comment 5 Aaron Lu 2012-11-29 05:53:56 UTC
Hello Mehmet,

Is there a known kernel version that does not have this problem?
And it's quite surprising to see you have so many ata ports :-)

Please attach the full dmesg if possible, I need to know what kind of controller this is and what driver you are using for it.
Comment 6 Mehmet Giritli 2012-11-29 08:11:01 UTC
Created attachment 87711 [details]
dmesg

Attaching full dmesg as requested.

I feel some additional comments are necessary as well, since I filed the bug. First of all, I am pretty sure now that resume-from-s2r is not caused by my disk drives, despite the error message. I always get the similar error message and yet I don't always get the freeze. I strongly suspect that it is the nvidia display adapter driver that is to blame. I get xorg freezes when gnome-shell starts-up and I am thinking that it is making xorg freeze from time to time when resuming. 

BTW, I did jumper-limited the drive in question to 1.5 Gbps and still have the error messages. One interesting this about those ata16 error messages is that at boot time ata16 appears to be free (i.e., device appears on some other port) and after resume the device is on ata16. Is this normal?

BTW, this is the gear I got: http://www.gigabyte.com/products/product-page.aspx?pid=3258&dl=1#sp
Comment 7 Mehmet Giritli 2012-11-29 08:20:07 UTC
Created attachment 87731 [details]
dmesg after resume

This is the rest of the dmesg that I get after resume. It successfully resumed...
Comment 8 Aaron Lu 2012-11-30 03:56:30 UTC
> I strongly suspect that it is the nvidia display adapter driver that is to
> blame. I get xorg freezes when gnome-shell starts-up and I am thinking that
> it is making xorg freeze from time to time when resuming.

I think you can try blacklist the nvidia driver to see if freeze happens during suspend/resume. Maybe you can do S3 in console mode, and if you didn't get the console back after resume, you can try to ssh to the system to see if everything is OK.

> BTW, I did jumper-limited the drive in question to 1.5 Gbps and still have
> the error messages. One interesting this about those ata16 error messages is
> that at boot time ata16 appears to be free (i.e., device appears on some
> other
> port) and after resume the device is on ata16. Is this normal?

No, and ata16 doesn't have any disk attached to it; but after system is resumed, it keeps reporting connection change event, which is weird to me. Please attach your lspci result, thanks.
Comment 9 Mehmet Giritli 2012-11-30 06:35:16 UTC
00:00.0 Host bridge: Advanced Micro Devices [AMD] nee ATI RD790 Northbridge only dual slot PCI-e_GFX and HT3 K8 part
00:02.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD790 PCI to PCI bridge (external gfx0 port A)
00:04.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD790 PCI to PCI bridge (PCI express gpp port A)
00:05.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD790 PCI to PCI bridge (PCI express gpp port B)
00:07.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD790 PCI to PCI bridge (PCI express gpp port D)
00:09.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD790 PCI to PCI bridge (PCI express gpp port E)
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD790 PCI to PCI bridge (PCI express gpp port F)
00:11.0 SATA controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.1 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0 USB OHCI1 Controller
00:12.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.1 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0 USB OHCI1 Controller
00:13.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices [AMD] nee ATI SBx00 SMBus Controller (rev 3c)
00:14.1 IDE interface: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 IDE Controller
00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: Advanced Micro Devices [AMD] nee ATI SBx00 PCI to PCI Bridge
00:14.5 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: NVIDIA Corporation GT215 [GeForce GT 240] (rev a2)
01:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
02:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
03:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9128 PCIe SATA 6 Gb/s RAID controller (rev 11)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
06:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03)
06:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03)
07:07.0 Multimedia controller: Philips Semiconductors SAA7134/SAA7135HL Video Broadcast Decoder (rev 01)
07:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
Comment 10 Aaron Lu 2012-11-30 07:47:47 UTC
Hi Mehmet,

ata16 belongs to JMicron JMB363 SATA controller, and a quick Google showed this:
http://marc.info/?l=linux-ide&m=132593186712274&w=2
And that reporter solved the problem by replacing the hardware...

So I think we can involve JMicron people on this.

Show,
Can you please help? On system resume from S3, there are a lot of connection status change events reported by the sata port, pretty like the bug I attached the link above. Thanks.
Comment 11 Aaron Lu 2013-01-30 07:20:40 UTC
Hi Mehmet,

I'm afraid there is nothing I can do to solve this JMicron controller problem, the people I know of working for JMicron have all gone, I don't know who to contact.

I'll close this bug as will_not_fix due to some unknown hardware issue, please feel free to re-open it if you think otherwise.
Comment 12 infove 2013-12-21 00:47:09 UTC
Still seeing this in 3.11 kernel on Gigabyte 890 mobo with Phenom 965 with ATI 5850 video card (no Nvidia!):

[Firmware Bug]: cpu 1, try to use APIC500 (LVT offset 0) for vector 0x400, but the register is already in use for vector 0xf9 on another cpu

and experiencing long wakeup times.