Re: e1000 doesn't resume properly from standby (2.6.23-rc2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/08/07 04:01, Kok, Auke wrote:
> Simon Arlott wrote:
>> 00:0a.0 Ethernet controller: Intel Corp. 82546EB Gigabit Ethernet
>> Controller (Copper) (rev 01)
>>         Subsystem: Intel Corp.: Unknown device 1012
>>         Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 5
>>         Memory at e3020000 (64-bit, non-prefetchable) [size=128K]
>>         I/O ports at b000 [size=64]
>>         Capabilities: [dc] Power Management version 2
>>         Capabilities: [e4] PCI-X non-bridge device.
>>         Capabilities: [f0] Message Signalled Interrupts: 64bit+
>> Queue=0/0 Enable-
>>
>> 00:0a.1 Ethernet controller: Intel Corp. 82546EB Gigabit Ethernet
>> Controller (Copper) (rev 01)
>>         Subsystem: Intel Corp.: Unknown device 1012
>>         Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 12
>>         Memory at e3000000 (64-bit, non-prefetchable) [size=128K]
>>         I/O ports at b400 [size=64]
>>         Capabilities: [dc] Power Management version 2
>>         Capabilities: [e4] PCI-X non-bridge device.
>>         Capabilities: [f0] Message Signalled Interrupts: 64bit+
>> Queue=0/0 Enable-
>>
>> [  950.132046] Stopping tasks ... done.
>> [  950.459794] Suspending console(s)
>> [  951.776277] pnp: Device 00:0c disabled.
>> [  951.776673] pnp: Device 00:0a disabled.
>> [  951.776984] pnp: Device 00:09 disabled.
>> [  951.777306] pnp: Device 00:08 disabled.
>> [  951.777786] ACPI: PCI interrupt for device 0000:00:11.5 disabled
>> [  951.995359] ACPI: PCI interrupt for device 0000:00:11.3 disabled
>> [  952.006094] ACPI: PCI interrupt for device 0000:00:11.2 disabled
>> [  952.022243] ACPI handle has no context!
>> [  952.033068] ACPI: PCI interrupt for device 0000:00:0c.2 disabled
>> [  952.044086] ACPI: PCI interrupt for device 0000:00:0c.1 disabled
>> [  952.055083] ACPI: PCI interrupt for device 0000:00:0c.0 disabled
>> [  952.282211] ACPI: PCI interrupt for device 0000:00:0a.1 disabled
>> [  952.282221] ACPI handle has no context!
>> [  952.537474] ACPI: PCI interrupt for device 0000:00:0a.0 disabled
>> [  952.537495] ACPI handle has no context!
>>
>> [  956.857085] Back to C!
>> [  957.295035] ACPI: Unable to turn cooling device [b18d0e00] 'off'
>> [  957.521400] PCI: Setting latency timer of device 0000:00:01.0 to 64
>> [  957.521478] ACPI: PCI Interrupt 0000:00:09.0[A] -> Link [LNKB] ->
>> GSI 11 (level, low) -> IRQ 11
>> [  957.532256] PM: Writing back config space on device 0000:00:0a.0 at
>> offset f (was ff0100, writing ff0105)
>> [  957.532277] PM: Writing back config space on device 0000:00:0a.0 at
>> offset 8 (was 1, writing b001)
>> [  957.532291] PM: Writing back config space on device 0000:00:0a.0 at
>> offset 4 (was 4, writing e3020004)
>> [  957.532299] PM: Writing back config space on device 0000:00:0a.0 at
>> offset 3 (was 800000, writing 802008)
>> [  957.532309] PM: Writing back config space on device 0000:00:0a.0 at
>> offset 1 (was 2300000, writing 2300007)
>> [  957.532339] ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNKC] ->
>> GSI 5 (level, low) -> IRQ 5
>> [  957.567251] PM: Writing back config space on device 0000:00:0a.1 at
>> offset f (was ff0200, writing ff020c)
>> [  957.567275] PM: Writing back config space on device 0000:00:0a.1 at
>> offset 8 (was 1, writing b401)
>> [  957.567290] PM: Writing back config space on device 0000:00:0a.1 at
>> offset 4 (was 4, writing e3000004)
>> [  957.567298] PM: Writing back config space on device 0000:00:0a.1 at
>> offset 3 (was 800000, writing 802008)
>> [  957.567308] PM: Writing back config space on device 0000:00:0a.1 at
>> offset 1 (was 2300000, writing 2300007)
>> [  957.567346] ACPI: PCI Interrupt 0000:00:0a.1[B] -> Link [LNKD] ->
>> GSI 12 (level, low) -> IRQ 12
>> [  957.589975] ACPI: PCI Interrupt 0000:00:0b.0[A] -> Link [LNKD] ->
>> GSI 12 (level, low) -> IRQ 12
>> [  957.600217] ACPI: PCI Interrupt 0000:00:0c.0[A] -> Link [LNKA] ->
>> GSI 11 (level, low) -> IRQ 11
>> [  957.611230] ACPI: PCI Interrupt 0000:00:0c.1[B] -> Link [LNKB] ->
>> GSI 11 (level, low) -> IRQ 11
>> [  957.838282] ACPI: PCI Interrupt 0000:00:0c.2[C] -> Link [LNKC] ->
>> GSI 5 (level, low) -> IRQ 5
>> [  957.902166] ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[11] 
>> MMIO=[e3046000-e30467ff]  Max Packet=[512]  IR/IT contexts=[4/8]
>> [  957.911656] ACPI: PCI Interrupt 0000:00:11.1[A] -> Link [LNKA] ->
>> GSI 11 (level, low) -> IRQ 11
>> [  957.911666] PCI: VIA VLink IRQ fixup for 0000:00:11.1, from 255 to 11
>> [  957.922034] ACPI: PCI Interrupt 0000:00:11.2[D] -> Link [LNKD] ->
>> GSI 12 (level, low) -> IRQ 12
>> [  957.933028] ACPI: PCI Interrupt 0000:00:11.3[D] -> Link [LNKD] ->
>> GSI 12 (level, low) -> IRQ 12
>> [  957.944076] ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [LNKC] ->
>> GSI 5 (level, low) -> IRQ 5
>> [  957.944091] PCI: Setting latency timer of device 0000:00:11.5 to 64
>> [  957.946061] ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] ->
>> GSI 11 (level, low) -> IRQ 11
>> [  957.947464] pnp: Device 00:08 activated.
>> [  957.948724] pnp: Device 00:09 activated.
>> [  957.950635] pnp: Device 00:0a activated.
>> [  957.950664] pnp: Failed to activate device 00:0b.
>> [  957.951942] pnp: Device 00:0c activated.
>> [  959.883939] e1000: eth0: e1000_watchdog: NIC Link is Up 1000 Mbps
>> Full Duplex, Flow Control: RX/TX
>> [  961.866287] hde: selected mode 0x45
>> [  965.310493] hdg: selected mode 0x45
>> [  965.316152] hdh: selected mode 0x42
>> [  969.135523] hda: selected mode 0x46
>> [  973.454631] hdb: selected mode 0x45
>> [  973.457179] hdc: selected mode 0x44
>> [  973.459550] hdd: selected mode 0x42
>> [  973.950474] Restarting tasks ... done.
>> [  974.261357] agpgart: Found an AGP 2.0 compliant device at
>> 0000:00:00.0.
>> [  974.262099] agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x
>> mode
>> [  974.262620] agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x
>> mode
>> [  974.262894] [drm] Loading R200 Microcode
>>
>>
>> eth0 now doesn't receive anything - it's transmitting ok because I can
>> receive its packets on another host. It's also still getting interrupts.
>>
>> If I then ifconfig eth0 down and up, or change the MTU (since that
>> resets the link on e1000), it starts working again:
>>
>> [  993.926603] e1000: eth0: e1000_watchdog: NIC Link is Up 1000 Mbps
>> Full Duplex, Flow Control: RX/TX
>>
>>
>> There's a link up at 959.883939 too...
> 
> 
> OK, I'll try to look into this coming week.
> 
> Can you run `ethtool -d ethX` immediately after resuming and post that
> output? it might help to know that upfront.

MAC Registers
-------------
0x00000: CTRL (Device control register)  0x18F00249
      Endian mode (buffers):             little
      Link reset:                        reset
      Set link up:                       1
      Invert Loss-Of-Signal:             no
      Receive flow control:              enabled
      Transmit flow control:             enabled
      VLAN mode:                         disabled
      Auto speed detect:                 disabled
      Speed select:                      1000Mb/s
      Force speed:                       no
      Force duplex:                      no
0x00008: STATUS (Device status register) 0x0000C383
      Duplex:                            full
      Link up:                           link config
      TBI mode:                          disabled
      Link speed:                        1000Mb/s
      Bus type:                          PCI
      Bus speed:                         33MHz
      Bus width:                         32-bit
0x00100: RCTL (Receive control register) 0x02018022
      Receiver:                          enabled
      Store bad packets:                 disabled
      Unicast promiscuous:               disabled
      Multicast promiscuous:             disabled
      Long packet:                       enabled
      Descriptor minimum threshold size: 1/2
      Broadcast accept mode:             accept
      VLAN filter:                       disabled
      Cononical form indicator:          disabled
      Discard pause frames:              filtered
      Pass MAC control frames:           don't pass
      Receive buffer size:               16384
0x02808: RDLEN (Receive desc length)     0x00001000
0x02810: RDH   (Receive desc head)       0x00000000
0x02818: RDT   (Receive desc tail)       0x00000000
0x02820: RDTR  (Receive delay timer)     0x00000000
0x00400: TCTL (Transmit ctrl register)   0x0103F0FA
      Transmitter:                       enabled
      Pad short packets:                 enabled
      Software XOFF Transmission:        disabled
      Re-transmit on late collision:     enabled
0x03808: TDLEN (Transmit desc length)    0x00001000
0x03810: TDH   (Transmit desc head)      0x0000005C
0x03818: TDT   (Transmit desc tail)      0x0000005C
0x03820: TIDV  (Transmit delay timer)    0x00000008
PHY type:                                M88

-- 
Simon Arlott
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux