Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117242 - Intel 82540EP Gigabit Ethernet + baselayout + netplug fails to get dhcp on repluging of network cable
Summary: Intel 82540EP Gigabit Ethernet + baselayout + netplug fails to get dhcp on re...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-2.6.16
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-30 17:05 UTC by Paul Berens
Modified: 2006-03-20 13:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Berens 2005-12-30 17:05:54 UTC
Okay here's the spefication of the machine, the steps to reproduct and so forth.

Machine: IBM Thinkpad 42
Kernel: sys-kernel/gentoo-sources-2.6.14-r2
Module: Intel(R) PRO/1000 Gigabit Ethernet support, Symbol: E1000 [=y]

Packadge: sys-apps/baselayout-1.12.0_pre12, 
          net-misc/dhcpcd-2.0.0, 
          sys-apps/netplug-1.2.9-r1

Problem: When machine is bootup, and the ethernet cable is plugged in, the baselayout, netplug, and dhcpcd correctly gets the DHCP information from the server, and the laptop is able to connect to the internet.  Now when the ethernet cable is unplugged, the interface is deconfigated, so there is no address and so forth, but its not bought down at all.  Then when the network cable is replugged in, the interface still won't get the correct DHCP address, it still acts like its up but no configation on it.

How to reproduct:
1) Bootup laptop with ethernet cable plugged in
2) unplug the ethernet cable
3) wait a minute or two
4) replug the ethernet cable


Expected result:
1) Bootup laptop with ethernet cable plugged in  --- Results with DHCP being gotten, and interface bought up.
2) unplug the ethernet cable --- Results in the interface being deconfigated and  possiably bought down
3) wait a minute or two --- Results in nothing happening
4) replug the ethernet cable --- Results in the interface being bought up and reconfigated, via dhcpcd.


Now onto the important information such as lspci, emerge --info and so forth.

LSPCI:

00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]
02:00.0 CardBus bridge: Texas Instruments PCI4520 PC card Cardbus Controller (rev 01)
02:00.1 CardBus bridge: Texas Instruments PCI4520 PC card Cardbus Controller (rev 01)
02:01.0 Ethernet controller: Intel Corporation 82540EP Gigabit Ethernet Controller (Mobile) (rev 03)
02:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG (rev 05)


EMERGE --INFO:

Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.12.0_pre12
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe -momit-leaf-frame-pointer -fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe -momit-leaf-frame-pointer -fno-ident -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 crypt mmx nls ntpl pam sse ssl tcpd unicode userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LINGUAS
Comment 1 Paul Berens 2005-12-30 17:09:43 UTC
Here's more detailed lspci for the ethernet card, if anyone needs it.

02:01.0 Ethernet controller: Intel Corporation 82540EP Gigabit Ethernet Controller (Mobile) (rev 03)
        Subsystem: IBM PRO/1000 MT Mobile Connection
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
        Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (63750ns min), Cache Line Size 08
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at c0220000 (32-bit, non-prefetchable) [size=128K]
        Region 1: Memory at c0200000 (32-bit, non-prefetchable) [size=64K]
        Region 2: I/O ports at 8000 [size=64]
        [virtual] Expansion ROM at ec000000 [disabled] [size=64K]
        Capabilities: [dc] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=1 PME-
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-12-31 01:44:45 UTC
netplug and ifplugd work fine on my x86 laptop with a natsemi adapter.

I have this exact same issue on my amd64 with a VIA Velocity. Both systems use gentoo-sources.
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2006-01-20 15:36:12 UTC
Please test 2.6.16-rc2 when it comes out (lots of e1000 fixes will be included). I'll try and remind you when it appears, if I remember about this bug myself :)
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-02-04 13:53:18 UTC
2.6.16-rc2 is out
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2006-02-17 08:26:07 UTC
Please reopen when you have tested the latest development kernel
Comment 6 Paul Berens 2006-03-04 01:27:26 UTC
(In reply to comment #5)
> Please reopen when you have tested the latest development kernel
> 

Okay, I finally am home for spring break, so I took the time to emerge the latest 2.6.16 line of kernel, and appearly it atleast fixes part of the issue, the interfance now is correctly configurated now.

However whenever I unplug the cable the interface does not go down, now I'm not sure if this is the proper action or not, but the interface is deconfigated, then when I plug the interface back in, it is properly re-configated and gets the dhcp address again.

So only thing that is left is the actual bringing down/up of the interface, but I'm not sure if its suposed to stay up or not.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2006-03-04 03:35:51 UTC
The interface staying UP is normal. Thanks for testing the newer kernel.
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2006-03-20 13:05:08 UTC
gentoo-sources-2.6.16 is now in portage.