Re: Machine crashes right *after* ~successful resume
From: Yinghai Lu
Date: Wed Oct 29 2014 - 01:17:57 EST
On Tue, Oct 28, 2014 at 4:34 PM, Wilmer van der Gaast <wilmer@xxxxxxxxx> wrote:
>
> I've run the commands twice, once before and once after a single
> suspend+resume cycle. Small difference and only before that cycle:
>
> ruby:~/crashit# diff -u lspcixx-*
> --- lspcixx-nopatch.txt 2014-10-28 23:26:08.679690828 +0000
> +++ lspcixx-patched.txt 2014-10-28 23:10:05.391896757 +0000
> @@ -92,10 +92,10 @@
> 2f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 310: 00 00 00 00 1b 36 3a 74 00 00 14 14 31 17 42 00
> -320: 5b 60 09 00 00 20 00 0a 08 10 b8 04 07 00 d5 0c
> +320: 5b 60 09 00 00 20 00 0a 90 10 b8 04 8f 00 5d 0d
> 330: 16 00 00 28 bc b5 bc 4a 00 00 00 00 74 4c 85 00
> -340: 33 03 33 00 64 03 3f 00 30 00 0c 00 f8 07 d5 00
> -350: fe 07 dd 00 01 00 08 00 00 00 00 00 00 00 00 00
> +340: 33 03 33 00 64 03 3f 00 30 00 0c 00 f8 07 5d 00
> +350: fe 07 65 00 01 00 08 00 00 00 00 00 00 00 00 00
> 360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>
> (Diff is in the Intel device, not the ITE one.)
>
That is strange.
Anyway please try attached patched on top of 3.17.
Thanks
Yinghai
---
drivers/pci/pci.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6/drivers/pci/pci.c
===================================================================
--- linux-2.6.orig/drivers/pci/pci.c
+++ linux-2.6/drivers/pci/pci.c
@@ -1265,6 +1265,8 @@ static void pci_enable_bridge(struct pci
pci_set_master(dev);
}
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ITE, 0x8892, pci_enable_bridge);
+
static int pci_enable_device_flags(struct pci_dev *dev, unsigned long flags)
{
struct pci_dev *bridge;