forcedeth 10de:0373 doesn't work on resume
Subsystems (2)
My NIC stops working after resuming from standby, it's not receiving any interrupts:
[ 0.618266] pci 0000:00:08.0: supports D1 [ 0.618267] pci 0000:00:08.0: supports D2 [ 0.618269] pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.618382] pci 0000:00:08.0: PME# disabled [ 0.618513] pci 0000:00:09.0: supports D1 [ 0.618523] pci 0000:00:09.0: supports D2 [ 0.618532] pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.618632] pci 0000:00:09.0: PME# disabled [ 0.629767] PM: Adding info for pci:0000:00:08.0 [ 0.630304] PM: Adding info for pci:0000:00:09.0 [ 0.866667] pci 0000:00:08.0: Enabling HT MSI Mapping [ 0.866804] pci 0000:00:09.0: Enabling HT MSI Mapping [ 1.847264] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61. [ 1.847918] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 1.848121] forcedeth 0000:00:08.0: setting latency timer to 64 [ 1.849363] forcedeth 0000:00:08.0: ifname eth2, PHY OUI 0x5043 @ 16, addr 00:e0:81:4d:2b:ec [ 1.849553] forcedeth 0000:00:08.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 1.850212] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 1.850405] forcedeth 0000:00:09.0: setting latency timer to 64 [ 1.851684] forcedeth 0000:00:09.0: ifname eth3, PHY OUI 0x5043 @ 17, addr 00:e0:81:4d:2b:ed [ 1.851873] forcedeth 0000:00:09.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 913.928604] forcedeth 0000:00:08.0: preparing suspend, may wakeup [ 913.928607] forcedeth 0000:00:09.0: preparing suspend, may wakeup [ 916.388326] forcedeth 0000:00:09.0: suspend, may wakeup [ 916.388704] forcedeth 0000:00:09.0: PME# enabled [ 916.388711] forcedeth 0000:00:09.0: wake-up capability enabled by ACPI [ 916.388714] forcedeth 0000:00:09.0: PCI INT A disabled [ 916.398995] forcedeth 0000:00:08.0: suspend, may wakeup [ 916.399741] forcedeth 0000:00:08.0: PME# enabled [ 916.399767] forcedeth 0000:00:08.0: wake-up capability enabled by ACPI [ 916.399786] forcedeth 0000:00:08.0: PCI INT A disabled [ 917.255261] forcedeth 0000:00:09.0: LATE suspend, may wakeup [ 917.255263] forcedeth 0000:00:08.0: LATE suspend, may wakeup [ 917.256004] forcedeth 0000:00:08.0: EARLY resume [ 917.256004] forcedeth 0000:00:09.0: EARLY resume [ 918.015874] forcedeth 0000:00:08.0: resume [ 918.026369] forcedeth 0000:00:08.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010a) [ 918.026395] forcedeth 0000:00:08.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdffa400) [ 918.026417] forcedeth 0000:00:08.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa800) [ 918.026428] forcedeth 0000:00:08.0: restoring config space at offset 0x5 (was 0x1, writing 0x9401) [ 918.026436] forcedeth 0000:00:08.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff6000) [ 918.026443] forcedeth 0000:00:08.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 918.026465] forcedeth 0000:00:08.0: wake-up capability disabled by ACPI [ 918.026471] forcedeth 0000:00:08.0: PME# disabled [ 918.027446] forcedeth 0000:00:09.0: resume [ 918.037096] forcedeth 0000:00:09.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010b) [ 918.037115] forcedeth 0000:00:09.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdff4c00) [ 918.037120] forcedeth 0000:00:09.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa000) [ 918.037125] forcedeth 0000:00:09.0: restoring config space at offset 0x5 (was 0x1, writing 0x9081) [ 918.037131] forcedeth 0000:00:09.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff5000) [ 918.037137] forcedeth 0000:00:09.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 918.037160] forcedeth 0000:00:09.0: wake-up capability disabled by ACPI [ 918.037174] forcedeth 0000:00:09.0: PME# disabled [ 925.810837] forcedeth 0000:00:09.0: completing resume [ 925.810841] forcedeth 0000:00:08.0: completing resume
Commit 25d90810ff49d2a63475776f24c74c6bb49b045f ([netdrvr] forcedeth: reorder suspend/resume code) introduces pci_disable_device to nv_suspend, but there's no corresponding pci_enable_device in nv_resume - so I added one (copied from e1000):
drivers/net/forcedeth.c +0 -0
@@ -5922,6 +5922,13 @@ static int nv_resume(struct pci_dev *pdev)
pci_set_power_state(pdev, PCI_D0); pci_restore_state(pdev);
+ rc = pci_enable_device(pdev);
+ if (rc) {
+ printk(KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n");
+ return rc;
+ }
+ pci_set_master(pdev);
+
/* ack any pending wake events, disable PME */ pci_enable_wake(pdev, PCI_D0, 0);
This results in interrupts being re-enabled after suspend:
[ 0.619558] pci 0000:00:08.0: supports D1 [ 0.619560] pci 0000:00:08.0: supports D2 [ 0.619561] pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.619684] pci 0000:00:08.0: PME# disabled [ 0.619826] pci 0000:00:09.0: supports D1 [ 0.619828] pci 0000:00:09.0: supports D2 [ 0.619837] pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.619952] pci 0000:00:09.0: PME# disabled [ 0.631145] PM: Adding info for pci:0000:00:08.0 [ 0.631699] PM: Adding info for pci:0000:00:09.0 [ 0.870662] pci 0000:00:08.0: Enabling HT MSI Mapping [ 0.870809] pci 0000:00:09.0: Enabling HT MSI Mapping [ 1.853343] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61. [ 1.854016] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 1.854217] forcedeth 0000:00:08.0: setting latency timer to 64 [ 1.855468] forcedeth 0000:00:08.0: ifname eth2, PHY OUI 0x5043 @ 16, addr 00:e0:81:4d:2b:ec [ 1.855658] forcedeth 0000:00:08.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 1.856332] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 1.856528] forcedeth 0000:00:09.0: setting latency timer to 64 [ 1.857815] forcedeth 0000:00:09.0: ifname eth3, PHY OUI 0x5043 @ 17, addr 00:e0:81:4d:2b:ed [ 1.858015] forcedeth 0000:00:09.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 42.310803] forcedeth 0000:00:08.0: preparing suspend, may wakeup [ 42.310807] forcedeth 0000:00:09.0: preparing suspend, may wakeup [ 44.468801] forcedeth 0000:00:09.0: suspend, may wakeup [ 44.469181] forcedeth 0000:00:09.0: PME# enabled [ 44.469191] forcedeth 0000:00:09.0: wake-up capability enabled by ACPI [ 44.469196] forcedeth 0000:00:09.0: PCI INT A disabled [ 44.479247] forcedeth 0000:00:08.0: suspend, may wakeup [ 44.479981] forcedeth 0000:00:08.0: PME# enabled [ 44.480014] forcedeth 0000:00:08.0: wake-up capability enabled by ACPI [ 44.480025] forcedeth 0000:00:08.0: PCI INT A disabled [ 45.311781] forcedeth 0000:00:09.0: LATE suspend, may wakeup [ 45.311784] forcedeth 0000:00:08.0: LATE suspend, may wakeup [ 45.312005] forcedeth 0000:00:08.0: EARLY resume [ 45.312005] forcedeth 0000:00:09.0: EARLY resume [ 46.067593] forcedeth 0000:00:08.0: resume [ 46.077904] forcedeth 0000:00:08.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010a) [ 46.077931] forcedeth 0000:00:08.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdffa400) [ 46.077949] forcedeth 0000:00:08.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa800) [ 46.077962] forcedeth 0000:00:08.0: restoring config space at offset 0x5 (was 0x1, writing 0x9401) [ 46.077973] forcedeth 0000:00:08.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff6000) [ 46.077987] forcedeth 0000:00:08.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 46.078026] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 46.078031] forcedeth 0000:00:08.0: setting latency timer to 64 [ 46.078042] forcedeth 0000:00:08.0: wake-up capability disabled by ACPI [ 46.078056] forcedeth 0000:00:08.0: PME# disabled [ 46.079323] forcedeth 0000:00:09.0: resume [ 46.089903] forcedeth 0000:00:09.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010b) [ 46.089930] forcedeth 0000:00:09.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdff4c00) [ 46.089952] forcedeth 0000:00:09.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa000) [ 46.089959] forcedeth 0000:00:09.0: restoring config space at offset 0x5 (was 0x1, writing 0x9081) [ 46.089964] forcedeth 0000:00:09.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff5000) [ 46.089970] forcedeth 0000:00:09.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 46.089998] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 46.090003] forcedeth 0000:00:09.0: setting latency timer to 64 [ 46.090007] forcedeth 0000:00:09.0: wake-up capability disabled by ACPI [ 46.090013] forcedeth 0000:00:09.0: PME# disabled [ 52.903755] forcedeth 0000:00:09.0: completing resume [ 52.903759] forcedeth 0000:00:08.0: completing resume
However, the NIC still doesn't work after resume.
00:08.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
Subsystem: nVidia Corporation Device cb84
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 219
Memory at fdff6000 (32-bit, non-prefetchable) [size=4K]
I/O ports at 9400 [size=8]
Memory at fdffa800 (32-bit, non-prefetchable) [size=256]
Memory at fdffa400 (32-bit, non-prefetchable) [size=16]
Capabilities: [44] Power Management version 2
Capabilities: [70] MSI-X: Enable- Mask- TabSize=8
Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/3 Enable+
Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+ Kernel driver in use: forcedeth
00:09.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
Subsystem: nVidia Corporation Device cb84
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
Memory at fdff5000 (32-bit, non-prefetchable) [size=4K]
I/O ports at 9080 [size=8]
Memory at fdffa000 (32-bit, non-prefetchable) [size=256]
Memory at fdff4c00 (32-bit, non-prefetchable) [size=16]
Capabilities: [44] Power Management version 2
Capabilities: [70] MSI-X: Enable- Mask- TabSize=8
Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/3 Enable-
Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+ Kernel driver in use: forcedeth
Signature · 1 line
Simon Arlott
Quoted 1 line · On Tue, 05 Aug 2008 20:29:44 +0100 Simon Arlott <[email protected]> wrote:
[two weeks pass...]
Quoted 69 lines
My NIC stops working after resuming from standby, it's not receiving any interrupts:
[ 0.618266] pci 0000:00:08.0: supports D1 [ 0.618267] pci 0000:00:08.0: supports D2 [ 0.618269] pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.618382] pci 0000:00:08.0: PME# disabled [ 0.618513] pci 0000:00:09.0: supports D1 [ 0.618523] pci 0000:00:09.0: supports D2 [ 0.618532] pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.618632] pci 0000:00:09.0: PME# disabled [ 0.629767] PM: Adding info for pci:0000:00:08.0 [ 0.630304] PM: Adding info for pci:0000:00:09.0 [ 0.866667] pci 0000:00:08.0: Enabling HT MSI Mapping [ 0.866804] pci 0000:00:09.0: Enabling HT MSI Mapping [ 1.847264] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61. [ 1.847918] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 1.848121] forcedeth 0000:00:08.0: setting latency timer to 64 [ 1.849363] forcedeth 0000:00:08.0: ifname eth2, PHY OUI 0x5043 @ 16, addr 00:e0:81:4d:2b:ec [ 1.849553] forcedeth 0000:00:08.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 1.850212] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 1.850405] forcedeth 0000:00:09.0: setting latency timer to 64 [ 1.851684] forcedeth 0000:00:09.0: ifname eth3, PHY OUI 0x5043 @ 17, addr 00:e0:81:4d:2b:ed [ 1.851873] forcedeth 0000:00:09.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 913.928604] forcedeth 0000:00:08.0: preparing suspend, may wakeup [ 913.928607] forcedeth 0000:00:09.0: preparing suspend, may wakeup [ 916.388326] forcedeth 0000:00:09.0: suspend, may wakeup [ 916.388704] forcedeth 0000:00:09.0: PME# enabled [ 916.388711] forcedeth 0000:00:09.0: wake-up capability enabled by ACPI [ 916.388714] forcedeth 0000:00:09.0: PCI INT A disabled [ 916.398995] forcedeth 0000:00:08.0: suspend, may wakeup [ 916.399741] forcedeth 0000:00:08.0: PME# enabled [ 916.399767] forcedeth 0000:00:08.0: wake-up capability enabled by ACPI [ 916.399786] forcedeth 0000:00:08.0: PCI INT A disabled [ 917.255261] forcedeth 0000:00:09.0: LATE suspend, may wakeup [ 917.255263] forcedeth 0000:00:08.0: LATE suspend, may wakeup [ 917.256004] forcedeth 0000:00:08.0: EARLY resume [ 917.256004] forcedeth 0000:00:09.0: EARLY resume [ 918.015874] forcedeth 0000:00:08.0: resume [ 918.026369] forcedeth 0000:00:08.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010a) [ 918.026395] forcedeth 0000:00:08.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdffa400) [ 918.026417] forcedeth 0000:00:08.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa800) [ 918.026428] forcedeth 0000:00:08.0: restoring config space at offset 0x5 (was 0x1, writing 0x9401) [ 918.026436] forcedeth 0000:00:08.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff6000) [ 918.026443] forcedeth 0000:00:08.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 918.026465] forcedeth 0000:00:08.0: wake-up capability disabled by ACPI [ 918.026471] forcedeth 0000:00:08.0: PME# disabled [ 918.027446] forcedeth 0000:00:09.0: resume [ 918.037096] forcedeth 0000:00:09.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010b) [ 918.037115] forcedeth 0000:00:09.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdff4c00) [ 918.037120] forcedeth 0000:00:09.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa000) [ 918.037125] forcedeth 0000:00:09.0: restoring config space at offset 0x5 (was 0x1, writing 0x9081) [ 918.037131] forcedeth 0000:00:09.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff5000) [ 918.037137] forcedeth 0000:00:09.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 918.037160] forcedeth 0000:00:09.0: wake-up capability disabled by ACPI [ 918.037174] forcedeth 0000:00:09.0: PME# disabled [ 925.810837] forcedeth 0000:00:09.0: completing resume [ 925.810841] forcedeth 0000:00:08.0: completing resumeCommit
25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth: reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000):drivers/net/forcedeth.c +0
-0@@ -5922,6 +5922,13 @@ static int nv_resume(struct pci_dev *pdev)pci_set_power_state (pdev,PCI_D0 );pci_restore_state (pdev);
drivers/net/forcedeth.c static int nv_resume(struct pci_dev *pdev) · line 5934
Quoted 10 lines
drivers/net/forcedeth.c +7
-0+ rc =pci_enable_device (pdev); +if (rc) { +printk (KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n" ); +return rc; + } +pci_set_master (pdev); +/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 );
That seems like a sensible change.
Quoted 61 lines
This results in interrupts being re-enabled after suspend:
[ 0.619558] pci 0000:00:08.0: supports D1 [ 0.619560] pci 0000:00:08.0: supports D2 [ 0.619561] pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.619684] pci 0000:00:08.0: PME# disabled [ 0.619826] pci 0000:00:09.0: supports D1 [ 0.619828] pci 0000:00:09.0: supports D2 [ 0.619837] pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.619952] pci 0000:00:09.0: PME# disabled [ 0.631145] PM: Adding info for pci:0000:00:08.0 [ 0.631699] PM: Adding info for pci:0000:00:09.0 [ 0.870662] pci 0000:00:08.0: Enabling HT MSI Mapping [ 0.870809] pci 0000:00:09.0: Enabling HT MSI Mapping [ 1.853343] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61. [ 1.854016] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 1.854217] forcedeth 0000:00:08.0: setting latency timer to 64 [ 1.855468] forcedeth 0000:00:08.0: ifname eth2, PHY OUI 0x5043 @ 16, addr 00:e0:81:4d:2b:ec [ 1.855658] forcedeth 0000:00:08.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 1.856332] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 1.856528] forcedeth 0000:00:09.0: setting latency timer to 64 [ 1.857815] forcedeth 0000:00:09.0: ifname eth3, PHY OUI 0x5043 @ 17, addr 00:e0:81:4d:2b:ed [ 1.858015] forcedeth 0000:00:09.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 42.310803] forcedeth 0000:00:08.0: preparing suspend, may wakeup [ 42.310807] forcedeth 0000:00:09.0: preparing suspend, may wakeup [ 44.468801] forcedeth 0000:00:09.0: suspend, may wakeup [ 44.469181] forcedeth 0000:00:09.0: PME# enabled [ 44.469191] forcedeth 0000:00:09.0: wake-up capability enabled by ACPI [ 44.469196] forcedeth 0000:00:09.0: PCI INT A disabled [ 44.479247] forcedeth 0000:00:08.0: suspend, may wakeup [ 44.479981] forcedeth 0000:00:08.0: PME# enabled [ 44.480014] forcedeth 0000:00:08.0: wake-up capability enabled by ACPI [ 44.480025] forcedeth 0000:00:08.0: PCI INT A disabled [ 45.311781] forcedeth 0000:00:09.0: LATE suspend, may wakeup [ 45.311784] forcedeth 0000:00:08.0: LATE suspend, may wakeup [ 45.312005] forcedeth 0000:00:08.0: EARLY resume [ 45.312005] forcedeth 0000:00:09.0: EARLY resume [ 46.067593] forcedeth 0000:00:08.0: resume [ 46.077904] forcedeth 0000:00:08.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010a) [ 46.077931] forcedeth 0000:00:08.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdffa400) [ 46.077949] forcedeth 0000:00:08.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa800) [ 46.077962] forcedeth 0000:00:08.0: restoring config space at offset 0x5 (was 0x1, writing 0x9401) [ 46.077973] forcedeth 0000:00:08.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff6000) [ 46.077987] forcedeth 0000:00:08.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 46.078026] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 46.078031] forcedeth 0000:00:08.0: setting latency timer to 64 [ 46.078042] forcedeth 0000:00:08.0: wake-up capability disabled by ACPI [ 46.078056] forcedeth 0000:00:08.0: PME# disabled [ 46.079323] forcedeth 0000:00:09.0: resume [ 46.089903] forcedeth 0000:00:09.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010b) [ 46.089930] forcedeth 0000:00:09.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdff4c00) [ 46.089952] forcedeth 0000:00:09.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa000) [ 46.089959] forcedeth 0000:00:09.0: restoring config space at offset 0x5 (was 0x1, writing 0x9081) [ 46.089964] forcedeth 0000:00:09.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff5000) [ 46.089970] forcedeth 0000:00:09.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 46.089998] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 46.090003] forcedeth 0000:00:09.0: setting latency timer to 64 [ 46.090007] forcedeth 0000:00:09.0: wake-up capability disabled by ACPI [ 46.090013] forcedeth 0000:00:09.0: PME# disabled [ 52.903755] forcedeth 0000:00:09.0: completing resume [ 52.903759] forcedeth 0000:00:08.0: completing resume
Quoted 1 line
However, the NIC still doesn't work after resume.
Is it still broken in current kernels?
Quoted 13 lines
00:08.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
Subsystem: nVidia Corporation Device cb84
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 219
Memory atfdff6000(32-bit, non-prefetchable) [size=4K]
I/O ports at 9400 [size=8]
Memory atfdffa800(32-bit, non-prefetchable) [size=256]
Memory atfdffa400(32-bit, non-prefetchable) [size=16]
Capabilities: [44] Power Management version 2
Capabilities: [70] MSI-X: Enable- Mask- TabSize=8
Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/3 Enable+
Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+ Kernel driver in use: forcedeth
Quoted 12 lines
00:09.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
Subsystem: nVidia Corporation Device cb84
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
Memory atfdff5000(32-bit, non-prefetchable) [size=4K]
I/O ports at 9080 [size=8]
Memory atfdffa000(32-bit, non-prefetchable) [size=256]
Memory atfdff4c00(32-bit, non-prefetchable) [size=16]
Capabilities: [44] Power Management version 2
Capabilities: [70] MSI-X: Enable- Mask- TabSize=8
Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/3 Enable-
Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+ Kernel driver in use: forcedeth
Thanks.
Quoted 1 line · On Tue, 05 Aug 2008 20:29:44 +0100 Simon Arlott <[email protected]> wrote:
[two weeks pass...]
Quoted 69 lines
My NIC stops working after resuming from standby, it's not receiving any interrupts:
[ 0.618266] pci 0000:00:08.0: supports D1 [ 0.618267] pci 0000:00:08.0: supports D2 [ 0.618269] pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.618382] pci 0000:00:08.0: PME# disabled [ 0.618513] pci 0000:00:09.0: supports D1 [ 0.618523] pci 0000:00:09.0: supports D2 [ 0.618532] pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.618632] pci 0000:00:09.0: PME# disabled [ 0.629767] PM: Adding info for pci:0000:00:08.0 [ 0.630304] PM: Adding info for pci:0000:00:09.0 [ 0.866667] pci 0000:00:08.0: Enabling HT MSI Mapping [ 0.866804] pci 0000:00:09.0: Enabling HT MSI Mapping [ 1.847264] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61. [ 1.847918] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 1.848121] forcedeth 0000:00:08.0: setting latency timer to 64 [ 1.849363] forcedeth 0000:00:08.0: ifname eth2, PHY OUI 0x5043 @ 16, addr 00:e0:81:4d:2b:ec [ 1.849553] forcedeth 0000:00:08.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 1.850212] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 1.850405] forcedeth 0000:00:09.0: setting latency timer to 64 [ 1.851684] forcedeth 0000:00:09.0: ifname eth3, PHY OUI 0x5043 @ 17, addr 00:e0:81:4d:2b:ed [ 1.851873] forcedeth 0000:00:09.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 913.928604] forcedeth 0000:00:08.0: preparing suspend, may wakeup [ 913.928607] forcedeth 0000:00:09.0: preparing suspend, may wakeup [ 916.388326] forcedeth 0000:00:09.0: suspend, may wakeup [ 916.388704] forcedeth 0000:00:09.0: PME# enabled [ 916.388711] forcedeth 0000:00:09.0: wake-up capability enabled by ACPI [ 916.388714] forcedeth 0000:00:09.0: PCI INT A disabled [ 916.398995] forcedeth 0000:00:08.0: suspend, may wakeup [ 916.399741] forcedeth 0000:00:08.0: PME# enabled [ 916.399767] forcedeth 0000:00:08.0: wake-up capability enabled by ACPI [ 916.399786] forcedeth 0000:00:08.0: PCI INT A disabled [ 917.255261] forcedeth 0000:00:09.0: LATE suspend, may wakeup [ 917.255263] forcedeth 0000:00:08.0: LATE suspend, may wakeup [ 917.256004] forcedeth 0000:00:08.0: EARLY resume [ 917.256004] forcedeth 0000:00:09.0: EARLY resume [ 918.015874] forcedeth 0000:00:08.0: resume [ 918.026369] forcedeth 0000:00:08.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010a) [ 918.026395] forcedeth 0000:00:08.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdffa400) [ 918.026417] forcedeth 0000:00:08.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa800) [ 918.026428] forcedeth 0000:00:08.0: restoring config space at offset 0x5 (was 0x1, writing 0x9401) [ 918.026436] forcedeth 0000:00:08.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff6000) [ 918.026443] forcedeth 0000:00:08.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 918.026465] forcedeth 0000:00:08.0: wake-up capability disabled by ACPI [ 918.026471] forcedeth 0000:00:08.0: PME# disabled [ 918.027446] forcedeth 0000:00:09.0: resume [ 918.037096] forcedeth 0000:00:09.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010b) [ 918.037115] forcedeth 0000:00:09.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdff4c00) [ 918.037120] forcedeth 0000:00:09.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa000) [ 918.037125] forcedeth 0000:00:09.0: restoring config space at offset 0x5 (was 0x1, writing 0x9081) [ 918.037131] forcedeth 0000:00:09.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff5000) [ 918.037137] forcedeth 0000:00:09.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 918.037160] forcedeth 0000:00:09.0: wake-up capability disabled by ACPI [ 918.037174] forcedeth 0000:00:09.0: PME# disabled [ 925.810837] forcedeth 0000:00:09.0: completing resume [ 925.810841] forcedeth 0000:00:08.0: completing resumeCommit
25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth: reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000):drivers/net/forcedeth.c +0
-0@@ -5922,6 +5922,13 @@ static int nv_resume(struct pci_dev *pdev)pci_set_power_state (pdev,PCI_D0 );pci_restore_state (pdev);
drivers/net/forcedeth.c static int nv_resume(struct pci_dev *pdev) · line 5934
Quoted 10 lines
drivers/net/forcedeth.c +7
-0+ rc =pci_enable_device (pdev); +if (rc) { +printk (KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n" ); +return rc; + } +pci_set_master (pdev); +/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 );
That seems like a sensible change.
Quoted 61 lines
This results in interrupts being re-enabled after suspend:
[ 0.619558] pci 0000:00:08.0: supports D1 [ 0.619560] pci 0000:00:08.0: supports D2 [ 0.619561] pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.619684] pci 0000:00:08.0: PME# disabled [ 0.619826] pci 0000:00:09.0: supports D1 [ 0.619828] pci 0000:00:09.0: supports D2 [ 0.619837] pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.619952] pci 0000:00:09.0: PME# disabled [ 0.631145] PM: Adding info for pci:0000:00:08.0 [ 0.631699] PM: Adding info for pci:0000:00:09.0 [ 0.870662] pci 0000:00:08.0: Enabling HT MSI Mapping [ 0.870809] pci 0000:00:09.0: Enabling HT MSI Mapping [ 1.853343] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61. [ 1.854016] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 1.854217] forcedeth 0000:00:08.0: setting latency timer to 64 [ 1.855468] forcedeth 0000:00:08.0: ifname eth2, PHY OUI 0x5043 @ 16, addr 00:e0:81:4d:2b:ec [ 1.855658] forcedeth 0000:00:08.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 1.856332] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 1.856528] forcedeth 0000:00:09.0: setting latency timer to 64 [ 1.857815] forcedeth 0000:00:09.0: ifname eth3, PHY OUI 0x5043 @ 17, addr 00:e0:81:4d:2b:ed [ 1.858015] forcedeth 0000:00:09.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 42.310803] forcedeth 0000:00:08.0: preparing suspend, may wakeup [ 42.310807] forcedeth 0000:00:09.0: preparing suspend, may wakeup [ 44.468801] forcedeth 0000:00:09.0: suspend, may wakeup [ 44.469181] forcedeth 0000:00:09.0: PME# enabled [ 44.469191] forcedeth 0000:00:09.0: wake-up capability enabled by ACPI [ 44.469196] forcedeth 0000:00:09.0: PCI INT A disabled [ 44.479247] forcedeth 0000:00:08.0: suspend, may wakeup [ 44.479981] forcedeth 0000:00:08.0: PME# enabled [ 44.480014] forcedeth 0000:00:08.0: wake-up capability enabled by ACPI [ 44.480025] forcedeth 0000:00:08.0: PCI INT A disabled [ 45.311781] forcedeth 0000:00:09.0: LATE suspend, may wakeup [ 45.311784] forcedeth 0000:00:08.0: LATE suspend, may wakeup [ 45.312005] forcedeth 0000:00:08.0: EARLY resume [ 45.312005] forcedeth 0000:00:09.0: EARLY resume [ 46.067593] forcedeth 0000:00:08.0: resume [ 46.077904] forcedeth 0000:00:08.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010a) [ 46.077931] forcedeth 0000:00:08.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdffa400) [ 46.077949] forcedeth 0000:00:08.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa800) [ 46.077962] forcedeth 0000:00:08.0: restoring config space at offset 0x5 (was 0x1, writing 0x9401) [ 46.077973] forcedeth 0000:00:08.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff6000) [ 46.077987] forcedeth 0000:00:08.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 46.078026] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 46.078031] forcedeth 0000:00:08.0: setting latency timer to 64 [ 46.078042] forcedeth 0000:00:08.0: wake-up capability disabled by ACPI [ 46.078056] forcedeth 0000:00:08.0: PME# disabled [ 46.079323] forcedeth 0000:00:09.0: resume [ 46.089903] forcedeth 0000:00:09.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010b) [ 46.089930] forcedeth 0000:00:09.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdff4c00) [ 46.089952] forcedeth 0000:00:09.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa000) [ 46.089959] forcedeth 0000:00:09.0: restoring config space at offset 0x5 (was 0x1, writing 0x9081) [ 46.089964] forcedeth 0000:00:09.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff5000) [ 46.089970] forcedeth 0000:00:09.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 46.089998] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 46.090003] forcedeth 0000:00:09.0: setting latency timer to 64 [ 46.090007] forcedeth 0000:00:09.0: wake-up capability disabled by ACPI [ 46.090013] forcedeth 0000:00:09.0: PME# disabled [ 52.903755] forcedeth 0000:00:09.0: completing resume [ 52.903759] forcedeth 0000:00:08.0: completing resume
Quoted 1 line
However, the NIC still doesn't work after resume.
Is it still broken in current kernels?
Quoted 13 lines
00:08.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
Subsystem: nVidia Corporation Device cb84
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 219
Memory atfdff6000(32-bit, non-prefetchable) [size=4K]
I/O ports at 9400 [size=8]
Memory atfdffa800(32-bit, non-prefetchable) [size=256]
Memory atfdffa400(32-bit, non-prefetchable) [size=16]
Capabilities: [44] Power Management version 2
Capabilities: [70] MSI-X: Enable- Mask- TabSize=8
Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/3 Enable+
Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+ Kernel driver in use: forcedeth
Quoted 12 lines
00:09.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
Subsystem: nVidia Corporation Device cb84
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
Memory atfdff5000(32-bit, non-prefetchable) [size=4K]
I/O ports at 9080 [size=8]
Memory atfdffa000(32-bit, non-prefetchable) [size=256]
Memory atfdff4c00(32-bit, non-prefetchable) [size=16]
Capabilities: [44] Power Management version 2
Capabilities: [70] MSI-X: Enable- Mask- TabSize=8
Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/3 Enable-
Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+ Kernel driver in use: forcedeth
Thanks.
Quoted 5 lines · Andrew Morton
Quoted 1 line · On Tue, 05 Aug 2008 20:29:44 +0100 Simon Arlott <[email protected]> wrote:
[two weeks pass...]
[Must have missed this message.]
I have a box with forcedeth that evidently works after a resume from hibernation. Unfortunately, so far I haven't been able to make the box resume from suspend to RAM. I'll do my best to try again tomorrow, but there's a little hope. :-(
Quoted 67 lines
Quoted 67 lines
My NIC stops working after resuming from standby, it's not receiving any interrupts:
[ 0.618266] pci 0000:00:08.0: supports D1 [ 0.618267] pci 0000:00:08.0: supports D2 [ 0.618269] pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.618382] pci 0000:00:08.0: PME# disabled [ 0.618513] pci 0000:00:09.0: supports D1 [ 0.618523] pci 0000:00:09.0: supports D2 [ 0.618532] pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.618632] pci 0000:00:09.0: PME# disabled [ 0.629767] PM: Adding info for pci:0000:00:08.0 [ 0.630304] PM: Adding info for pci:0000:00:09.0 [ 0.866667] pci 0000:00:08.0: Enabling HT MSI Mapping [ 0.866804] pci 0000:00:09.0: Enabling HT MSI Mapping [ 1.847264] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61. [ 1.847918] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 1.848121] forcedeth 0000:00:08.0: setting latency timer to 64 [ 1.849363] forcedeth 0000:00:08.0: ifname eth2, PHY OUI 0x5043 @ 16, addr 00:e0:81:4d:2b:ec [ 1.849553] forcedeth 0000:00:08.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 1.850212] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 1.850405] forcedeth 0000:00:09.0: setting latency timer to 64 [ 1.851684] forcedeth 0000:00:09.0: ifname eth3, PHY OUI 0x5043 @ 17, addr 00:e0:81:4d:2b:ed [ 1.851873] forcedeth 0000:00:09.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 913.928604] forcedeth 0000:00:08.0: preparing suspend, may wakeup [ 913.928607] forcedeth 0000:00:09.0: preparing suspend, may wakeup [ 916.388326] forcedeth 0000:00:09.0: suspend, may wakeup [ 916.388704] forcedeth 0000:00:09.0: PME# enabled [ 916.388711] forcedeth 0000:00:09.0: wake-up capability enabled by ACPI [ 916.388714] forcedeth 0000:00:09.0: PCI INT A disabled [ 916.398995] forcedeth 0000:00:08.0: suspend, may wakeup [ 916.399741] forcedeth 0000:00:08.0: PME# enabled [ 916.399767] forcedeth 0000:00:08.0: wake-up capability enabled by ACPI [ 916.399786] forcedeth 0000:00:08.0: PCI INT A disabled [ 917.255261] forcedeth 0000:00:09.0: LATE suspend, may wakeup [ 917.255263] forcedeth 0000:00:08.0: LATE suspend, may wakeup [ 917.256004] forcedeth 0000:00:08.0: EARLY resume [ 917.256004] forcedeth 0000:00:09.0: EARLY resume [ 918.015874] forcedeth 0000:00:08.0: resume [ 918.026369] forcedeth 0000:00:08.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010a) [ 918.026395] forcedeth 0000:00:08.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdffa400) [ 918.026417] forcedeth 0000:00:08.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa800) [ 918.026428] forcedeth 0000:00:08.0: restoring config space at offset 0x5 (was 0x1, writing 0x9401) [ 918.026436] forcedeth 0000:00:08.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff6000) [ 918.026443] forcedeth 0000:00:08.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 918.026465] forcedeth 0000:00:08.0: wake-up capability disabled by ACPI [ 918.026471] forcedeth 0000:00:08.0: PME# disabled [ 918.027446] forcedeth 0000:00:09.0: resume [ 918.037096] forcedeth 0000:00:09.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010b) [ 918.037115] forcedeth 0000:00:09.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdff4c00) [ 918.037120] forcedeth 0000:00:09.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa000) [ 918.037125] forcedeth 0000:00:09.0: restoring config space at offset 0x5 (was 0x1, writing 0x9081) [ 918.037131] forcedeth 0000:00:09.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff5000) [ 918.037137] forcedeth 0000:00:09.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 918.037160] forcedeth 0000:00:09.0: wake-up capability disabled by ACPI [ 918.037174] forcedeth 0000:00:09.0: PME# disabled [ 925.810837] forcedeth 0000:00:09.0: completing resume [ 925.810841] forcedeth 0000:00:08.0: completing resumeCommit
25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth: reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000):drivers/net/forcedeth.c +0
-0@@ -5922,6 +5922,13 @@ static int nv_resume(struct pci_dev *pdev)
Quoted 77 lines
drivers/net/forcedeth.c static int nv_resume(struct pci_dev *pdev) · line 5934
Quoted 12 lines
drivers/net/forcedeth.c +7
-0pci_set_power_state (pdev,PCI_D0 );pci_restore_state (pdev); + rc =pci_enable_device (pdev); +if (rc) { +printk (KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n" ); +return rc; + } +pci_set_master (pdev); +/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 );That seems like a sensible change.
Quoted 62 lines
This results in interrupts being re-enabled after suspend:
[ 0.619558] pci 0000:00:08.0: supports D1 [ 0.619560] pci 0000:00:08.0: supports D2 [ 0.619561] pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.619684] pci 0000:00:08.0: PME# disabled [ 0.619826] pci 0000:00:09.0: supports D1 [ 0.619828] pci 0000:00:09.0: supports D2 [ 0.619837] pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.619952] pci 0000:00:09.0: PME# disabled [ 0.631145] PM: Adding info for pci:0000:00:08.0 [ 0.631699] PM: Adding info for pci:0000:00:09.0 [ 0.870662] pci 0000:00:08.0: Enabling HT MSI Mapping [ 0.870809] pci 0000:00:09.0: Enabling HT MSI Mapping [ 1.853343] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61. [ 1.854016] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 1.854217] forcedeth 0000:00:08.0: setting latency timer to 64 [ 1.855468] forcedeth 0000:00:08.0: ifname eth2, PHY OUI 0x5043 @ 16, addr 00:e0:81:4d:2b:ec [ 1.855658] forcedeth 0000:00:08.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 1.856332] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 1.856528] forcedeth 0000:00:09.0: setting latency timer to 64 [ 1.857815] forcedeth 0000:00:09.0: ifname eth3, PHY OUI 0x5043 @ 17, addr 00:e0:81:4d:2b:ed [ 1.858015] forcedeth 0000:00:09.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 42.310803] forcedeth 0000:00:08.0: preparing suspend, may wakeup [ 42.310807] forcedeth 0000:00:09.0: preparing suspend, may wakeup [ 44.468801] forcedeth 0000:00:09.0: suspend, may wakeup [ 44.469181] forcedeth 0000:00:09.0: PME# enabled [ 44.469191] forcedeth 0000:00:09.0: wake-up capability enabled by ACPI [ 44.469196] forcedeth 0000:00:09.0: PCI INT A disabled [ 44.479247] forcedeth 0000:00:08.0: suspend, may wakeup [ 44.479981] forcedeth 0000:00:08.0: PME# enabled [ 44.480014] forcedeth 0000:00:08.0: wake-up capability enabled by ACPI [ 44.480025] forcedeth 0000:00:08.0: PCI INT A disabled [ 45.311781] forcedeth 0000:00:09.0: LATE suspend, may wakeup [ 45.311784] forcedeth 0000:00:08.0: LATE suspend, may wakeup [ 45.312005] forcedeth 0000:00:08.0: EARLY resume [ 45.312005] forcedeth 0000:00:09.0: EARLY resume [ 46.067593] forcedeth 0000:00:08.0: resume [ 46.077904] forcedeth 0000:00:08.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010a) [ 46.077931] forcedeth 0000:00:08.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdffa400) [ 46.077949] forcedeth 0000:00:08.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa800) [ 46.077962] forcedeth 0000:00:08.0: restoring config space at offset 0x5 (was 0x1, writing 0x9401) [ 46.077973] forcedeth 0000:00:08.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff6000) [ 46.077987] forcedeth 0000:00:08.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 46.078026] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 46.078031] forcedeth 0000:00:08.0: setting latency timer to 64 [ 46.078042] forcedeth 0000:00:08.0: wake-up capability disabled by ACPI [ 46.078056] forcedeth 0000:00:08.0: PME# disabled [ 46.079323] forcedeth 0000:00:09.0: resume [ 46.089903] forcedeth 0000:00:09.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010b) [ 46.089930] forcedeth 0000:00:09.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdff4c00) [ 46.089952] forcedeth 0000:00:09.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa000) [ 46.089959] forcedeth 0000:00:09.0: restoring config space at offset 0x5 (was 0x1, writing 0x9081) [ 46.089964] forcedeth 0000:00:09.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff5000) [ 46.089970] forcedeth 0000:00:09.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 46.089998] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 46.090003] forcedeth 0000:00:09.0: setting latency timer to 64 [ 46.090007] forcedeth 0000:00:09.0: wake-up capability disabled by ACPI [ 46.090013] forcedeth 0000:00:09.0: PME# disabled [ 52.903755] forcedeth 0000:00:09.0: completing resume [ 52.903759] forcedeth 0000:00:08.0: completing resumeHowever, the NIC still doesn't work after resume.
Simon, I'd prefer the full dmesg to the grepped forcedeth messages.
I guess this was resume from suspend to RAM?
Quoted 1 line
Is it still broken in current kernels?
It probably is.
Thanks,
Rafael
Quoted 11 lines · Rafael J. Wysocki
Quoted 5 lines · Andrew Morton
Quoted 1 line · On Tue, 05 Aug 2008 20:29:44 +0100 Simon Arlott <[email protected]> wrote:
[two weeks pass...]
[Must have missed this message.]
I have a box with forcedeth that evidently works after a resume from hibernation. Unfortunately, so far I haven't been able to make the box
With hibernation would it re-initialise the devices differently?
Quoted 2 lines
resume from suspend to RAM. I'll do my best to try again tomorrow, but there's a little hope. :-(
Mine doesn't either, try standby?
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
My NIC stops working after resuming from standby, it's not receiving any interrupts:
Commit25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth: reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000):drivers/net/forcedeth.c +0
-0@@ -5922,6 +5922,13 @@ static int nv_resume(struct pci_dev *pdev)
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
drivers/net/forcedeth.c +4
-0pci_set_power_state (pdev,PCI_D0 );pci_restore_state (pdev); + rc =pci_enable_device (pdev); +if (rc) { +printk (KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n" ); +return rc;Quoted 9 lines
drivers/net/forcedeth.c static int nv_resume(struct pci_dev *pdev) · line 5934
Quoted 6 lines
drivers/net/forcedeth.c +3
-0+ } +pci_set_master (pdev); +/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 );That seems like a sensible change.
With this applied, I can resume from standby *without MSI* and the NIC still works. I haven't tested it without MSI and without the patch... mostly because I got a BUG when I tried to recompile.
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
This results in interrupts being re-enabled after suspend:
However, the NIC still doesn't work after resume.Simon, I'd prefer the full dmesg to the grepped forcedeth messages.
Attached. (The previous email has all the standby/resume log output.)
Quoted 1 line
I guess this was resume from suspend to RAM?
Standby - resume from RAM is completely broken for my system.
Quoted 3 lines
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
Signature · 1 line
Simon Arlott
Quoted 11 lines · Rafael J. Wysocki
Quoted 5 lines · Andrew Morton
Quoted 1 line · On Tue, 05 Aug 2008 20:29:44 +0100 Simon Arlott <[email protected]> wrote:
[two weeks pass...]
[Must have missed this message.]
I have a box with forcedeth that evidently works after a resume from hibernation. Unfortunately, so far I haven't been able to make the box
With hibernation would it re-initialise the devices differently?
Quoted 2 lines
resume from suspend to RAM. I'll do my best to try again tomorrow, but there's a little hope. :-(
Mine doesn't either, try standby?
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
My NIC stops working after resuming from standby, it's not receiving any interrupts:
Commit25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth: reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000):drivers/net/forcedeth.c +0
-0@@ -5922,6 +5922,13 @@ static int nv_resume(struct pci_dev *pdev)
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
drivers/net/forcedeth.c +4
-0pci_set_power_state (pdev,PCI_D0 );pci_restore_state (pdev); + rc =pci_enable_device (pdev); +if (rc) { +printk (KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n" ); +return rc;Quoted 9 lines
drivers/net/forcedeth.c static int nv_resume(struct pci_dev *pdev) · line 5934
Quoted 6 lines
drivers/net/forcedeth.c +3
-0+ } +pci_set_master (pdev); +/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 );That seems like a sensible change.
With this applied, I can resume from standby *without MSI* and the NIC still works. I haven't tested it without MSI and without the patch... mostly because I got a BUG when I tried to recompile.
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
This results in interrupts being re-enabled after suspend:
However, the NIC still doesn't work after resume.Simon, I'd prefer the full dmesg to the grepped forcedeth messages.
Attached. (The previous email has all the standby/resume log output.)
Quoted 1 line
I guess this was resume from suspend to RAM?
Standby - resume from RAM is completely broken for my system.
Quoted 3 lines
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
Signature · 1 line
Simon Arlott
Quoted 7 lines · Simon Arlott
Quoted 3 lines · Rafael J. Wysocki
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
same problem with nv_shutdown about setting it to D3Hot?
YH
Quoted 7 lines · Simon Arlott
Quoted 3 lines · Rafael J. Wysocki
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
same problem with nv_shutdown about setting it to D3Hot?
YH
Quoted 10 lines · Yinghai Lu
Quoted 7 lines · Simon Arlott
Quoted 3 lines · Rafael J. Wysocki
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
same problem with
nv_shutdownabout setting it to D3Hot?
Well, maybe. The only way to verify that would be to try with MSI disabled. ;-)
Thanks,
Rafael
Quoted 10 lines · Yinghai Lu
Quoted 7 lines · Simon Arlott
Quoted 3 lines · Rafael J. Wysocki
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
same problem with
nv_shutdownabout setting it to D3Hot?
Well, maybe. The only way to verify that would be to try with MSI disabled. ;-)
Thanks,
Rafael
Quoted 10 lines · Yinghai Lu
Quoted 7 lines · Simon Arlott
Quoted 3 lines · Rafael J. Wysocki
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
same problem with
nv_shutdownabout setting it to D3Hot?
I'm not sure what you're asking here...?
Signature · 1 line
Simon Arlott
Quoted 10 lines · Yinghai Lu
Quoted 7 lines · Simon Arlott
Quoted 3 lines · Rafael J. Wysocki
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
same problem with
nv_shutdownabout setting it to D3Hot?
I'm not sure what you're asking here...?
Signature · 1 line
Simon Arlott
Quoted 6 lines · Simon Arlott
Quoted 5 lines · Yinghai Lu
Quoted 4 lines · Simon Arlott
Quoted 2 lines · Rafael J. Wysocki
Quoted 1 line
Is it still broken in current kernels?
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
It probably is.
If I have MSI enabled, it still doesn't work.
same problem with
nv_shutdownabout setting it to D3Hot?I'm not sure what you're asking here...?
This was a question for me. :-)
Quoted 6 lines · Simon Arlott
Quoted 5 lines · Yinghai Lu
Quoted 4 lines · Simon Arlott
Quoted 2 lines · Rafael J. Wysocki
Quoted 1 line
Is it still broken in current kernels?
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
It probably is.
If I have MSI enabled, it still doesn't work.
same problem with
nv_shutdownabout setting it to D3Hot?I'm not sure what you're asking here...?
This was a question for me. :-)
Quoted 6 lines · Simon Arlott
Quoted 5 lines · Rafael J. Wysocki
Quoted 4 lines · Andrew Morton
Quoted 1 line · On Tue, 05 Aug 2008 20:29:44 +0100 Simon Arlott <[email protected]> wrote:
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
[two weeks pass...]
[Must have missed this message.]
I have a box with forcedeth that evidently works after a resume from hibernation. Unfortunately, so far I haven't been able to make the box
With hibernation would it re-initialise the devices differently?
Yes. Usually the BIOS does something to devices in that case.
Quoted 4 lines
Quoted 2 lines
resume from suspend to RAM. I'll do my best to try again tomorrow, but there's a little hope. :-(
Mine doesn't either, try standby?
OK, I will.
Quoted 27 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
My NIC stops working after resuming from standby, it's not receiving any interrupts:
Commit25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth: reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000):drivers/net/forcedeth.c +0
-0@@ -5922,6 +5922,13 @@ static int nv_resume(struct pci_dev *pdev)Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
drivers/net/forcedeth.c +4
-0pci_set_power_state (pdev,PCI_D0 );pci_restore_state (pdev); + rc =pci_enable_device (pdev); +if (rc) { +printk (KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n" ); +return rc;Quoted 9 lines
drivers/net/forcedeth.c static int nv_resume(struct pci_dev *pdev) · line 5934
Quoted 6 lines
drivers/net/forcedeth.c +3
-0+ } +pci_set_master (pdev); +/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 );That seems like a sensible change.
Quoted 3 lines
With this applied, I can resume from standby *without MSI* and the NIC still works. I haven't tested it without MSI and without the patch... mostly because I got a BUG when I tried to recompile.
That's interesting. I'll try to reproduce it.
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
This results in interrupts being re-enabled after suspend:
However, the NIC still doesn't work after resume.Simon, I'd prefer the full dmesg to the grepped forcedeth messages.
Attached. (The previous email has all the standby/resume log output.)
Quoted 1 line
I guess this was resume from suspend to RAM?
Quoted 7 lines
Standby - resume from RAM is completely broken for my system.
Quoted 3 lines
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
Hm. I wonder if that's specific to forcedeth or other drivers may be affected.
Thanks,
Rafael
Quoted 6 lines · Simon Arlott
Quoted 5 lines · Rafael J. Wysocki
Quoted 4 lines · Andrew Morton
Quoted 1 line · On Tue, 05 Aug 2008 20:29:44 +0100 Simon Arlott <[email protected]> wrote:
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
[two weeks pass...]
[Must have missed this message.]
I have a box with forcedeth that evidently works after a resume from hibernation. Unfortunately, so far I haven't been able to make the box
With hibernation would it re-initialise the devices differently?
Yes. Usually the BIOS does something to devices in that case.
Quoted 4 lines
Quoted 2 lines
resume from suspend to RAM. I'll do my best to try again tomorrow, but there's a little hope. :-(
Mine doesn't either, try standby?
OK, I will.
Quoted 27 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
My NIC stops working after resuming from standby, it's not receiving any interrupts:
Commit25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth: reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000):drivers/net/forcedeth.c +0
-0@@ -5922,6 +5922,13 @@ static int nv_resume(struct pci_dev *pdev)Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
drivers/net/forcedeth.c +4
-0pci_set_power_state (pdev,PCI_D0 );pci_restore_state (pdev); + rc =pci_enable_device (pdev); +if (rc) { +printk (KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n" ); +return rc;Quoted 9 lines
drivers/net/forcedeth.c static int nv_resume(struct pci_dev *pdev) · line 5934
Quoted 6 lines
drivers/net/forcedeth.c +3
-0+ } +pci_set_master (pdev); +/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 );That seems like a sensible change.
Quoted 3 lines
With this applied, I can resume from standby *without MSI* and the NIC still works. I haven't tested it without MSI and without the patch... mostly because I got a BUG when I tried to recompile.
That's interesting. I'll try to reproduce it.
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
This results in interrupts being re-enabled after suspend:
However, the NIC still doesn't work after resume.Simon, I'd prefer the full dmesg to the grepped forcedeth messages.
Attached. (The previous email has all the standby/resume log output.)
Quoted 1 line
I guess this was resume from suspend to RAM?
Quoted 7 lines
Standby - resume from RAM is completely broken for my system.
Quoted 3 lines
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
Hm. I wonder if that's specific to forcedeth or other drivers may be affected.
Thanks,
Rafael
Quoted 61 lines · Simon Arlott
Quoted 11 lines · Rafael J. Wysocki
Quoted 5 lines · Andrew Morton
Quoted 1 line · On Tue, 05 Aug 2008 20:29:44 +0100 Simon Arlott <[email protected]> wrote:
[two weeks pass...]
[Must have missed this message.]
I have a box with forcedeth that evidently works after a resume from hibernation. Unfortunately, so far I haven't been able to make the box
With hibernation would it re-initialise the devices differently?
Quoted 2 lines
resume from suspend to RAM. I'll do my best to try again tomorrow, but there's a little hope. :-(
Mine doesn't either, try standby?
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
My NIC stops working after resuming from standby, it's not receiving any interrupts:
Commit25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth: reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000):drivers/net/forcedeth.c +0
-0@@ -5922,6 +5922,13 @@ static int nv_resume(struct pci_dev *pdev)Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
drivers/net/forcedeth.c +4
-0pci_set_power_state (pdev,PCI_D0 );pci_restore_state (pdev); + rc =pci_enable_device (pdev); +if (rc) { +printk (KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n" ); +return rc;Quoted 9 lines
drivers/net/forcedeth.c static int nv_resume(struct pci_dev *pdev) · line 5934
Quoted 6 lines
drivers/net/forcedeth.c +3
-0+ } +pci_set_master (pdev); +/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 );That seems like a sensible change.
With this applied, I can resume from standby *without MSI* and the NIC still works. I haven't tested it without MSI and without the patch... mostly because I got a BUG when I tried to recompile.
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
This results in interrupts being re-enabled after suspend:
However, the NIC still doesn't work after resume.Simon, I'd prefer the full dmesg to the grepped forcedeth messages.
Attached. (The previous email has all the standby/resume log output.)
Quoted 1 line
I guess this was resume from suspend to RAM?
Quoted 7 lines
Standby - resume from RAM is completely broken for my system.
Quoted 3 lines
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
I cannot reproduce the problem locally, at least not with 2.6.27-rc4.
I was able to make my box resume from suspend to RAM by using
# s2ram --force --vbe_mode --vbe_post
(s2ram as shipped in openSUSE 11.0) and forcedeth works correctly after the resume. However, I had to add 'acpi_sleep=old_ordering' to the kernel command line.
My box is a desktop with an Asus A8N-SLI motherboard and an Athlon 64 X2 CPU.
I have created a Bugzilla entry for this issue at
http://bugzilla.kernel.org/show_bug.cgi?id=11390
Please put a boot log from dmesg and the output of 'lspci -vvv' in there, as text attachments.
Thanks,
Rafael
Quoted 61 lines · Simon Arlott
Quoted 11 lines · Rafael J. Wysocki
Quoted 5 lines · Andrew Morton
Quoted 1 line · On Tue, 05 Aug 2008 20:29:44 +0100 Simon Arlott <[email protected]> wrote:
[two weeks pass...]
[Must have missed this message.]
I have a box with forcedeth that evidently works after a resume from hibernation. Unfortunately, so far I haven't been able to make the box
With hibernation would it re-initialise the devices differently?
Quoted 2 lines
resume from suspend to RAM. I'll do my best to try again tomorrow, but there's a little hope. :-(
Mine doesn't either, try standby?
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
My NIC stops working after resuming from standby, it's not receiving any interrupts:
Commit25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth: reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000):drivers/net/forcedeth.c +0
-0@@ -5922,6 +5922,13 @@ static int nv_resume(struct pci_dev *pdev)Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
drivers/net/forcedeth.c +4
-0pci_set_power_state (pdev,PCI_D0 );pci_restore_state (pdev); + rc =pci_enable_device (pdev); +if (rc) { +printk (KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n" ); +return rc;Quoted 9 lines
drivers/net/forcedeth.c static int nv_resume(struct pci_dev *pdev) · line 5934
Quoted 6 lines
drivers/net/forcedeth.c +3
-0+ } +pci_set_master (pdev); +/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 );That seems like a sensible change.
With this applied, I can resume from standby *without MSI* and the NIC still works. I haven't tested it without MSI and without the patch... mostly because I got a BUG when I tried to recompile.
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
This results in interrupts being re-enabled after suspend:
However, the NIC still doesn't work after resume.Simon, I'd prefer the full dmesg to the grepped forcedeth messages.
Attached. (The previous email has all the standby/resume log output.)
Quoted 1 line
I guess this was resume from suspend to RAM?
Quoted 7 lines
Standby - resume from RAM is completely broken for my system.
Quoted 3 lines
Quoted 1 line
Is it still broken in current kernels?
It probably is.
If I have MSI enabled, it still doesn't work.
I cannot reproduce the problem locally, at least not with 2.6.27-rc4.
I was able to make my box resume from suspend to RAM by using
# s2ram --force --vbe_mode --vbe_post
(s2ram as shipped in openSUSE 11.0) and forcedeth works correctly after the resume. However, I had to add 'acpi_sleep=old_ordering' to the kernel command line.
My box is a desktop with an Asus A8N-SLI motherboard and an Athlon 64 X2 CPU.
I have created a Bugzilla entry for this issue at
http://bugzilla.kernel.org/show_bug.cgi?id=11390
Please put a boot log from dmesg and the output of 'lspci -vvv' in there, as text attachments.
Thanks,
Rafael
Quoted 5 lines · Andrew Morton
Quoted 1 line · On Tue, 05 Aug 2008 20:29:44 +0100 Simon Arlott <[email protected]> wrote:
[two weeks pass...]
[Must have missed this message.]
I have a box with forcedeth that evidently works after a resume from hibernation. Unfortunately, so far I haven't been able to make the box resume from suspend to RAM. I'll do my best to try again tomorrow, but there's a little hope. :-(
Quoted 67 lines
Quoted 67 lines
My NIC stops working after resuming from standby, it's not receiving any interrupts:
[ 0.618266] pci 0000:00:08.0: supports D1 [ 0.618267] pci 0000:00:08.0: supports D2 [ 0.618269] pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.618382] pci 0000:00:08.0: PME# disabled [ 0.618513] pci 0000:00:09.0: supports D1 [ 0.618523] pci 0000:00:09.0: supports D2 [ 0.618532] pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.618632] pci 0000:00:09.0: PME# disabled [ 0.629767] PM: Adding info for pci:0000:00:08.0 [ 0.630304] PM: Adding info for pci:0000:00:09.0 [ 0.866667] pci 0000:00:08.0: Enabling HT MSI Mapping [ 0.866804] pci 0000:00:09.0: Enabling HT MSI Mapping [ 1.847264] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61. [ 1.847918] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 1.848121] forcedeth 0000:00:08.0: setting latency timer to 64 [ 1.849363] forcedeth 0000:00:08.0: ifname eth2, PHY OUI 0x5043 @ 16, addr 00:e0:81:4d:2b:ec [ 1.849553] forcedeth 0000:00:08.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 1.850212] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 1.850405] forcedeth 0000:00:09.0: setting latency timer to 64 [ 1.851684] forcedeth 0000:00:09.0: ifname eth3, PHY OUI 0x5043 @ 17, addr 00:e0:81:4d:2b:ed [ 1.851873] forcedeth 0000:00:09.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 913.928604] forcedeth 0000:00:08.0: preparing suspend, may wakeup [ 913.928607] forcedeth 0000:00:09.0: preparing suspend, may wakeup [ 916.388326] forcedeth 0000:00:09.0: suspend, may wakeup [ 916.388704] forcedeth 0000:00:09.0: PME# enabled [ 916.388711] forcedeth 0000:00:09.0: wake-up capability enabled by ACPI [ 916.388714] forcedeth 0000:00:09.0: PCI INT A disabled [ 916.398995] forcedeth 0000:00:08.0: suspend, may wakeup [ 916.399741] forcedeth 0000:00:08.0: PME# enabled [ 916.399767] forcedeth 0000:00:08.0: wake-up capability enabled by ACPI [ 916.399786] forcedeth 0000:00:08.0: PCI INT A disabled [ 917.255261] forcedeth 0000:00:09.0: LATE suspend, may wakeup [ 917.255263] forcedeth 0000:00:08.0: LATE suspend, may wakeup [ 917.256004] forcedeth 0000:00:08.0: EARLY resume [ 917.256004] forcedeth 0000:00:09.0: EARLY resume [ 918.015874] forcedeth 0000:00:08.0: resume [ 918.026369] forcedeth 0000:00:08.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010a) [ 918.026395] forcedeth 0000:00:08.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdffa400) [ 918.026417] forcedeth 0000:00:08.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa800) [ 918.026428] forcedeth 0000:00:08.0: restoring config space at offset 0x5 (was 0x1, writing 0x9401) [ 918.026436] forcedeth 0000:00:08.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff6000) [ 918.026443] forcedeth 0000:00:08.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 918.026465] forcedeth 0000:00:08.0: wake-up capability disabled by ACPI [ 918.026471] forcedeth 0000:00:08.0: PME# disabled [ 918.027446] forcedeth 0000:00:09.0: resume [ 918.037096] forcedeth 0000:00:09.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010b) [ 918.037115] forcedeth 0000:00:09.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdff4c00) [ 918.037120] forcedeth 0000:00:09.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa000) [ 918.037125] forcedeth 0000:00:09.0: restoring config space at offset 0x5 (was 0x1, writing 0x9081) [ 918.037131] forcedeth 0000:00:09.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff5000) [ 918.037137] forcedeth 0000:00:09.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 918.037160] forcedeth 0000:00:09.0: wake-up capability disabled by ACPI [ 918.037174] forcedeth 0000:00:09.0: PME# disabled [ 925.810837] forcedeth 0000:00:09.0: completing resume [ 925.810841] forcedeth 0000:00:08.0: completing resumeCommit
25d90810ff49d2a63475776f24c74c6bb49b045f([netdrvr] forcedeth: reorder suspend/resume code) introducespci_disable_devicetonv_suspend, but there's no correspondingpci_enable_deviceinnv_resume- so I added one (copied from e1000):drivers/net/forcedeth.c +0
-0@@ -5922,6 +5922,13 @@ static int nv_resume(struct pci_dev *pdev)
Quoted 77 lines
drivers/net/forcedeth.c static int nv_resume(struct pci_dev *pdev) · line 5934
Quoted 12 lines
drivers/net/forcedeth.c +7
-0pci_set_power_state (pdev,PCI_D0 );pci_restore_state (pdev); + rc =pci_enable_device (pdev); +if (rc) { +printk (KERN_ERR "forcedeth: Cannot enable PCI device from suspend\n" ); +return rc; + } +pci_set_master (pdev); +/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 );That seems like a sensible change.
Quoted 62 lines
This results in interrupts being re-enabled after suspend:
[ 0.619558] pci 0000:00:08.0: supports D1 [ 0.619560] pci 0000:00:08.0: supports D2 [ 0.619561] pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.619684] pci 0000:00:08.0: PME# disabled [ 0.619826] pci 0000:00:09.0: supports D1 [ 0.619828] pci 0000:00:09.0: supports D2 [ 0.619837] pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.619952] pci 0000:00:09.0: PME# disabled [ 0.631145] PM: Adding info for pci:0000:00:08.0 [ 0.631699] PM: Adding info for pci:0000:00:09.0 [ 0.870662] pci 0000:00:08.0: Enabling HT MSI Mapping [ 0.870809] pci 0000:00:09.0: Enabling HT MSI Mapping [ 1.853343] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61. [ 1.854016] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 1.854217] forcedeth 0000:00:08.0: setting latency timer to 64 [ 1.855468] forcedeth 0000:00:08.0: ifname eth2, PHY OUI 0x5043 @ 16, addr 00:e0:81:4d:2b:ec [ 1.855658] forcedeth 0000:00:08.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 1.856332] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 1.856528] forcedeth 0000:00:09.0: setting latency timer to 64 [ 1.857815] forcedeth 0000:00:09.0: ifname eth3, PHY OUI 0x5043 @ 17, addr 00:e0:81:4d:2b:ed [ 1.858015] forcedeth 0000:00:09.0: highdma csum vlan pwrctl mgmt timirq gbit lnktim msi desc-v3 [ 42.310803] forcedeth 0000:00:08.0: preparing suspend, may wakeup [ 42.310807] forcedeth 0000:00:09.0: preparing suspend, may wakeup [ 44.468801] forcedeth 0000:00:09.0: suspend, may wakeup [ 44.469181] forcedeth 0000:00:09.0: PME# enabled [ 44.469191] forcedeth 0000:00:09.0: wake-up capability enabled by ACPI [ 44.469196] forcedeth 0000:00:09.0: PCI INT A disabled [ 44.479247] forcedeth 0000:00:08.0: suspend, may wakeup [ 44.479981] forcedeth 0000:00:08.0: PME# enabled [ 44.480014] forcedeth 0000:00:08.0: wake-up capability enabled by ACPI [ 44.480025] forcedeth 0000:00:08.0: PCI INT A disabled [ 45.311781] forcedeth 0000:00:09.0: LATE suspend, may wakeup [ 45.311784] forcedeth 0000:00:08.0: LATE suspend, may wakeup [ 45.312005] forcedeth 0000:00:08.0: EARLY resume [ 45.312005] forcedeth 0000:00:09.0: EARLY resume [ 46.067593] forcedeth 0000:00:08.0: resume [ 46.077904] forcedeth 0000:00:08.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010a) [ 46.077931] forcedeth 0000:00:08.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdffa400) [ 46.077949] forcedeth 0000:00:08.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa800) [ 46.077962] forcedeth 0000:00:08.0: restoring config space at offset 0x5 (was 0x1, writing 0x9401) [ 46.077973] forcedeth 0000:00:08.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff6000) [ 46.077987] forcedeth 0000:00:08.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 46.078026] forcedeth 0000:00:08.0: PCI INT A -> Link[LMAC] -> GSI 21 (level, low) -> IRQ 21 [ 46.078031] forcedeth 0000:00:08.0: setting latency timer to 64 [ 46.078042] forcedeth 0000:00:08.0: wake-up capability disabled by ACPI [ 46.078056] forcedeth 0000:00:08.0: PME# disabled [ 46.079323] forcedeth 0000:00:09.0: resume [ 46.089903] forcedeth 0000:00:09.0: restoring config space at offset 0xf (was 0x14010100, writing 0x1401010b) [ 46.089930] forcedeth 0000:00:09.0: restoring config space at offset 0x7 (was 0x0, writing 0xfdff4c00) [ 46.089952] forcedeth 0000:00:09.0: restoring config space at offset 0x6 (was 0x0, writing 0xfdffa000) [ 46.089959] forcedeth 0000:00:09.0: restoring config space at offset 0x5 (was 0x1, writing 0x9081) [ 46.089964] forcedeth 0000:00:09.0: restoring config space at offset 0x4 (was 0x0, writing 0xfdff5000) [ 46.089970] forcedeth 0000:00:09.0: restoring config space at offset 0x1 (was 0xb00000, writing 0xb00007) [ 46.089998] forcedeth 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 20 (level, low) -> IRQ 20 [ 46.090003] forcedeth 0000:00:09.0: setting latency timer to 64 [ 46.090007] forcedeth 0000:00:09.0: wake-up capability disabled by ACPI [ 46.090013] forcedeth 0000:00:09.0: PME# disabled [ 52.903755] forcedeth 0000:00:09.0: completing resume [ 52.903759] forcedeth 0000:00:08.0: completing resumeHowever, the NIC still doesn't work after resume.
Simon, I'd prefer the full dmesg to the grepped forcedeth messages.
I guess this was resume from suspend to RAM?
Quoted 1 line
Is it still broken in current kernels?
It probably is.
Thanks,
Rafael