[gPXE] Intel NIC Link-state problem

Christopher Armenio Christopher.Armenio at resquared.com
Thu Apr 15 14:45:29 EDT 2010


Updated output of 'lspci -vn' (forgot to sudo):
00:00.0 0600: 8086:8100 (rev 07)
        Subsystem: 8086:8119
        Flags: bus master, fast devsel, latency 0

00:02.0 0300: 8086:8108 (rev 07)
        Subsystem: 8086:8119
        Flags: bus master, fast devsel, latency 0, IRQ 9
        Memory at a1000000 (32-bit, non-prefetchable) [size=512K]
        I/O ports at 6070 [size=8]
        Memory at 90000000 (32-bit, non-prefetchable) [size=256M]
        Memory at a1080000 (32-bit, non-prefetchable) [size=256K]
        Capabilities: [d0] Power Management version 2
        Capabilities: [b0] Vendor Specific Information <?>

00:1b.0 0403: 8086:811b (rev 07)
        Subsystem: 8086:8119
        Flags: bus master, fast devsel, latency 0, IRQ 20
        Memory at a10c0000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [130] Root Complex Link <?>
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel

00:1c.0 0604: 8086:8110 (rev 07)
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=02, sec-latency=0
        I/O behind bridge: 00002000-00005fff
        Memory behind bridge: 80000000-821fffff
        Prefetchable memory behind bridge: a0000000-a0ffffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [90] Subsystem: 8086:8119
        Capabilities: [a0] Power Management version 2
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp

00:1d.0 0c03: 8086:8114 (rev 07)
        Subsystem: 8086:8119
        Flags: bus master, fast devsel, latency 0, IRQ 18
        I/O ports at 6040 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.1 0c03: 8086:8115 (rev 07)
        Subsystem: 8086:8119
        Flags: bus master, fast devsel, latency 0, IRQ 19
        I/O ports at 6020 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.2 0c03: 8086:8116 (rev 07)
        Subsystem: 8086:8119
        Flags: bus master, fast devsel, latency 0, IRQ 20
        I/O ports at 6000 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.7 0c03: 8086:8117 (rev 07) (prog-if 20)
        Subsystem: 8086:8119
        Flags: bus master, fast devsel, latency 0, IRQ 21
        Memory at 82200000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Kernel driver in use: ehci_hcd

00:1e.0 0805: 8086:811c (rev 07) (prog-if 01)
        Subsystem: 8086:8119
        Flags: bus master, fast devsel, latency 0, IRQ 22
        Memory at a10c4500 (32-bit, non-prefetchable) [size=256]
        Kernel driver in use: sdhci-pci
        Kernel modules: sdhci-pci

00:1e.1 0805: 8086:811d (rev 07) (prog-if 01)
        Subsystem: 8086:8119
        Flags: bus master, fast devsel, latency 0, IRQ 22
        Memory at a10c4400 (32-bit, non-prefetchable) [size=256]
        Kernel driver in use: sdhci-pci
        Kernel modules: sdhci-pci

00:1f.0 0601: 8086:8119 (rev 07)
        Subsystem: 8086:8119
        Flags: fast devsel
        Kernel driver in use: isch_smbus
        Kernel modules: i2c-isch

00:1f.1 0101: 8086:811a (rev 07) (prog-if 80 [Master])
        Subsystem: 8086:8119
        Flags: bus master, fast devsel, latency 0
        [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled]
[size=8]
        [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled]
[size=1]
        [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled]
[size=8]
        [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled]
[size=1]
        I/O ports at 6060 [size=16]
        Kernel driver in use: pata_sch

01:00.0 0604: 10e3:8111 (rev 02)
        Flags: bus master, fast devsel, latency 0
        Memory at 81100000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=01, secondary=02, subordinate=02, sec-latency=0
        I/O behind bridge: 00002000-00004fff
        Memory behind bridge: 80000000-810fffff
        Prefetchable memory behind bridge: ffffffffa0000000-00000000a00fffff
        Capabilities: [80] Message Signalled Interrupts: Mask+ 64bit+
Queue=0/3 Enable-
        Capabilities: [a0] Power Management version 3
        Capabilities: [c0] Express PCI/PCI-X Bridge, MSI 00
        Capabilities: [100] Advanced Error Reporting <?>
        Kernel modules: shpchp

02:06.0 0680: 1283:8888 (rev 03)
        Flags: bus master, medium devsel, latency 0

02:07.0 0200: 8086:1209 (rev 10)
        Flags: bus master, medium devsel, latency 32, IRQ 16
        Memory at 81020000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at 4000 [size=64]
        Memory at 81000000 (32-bit, non-prefetchable) [size=128K]
        Expansion ROM at a0000000 [disabled] [size=64K]
        Capabilities: [dc] Power Management version 2
        Kernel driver in use: e100
        Kernel modules: e100

-Chris

On Thu, Apr 15, 2010 at 10:46 AM, Christopher Armenio <
Christopher.Armenio at resquared.com> wrote:

> Geert, Thomas, Shao,
>
> Results of add the printf:
> eepro100 - mdio_register: 0xffff
>
> Results of 'lspci -vn -s 02:07':
>
> 02:07.0 0200: 8086:1209 (rev 10)
>     Flags: bus master, medium devsel, latency 32, IRQ 16
>     Memory at 81020000 (32-bit, non-prefetchable) [size=4K]
>     I/O ports at 4000 [size=64]
>     Memory at 81000000 (32-bit, non-prefetchable) [size=128K]
>     Expansion ROM at a0000000 [disabled] [size=64K]
>     Capabilities: <access denied>
>
>     Kernel driver in use: e100
>     Kernel modules: e100
>
> I'm not seeing a 'subsystem' entry for that command. Here are the results
> of 'lspci -vn' for completeness:
> 00:00.0 0600: 8086:8100 (rev 07)
>     Subsystem: 8086:8119
>     Flags: bus master, fast devsel, latency 0
>
> 00:02.0 0300: 8086:8108 (rev 07)
>     Subsystem: 8086:8119
>     Flags: bus master, fast devsel, latency 0, IRQ 9
>     Memory at a1000000 (32-bit, non-prefetchable) [size=512K]
>     I/O ports at 6070 [size=8]
>     Memory at 90000000 (32-bit, non-prefetchable) [size=256M]
>     Memory at a1080000 (32-bit, non-prefetchable) [size=256K]
>     Capabilities: <access denied>
>
> 00:1b.0 0403: 8086:811b (rev 07)
>     Subsystem: 8086:8119
>     Flags: bus master, fast devsel, latency 0, IRQ 20
>     Memory at a10c0000 (64-bit, non-prefetchable) [size=16K]
>     Capabilities: <access denied>
>     Kernel driver in use: HDA Intel
>     Kernel modules: snd-hda-intel
>
> 00:1c.0 0604: 8086:8110 (rev 07)
>     Flags: bus master, fast devsel, latency 0
>     Bus: primary=00, secondary=01, subordinate=02, sec-latency=0
>     I/O behind bridge: 00002000-00005fff
>     Memory behind bridge: 80000000-821fffff
>     Prefetchable memory behind bridge: a0000000-a0ffffff
>     Capabilities: <access denied>
>     Kernel driver in use: pcieport-driver
>     Kernel modules: shpchp
>
> 00:1d.0 0c03: 8086:8114 (rev 07)
>     Subsystem: 8086:8119
>     Flags: bus master, fast devsel, latency 0, IRQ 18
>     I/O ports at 6040 [size=32]
>     Kernel driver in use: uhci_hcd
>
> 00:1d.1 0c03: 8086:8115 (rev 07)
>     Subsystem: 8086:8119
>     Flags: bus master, fast devsel, latency 0, IRQ 19
>     I/O ports at 6020 [size=32]
>     Kernel driver in use: uhci_hcd
>
> 00:1d.2 0c03: 8086:8116 (rev 07)
>     Subsystem: 8086:8119
>     Flags: bus master, fast devsel, latency 0, IRQ 20
>     I/O ports at 6000 [size=32]
>     Kernel driver in use: uhci_hcd
>
> 00:1d.7 0c03: 8086:8117 (rev 07) (prog-if 20)
>     Subsystem: 8086:8119
>     Flags: bus master, fast devsel, latency 0, IRQ 21
>     Memory at 82200000 (32-bit, non-prefetchable) [size=1K]
>     Capabilities: <access denied>
>     Kernel driver in use: ehci_hcd
>
> 00:1e.0 0805: 8086:811c (rev 07) (prog-if 01)
>     Subsystem: 8086:8119
>     Flags: bus master, fast devsel, latency 0, IRQ 22
>     Memory at a10c4500 (32-bit, non-prefetchable) [size=256]
>     Kernel driver in use: sdhci-pci
>     Kernel modules: sdhci-pci
>
> 00:1e.1 0805: 8086:811d (rev 07) (prog-if 01)
>     Subsystem: 8086:8119
>     Flags: bus master, fast devsel, latency 0, IRQ 22
>     Memory at a10c4400 (32-bit, non-prefetchable) [size=256]
>     Kernel driver in use: sdhci-pci
>     Kernel modules: sdhci-pci
>
> 00:1f.0 0601: 8086:8119 (rev 07)
>     Subsystem: 8086:8119
>     Flags: fast devsel
>     Kernel driver in use: isch_smbus
>     Kernel modules: i2c-isch
>
> 00:1f.1 0101: 8086:811a (rev 07) (prog-if 80 [Master])
>     Subsystem: 8086:8119
>     Flags: bus master, fast devsel, latency 0
>     [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled]
> [size=8]
>     [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled]
> [size=1]
>     [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled]
> [size=8]
>     [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled]
> [size=1]
>     I/O ports at 6060 [size=16]
>     Kernel driver in use: pata_sch
>
> 01:00.0 0604: 10e3:8111 (rev 02)
>     Flags: bus master, fast devsel, latency 0
>     Memory at 81100000 (32-bit, non-prefetchable) [size=4K]
>     Bus: primary=01, secondary=02, subordinate=02, sec-latency=0
>     I/O behind bridge: 00002000-00004fff
>     Memory behind bridge: 80000000-810fffff
>     Prefetchable memory behind bridge: ffffffffa0000000-00000000a00fffff
>     Capabilities: <access denied>
>     Kernel modules: shpchp
>
> 02:06.0 0680: 1283:8888 (rev 03)
>     Flags: bus master, medium devsel, latency 0
>
>
> 02:07.0 0200: 8086:1209 (rev 10)
>     Flags: bus master, medium devsel, latency 32, IRQ 16
>     Memory at 81020000 (32-bit, non-prefetchable) [size=4K]
>     I/O ports at 4000 [size=64]
>     Memory at 81000000 (32-bit, non-prefetchable) [size=128K]
>     Expansion ROM at a0000000 [disabled] [size=64K]
>     Capabilities: <access denied>
>
>     Kernel driver in use: e100
>     Kernel modules: e100
>
> Thanks!
> -Chris
>
>
>
> On Thu, Apr 15, 2010 at 2:07 AM, Geert Stappers <stappers at stappers.nl>wrote:
>
>> Op 20100415 om 01:24 schreef Thomas Miletich:
>> > On Thu, Apr 15, 2010 at 1:01 AM, Christopher Armenio wrote:
>> > > Shao,
>> > > I just tried compiling the 1.0.0+ code...still the same problem...it
>> thinks
>> > > the link is down, but I can see the receive counter incrementing.
>> > >
>> > > Again, the output of 'lspci -n -s 02:07' is:
>> > >
>> > > 02:07.0 0200: 8086:1209 (rev 10)
>> > >
>>
>> And what says `lspci -vn -s 02:07` ( v from verbose, shows "subsystem" )
>>
>> > Hello Christopher
>> > please insert the following line in eepro100.c in line 337, right
>> > after the ifec_mdio_setup() call:
>> >
>> > printf("eepro100 - mdio_register: %#04x\n", priv->mdio_register);
>> >
>>
>> --- a/src/drivers/net/eepro100.c
>> +++ b/src/drivers/net/eepro100.c
>> @@ -333,6 +333,7 @@ static int ifec_net_open ( struct net_device *netdev )
>>        /* Initialize MDIO */
>>        options = 0x00; /* 0x40 = 10mbps half duplex, 0x00 = Autosense */
>>        ifec_mdio_setup ( netdev, options );
>> +       printf("eepro100 - mdio_register: %#04x\n", priv->mdio_register);
>>
>>        /* Prepare MAC address w/ Individual Address Setup (ias) *
>> command.*/
>>        ias = malloc_dma ( sizeof ( *ias ), CB_ALIGN );
>>
>> > The driver will output a line in the format of 'eepro100 -
>> > mdio_register 0x????'. Please tell us what the value of 0x???? is for
>> > your card. When I get home tomorrow I'll compare the value to the
>> > values read with my eepro100 cards.
>>
>> Please mention "subsystem" from your eepro100 cards. ( lspci -vn )
>>
>> > I'll also have a look at the linux e100 and eepro100 drivers and see
>> > how they do the link detecting, as I think to remember neither of them
>> > had something as a 'mdio_register'.
>>
>>
>> Groeten
>> Geert Stappers
>>
>> _______________________________________________
>> gPXE mailing list
>> gPXE at etherboot.org
>> http://etherboot.org/mailman/listinfo/gpxe
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://etherboot.org/pipermail/gpxe/attachments/20100415/b0dbf09e/attachment-0001.html 


More information about the gPXE mailing list