[BUG] Suspend tries to suspend devices already in D3

From: Frans Pop
Date: Tue Feb 03 2009 - 03:49:58 EST


This is the second time I've hit this warning on an STR. Most times
I do *not* get the warning. The first line is an extra debug printk I added
after the first occurrence to give me the driver causing the problem.

What is different is that before this suspend I had switched to my wired
e1000e NIC and had done an ifdown on the wireless. I suspect that because
of that the wireless already was at D3 _before_ the suspend was started.

Could this be the same issue as reported by Ming Lei?

Kernel is v2.6.29-rc3-100-gf2257b7 with the following relevant extra patches:
- PCI PM: Fix suspend error paths and testing facility breakage
- ricoh_mmc: Use suspend_late/resume_early

Cheers,
FJP

kernel: iwlagn 0000:10:00.0: has incorrect power state
kernel: ------------[ cut here ]------------
kernel: WARNING: at drivers/pci/pci-driver.c:375 pci_legacy_suspend+0xd4/0x119()
kernel: Hardware name: HP Compaq 2510p Notebook PC
kernel: Modules linked in: tcp_diag inet_diag i915 drm i2c_algo_bit i2c_core ppdev parport_pc lp parport
ipv6 nfs lockd nfs_acl auth_rpcgss sunrpc ext2 coretemp hp_wmi acpi_cpufreq loop snd_hda_codec_analog arc4
snd_hda_intel ecb snd_hda_codec snd_pcm_oss snd_mixer_oss iwlagn iwlcore snd_pcm rfkill snd_seq_dummy
lib80211 mac80211 pcmcia snd_seq_oss snd_seq_midi snd_rawmidi cfg80211 snd_seq_midi_event snd_seq snd_timer
snd_seq_device yenta_socket rsrc_nonstatic pcmcia_core serio_raw iTCO_wdt psmouse pcspkr usblp snd soundcore
snd_page_alloc wmi hp_accel intel_agp video output battery lis3lv02d container ac button joydev evdev ext3
jbd mbcache sha256_generic aes_x86_64 aes_generic cbc usbhid hid dm_crypt dm_mirror dm_region_hash dm_log
dm_snapshot dm_mod sg sr_mod cdrom sd_mod piix ata_piix ide_pci_generic ide_core pata_acpi ohci1394
sdhci_pci sdhci ricoh_mmc ieee1394 mmc_core led_class ata_generic uhci_hcd ehci_hcd libata e1000e scsi_mod
thermal processor fan thermal_sys
kernel: Pid: 14203, comm: s2ram Not tainted 2.6.29-rc3 #13
kernel: Call Trace:
acpid: client 13573[0:0] has disconnected
acpid: client 4290[0:0] has disconnected
kernel: [<ffffffff8023995b>] warn_slowpath+0xd3/0x10f
kernel: [<ffffffff8024fc19>] ? down_trylock+0x2d/0x34
kernel: [<ffffffff80446562>] ? _spin_unlock+0x9/0xb
kernel: [<ffffffff80443ff6>] ? printk+0x67/0x69
kernel: [<ffffffff803649c0>] ? acpi_bus_power_manageable+0x11/0x29
kernel: [<ffffffff8033771f>] ? acpi_pci_power_manageable+0x17/0x19
kernel: [<ffffffff8032ef75>] ? pci_set_power_state+0xcc/0x101
kernel: [<ffffffff803313dd>] pci_legacy_suspend+0xd4/0x119
kernel: [<ffffffff80331515>] pci_pm_suspend+0x34/0x86
kernel: [<ffffffff80398e0e>] pm_op+0x52/0xe5
kernel: [<ffffffff803993b8>] device_suspend+0x32e/0x453
kernel: [<ffffffff8025f4a6>] suspend_devices_and_enter+0x3e/0x12e
kernel: [<ffffffff8025f6fe>] enter_state+0x110/0x164
kernel: [<ffffffff8025f809>] state_store+0xb7/0xd7
kernel: [<ffffffff8032014f>] kobj_attr_store+0x17/0x19
kernel: [<ffffffff802e1991>] sysfs_write_file+0xdf/0x114
kernel: [<ffffffff8029729f>] vfs_write+0xa7/0xe1
kernel: [<ffffffff8029739d>] sys_write+0x47/0x6f
kernel: [<ffffffff8020c25b>] system_call_fastpath+0x16/0x1b
kernel: ---[ end trace 7c1037001dd4a99a ]---
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/