Linux Power Management development
 help / color / mirror / Atom feed
* Very strange issues with ethernet wake on lan
@ 2009-08-16  3:42 Maxim Levitsky
  0 siblings, 0 replies; 9+ messages in thread
From: Maxim Levitsky @ 2009-08-16  3:42 UTC (permalink / raw)
  To: netdev@vger.kernel.org; +Cc: linux-pm@lists.linux-foundation.org

Hi,

I have recently put back the davicom dm9009 ethernet card into my
computer.

Some long time ago, I have written its suspend/resume routines.
Now I see that few things have changed, like I need to enable wake in
sysfs or better patch the code to do so, some nice helpers like
pci_prepare_to_sleep have arrived, etc.


I narrowed the strange issue down to following situation:

I reload dmfe.ko (and networkmanager is disabled)
I don't ifup the device, thus pretty much no hardware initialization
takes place (but this appears not to matter anyway)

I then suspend the system, and WOL doesn't work (I have patched the
driver to enable WOL automaticly)

I then, suspend again. WOL works, and continues to work as long as I
don't reload the driver. If I do, same situation repeats.

Also, after a boot, WOL works, so a reload cycle triggers that issue.

And most importantly, if I don't do a

pci_set_power_state(pci_dev, pci_choose_state (pci_dev, state));

in .suspend, then WOL always works.

and I have even tried to set state manually to PCI_D3hot or PCI_D3cold, 

I also tried to use pci_save_state


I also have 2 copies of this card, and both have this issue.
I also tried 2 pci slots.

Kernel is vanilla 2.6.31-rc5


Any ideas?

Best regards,
	Maxim Levitsky

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-10-10 21:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1250394174.32268.13.camel@localhost.localdomain>
2009-08-17  9:16 ` Very strange issues with ethernet wake on lan Maxim Levitsky
     [not found] ` <1250500588.4301.5.camel@localhost.localdomain>
2009-08-17 12:02   ` Rafael J. Wysocki
2009-08-17 18:30   ` Rafael J. Wysocki
     [not found]   ` <200908172030.54505.rjw@sisk.pl>
2009-08-20  9:16     ` Maxim Levitsky
2009-08-20  9:16     ` Maxim Levitsky
2009-09-29 20:28 ` Rafael J. Wysocki
     [not found] ` <200909292228.18200.rjw@sisk.pl>
2009-10-10 21:37   ` Maxim Levitsky
2009-10-10 21:45     ` Rafael J. Wysocki
2009-08-16  3:42 Maxim Levitsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox