mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andy Pfiffer <andyp@osdl.org>
To: Ed L Cashin <ecashin@uga.edu>
Cc: fastboot@osdl.org,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: maybe: kexec + e100 + CONFIG_PM != working
Date: 02 Jul 2003 14:06:38 -0700	[thread overview]
Message-ID: <1057179998.4341.22.camel@andyp.pdx.osdl.net> (raw)
In-Reply-To: <87d6gtrjjs.fsf@uga.edu>

On Tue, 2003-07-01 at 15:03, Ed L Cashin wrote:
> Ed L Cashin <ecashin@uga.edu> writes:
> 
> ...
> > I haven't tried the experiment you suggested where I disable e100 in
> > the kernel configuration.
> 
> OK, I just tried taking out the intel e100 driver and building in
> Becker's eepro100 driver.  This kernel can do kexec fine.

I just had lunch with someone that knows a lot more about the e100
driver than I do.

I would be curious to know what happens if you disable CONFIG_PM (as
seen in your .config), disable the eepro100 driver, re-enable the e100
driver, and then try kexec again.

The hint I received is that the e100_suspend() routine could call
pci_set_power_state() on the way down during a kexec, and that could
leave the card in a state that is difficult to resurrect when the new
kernel starts initializing devices.

You might also try commenting out the pci_set_power_state() lines in
e100_suspend() and leave CONFIG_PM enabled (untested diff for
illustration):

--- e100_main.c.orig	Wed Jul  2 14:00:59 2003
+++ e100_main.c	Wed Jul  2 14:02:22 2003
@@ -4305,11 +4305,11 @@
 	/* If wol is enabled */
 	if (bdp->wolopts || e100_asf_enabled(bdp)) {
 		pci_enable_wake(pcid, 3, 1);	/* Enable PME for power state D3 */
-		pci_set_power_state(pcid, 3);	/* Set power state to D3.        */
+		/*pci_set_power_state(pcid, 3);*/	/* Set power state to D3.        */
 	} else {
 		/* Disable bus mastering */
 		pci_disable_device(pcid);
-		pci_set_power_state(pcid, state);
+		/*pci_set_power_state(pcid, state);*/
 	}
 	return 0;
 }









       reply	other threads:[~2003-07-02 20:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030626120244.B29672@atlas.cs.uga.edu>
     [not found] ` <1056753599.1200.53.camel@andyp.pdx.osdl.net>
     [not found]   ` <87k7b2q6mt.fsf@uga.edu>
     [not found]     ` <87d6gtrjjs.fsf@uga.edu>
2003-07-02 21:06       ` Andy Pfiffer [this message]
2003-07-08 16:07         ` Ed L Cashin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1057179998.4341.22.camel@andyp.pdx.osdl.net \
    --to=andyp@osdl.org \
    --cc=ecashin@uga.edu \
    --cc=fastboot@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®