mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Borislav Petkov <bp@suse.de>
Cc: Jiri Slaby <jslaby@suse.cz>, Borislav Petkov <bp@alien8.de>,
	Bjorn Helgaas <bhelgaas@google.com>,
	x86@kernel.org, lkml <linux-kernel@vger.kernel.org>,
	Konstantin Khlebnikov <khlebnikov@openvz.org>
Subject: Re: Uhhuh. NMI received for unknown reason 2c on CPU 0.
Date: Sun, 03 Feb 2013 00:04:46 +0100	[thread overview]
Message-ID: <2293454.v8QRHr8txR@vostro.rjw.lan> (raw)
In-Reply-To: <20130131131034.GF4926@pd.tnic>

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]

On Thursday, January 31, 2013 02:10:34 PM Borislav Petkov wrote:
> On Thu, Jan 31, 2013 at 02:12:58PM +0100, Rafael J. Wysocki wrote:
> > Yes, there are two bugs in e1000e, it appears. Konstantin's
> > patch [2/5] fixes one of them, but the other one has to be fixed
> > differently.
> >
> > Boris, would you be able to test a couple of e1000e patches for me?
> 
> Sure, send them on. You can add 2/5 in the mix too.

There you go.

The [2/5] is at: https://patchwork.kernel.org/patch/2001211/

The other two are attached.  I suppose the ordering doesn't matter.

Thanks,
Rafael


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

[-- Attachment #2: pci-pm-fix-e1000e-runtime-suspend.patch --]
[-- Type: text/x-patch, Size: 2247 bytes --]

---
 drivers/net/ethernet/intel/e1000e/netdev.c |    1 +
 drivers/pci/pci.c                          |    1 +
 drivers/pci/pci.h                          |    1 -
 include/linux/pci.h                        |    1 +
 4 files changed, 3 insertions(+), 1 deletion(-)

Index: linux-pm/drivers/pci/pci.c
===================================================================
--- linux-pm.orig/drivers/pci/pci.c
+++ linux-pm/drivers/pci/pci.c
@@ -1840,6 +1840,7 @@ int pci_finish_runtime_suspend(struct pc
 
 	return error;
 }
+EXPORT_SYMBOL_GPL(pci_finish_runtime_suspend);
 
 /**
  * pci_dev_run_wake - Check if device can generate run-time wake-up events.
Index: linux-pm/drivers/pci/pci.h
===================================================================
--- linux-pm.orig/drivers/pci/pci.h
+++ linux-pm/drivers/pci/pci.h
@@ -64,7 +64,6 @@ extern int pci_set_platform_pm(struct pc
 extern void pci_update_current_state(struct pci_dev *dev, pci_power_t state);
 extern void pci_power_up(struct pci_dev *dev);
 extern void pci_disable_enabled_device(struct pci_dev *dev);
-extern int pci_finish_runtime_suspend(struct pci_dev *dev);
 extern int __pci_pme_wakeup(struct pci_dev *dev, void *ign);
 extern void pci_wakeup_bus(struct pci_bus *bus);
 extern void pci_config_pm_runtime_get(struct pci_dev *dev);
Index: linux-pm/include/linux/pci.h
===================================================================
--- linux-pm.orig/include/linux/pci.h
+++ linux-pm/include/linux/pci.h
@@ -936,6 +936,7 @@ int pci_back_from_sleep(struct pci_dev *
 bool pci_dev_run_wake(struct pci_dev *dev);
 bool pci_check_pme_status(struct pci_dev *dev);
 void pci_pme_wakeup_bus(struct pci_bus *bus);
+int pci_finish_runtime_suspend(struct pci_dev *dev);
 
 static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state,
 				  bool enable)
Index: linux-pm/drivers/net/ethernet/intel/e1000e/netdev.c
===================================================================
--- linux-pm.orig/drivers/net/ethernet/intel/e1000e/netdev.c
+++ linux-pm/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -5696,6 +5696,7 @@ static int e1000_runtime_suspend(struct
 		bool wake;
 
 		__e1000_shutdown(pdev, &wake, true);
+		pci_finish_runtime_suspend(pdev);
 	}
 
 	return 0;

[-- Attachment #3: pci-pm-clear-state_saved-during-suspend.patch --]
[-- Type: text/x-patch, Size: 1028 bytes --]

---
 drivers/pci/pci-driver.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux-pm/drivers/pci/pci-driver.c
===================================================================
--- linux-pm.orig/drivers/pci/pci-driver.c
+++ linux-pm/drivers/pci/pci-driver.c
@@ -628,6 +628,7 @@ static int pci_pm_suspend(struct device
 		goto Fixup;
 	}
 
+	pci_dev->state_saved = false;
 	if (pm->suspend) {
 		pci_power_t prev = pci_dev->current_state;
 		int error;
@@ -774,6 +775,7 @@ static int pci_pm_freeze(struct device *
 		return 0;
 	}
 
+	pci_dev->state_saved = false;
 	if (pm->freeze) {
 		int error;
 
@@ -862,6 +864,7 @@ static int pci_pm_poweroff(struct device
 		goto Fixup;
 	}
 
+	pci_dev->state_saved = false;
 	if (pm->poweroff) {
 		int error;
 
@@ -987,6 +990,7 @@ static int pci_pm_runtime_suspend(struct
 	if (!pm || !pm->runtime_suspend)
 		return -ENOSYS;
 
+	pci_dev->state_saved = false;
 	pci_dev->no_d3cold = false;
 	error = pm->runtime_suspend(dev);
 	suspend_report_result(pm->runtime_suspend, error);

  reply	other threads:[~2013-02-02 22:58 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29 20:28 Borislav Petkov
2013-01-29 21:32 ` Bjorn Helgaas
2013-01-30  3:42   ` Borislav Petkov
2013-01-30 17:27     ` Bjorn Helgaas
2013-01-30 17:44       ` Borislav Petkov
2013-01-30 19:43         ` Jiri Slaby
2013-01-30 20:00           ` Borislav Petkov
2013-01-30 20:33             ` Jiri Slaby
2013-01-30 21:39               ` Rafael J. Wysocki
2013-01-30 22:17                 ` Jiri Slaby
2013-01-30 22:45                   ` Rafael J. Wysocki
2013-01-30 23:12                     ` Jiri Slaby
2013-01-30 23:47                       ` Jiri Slaby
2013-01-31  0:54                         ` Rafael J. Wysocki
2013-01-31  7:09                           ` Borislav Petkov
2013-01-31  8:14                             ` Jiri Slaby
2013-01-31 13:12                               ` Rafael J. Wysocki
2013-01-31 13:10                                 ` Borislav Petkov
2013-02-02 23:04                                   ` Rafael J. Wysocki [this message]
2013-02-03 14:46                                     ` Borislav Petkov
2013-02-03 20:15                                       ` Rafael J. Wysocki
2013-02-03 20:58                                         ` Borislav Petkov
2013-02-03 21:06                                           ` Borislav Petkov
2013-02-03 21:15                                             ` Borislav Petkov
2013-02-14 14:39                                       ` Borislav Petkov
2013-02-14 17:17                                         ` Bjorn Helgaas
2013-02-14 19:12                                           ` Borislav Petkov
2013-02-15  8:54                                             ` Konstantin Khlebnikov
2013-02-15  9:16                                               ` Borislav Petkov
2013-03-04 21:50                                                 ` Borislav Petkov
2013-03-05  0:16                                                   ` Bjorn Helgaas
2013-03-05  9:42                                                     ` Jiri Slaby
2013-03-05  9:58                                                       ` Borislav Petkov
2013-03-05 10:01                                                         ` Jiri Slaby
2013-03-05 10:02                                                         ` Jeff Kirsher
2013-03-05 10:14                                                           ` Borislav Petkov
2013-03-05 10:29                                                             ` Jeff Kirsher
2013-03-05 11:27                                                               ` Borislav Petkov
2013-03-05 11:33                                                                 ` Jeff Kirsher
2013-03-05 11:42                                                                   ` Borislav Petkov
2013-03-06  0:13                                                                 ` Rafael J. Wysocki
2013-03-06  0:19                                                                   ` Borislav Petkov
2013-03-08 16:47                                                                     ` Borislav Petkov
2013-03-05 10:01                                                       ` Jeff Kirsher
2013-03-05 10:04                                                         ` Jiri Slaby
2013-03-01 12:51                                               ` e1000e broken after resume on x230 [was: Uhhuh. NMI received for unknown reason 2c on CPU 0.] Jiri Slaby
2013-02-06 13:54                                     ` Uhhuh. NMI received for unknown reason 2c on CPU 0 Jiri Slaby
2013-02-06 21:29                                       ` Rafael J. Wysocki
2013-01-31  8:28                             ` Jiri Slaby
2013-01-31 13:18                               ` Borislav Petkov
2013-01-31 13:24                                 ` Borislav Petkov
2013-03-01 12:55                                   ` Jiri Slaby
2013-04-04  7:32                                     ` Jiri Slaby
2013-04-04  9:33                                       ` Borislav Petkov
2013-04-04  9:38                                         ` Jiri Slaby
2013-04-04  9:58                                           ` Borislav Petkov
2013-01-31 13:29                                 ` Rafael J. Wysocki
2013-02-03 21:29                                 ` Jiri Slaby

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=2293454.v8QRHr8txR@vostro.rjw.lan \
    --to=rjw@sisk.pl \
    --cc=bhelgaas@google.com \
    --cc=bp@alien8.de \
    --cc=bp@suse.de \
    --cc=jslaby@suse.cz \
    --cc=khlebnikov@openvz.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=x86@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®