[realtek] SIOCSIFFLAGS problem witn rtl8139
Octavi Fors
ofors@am.ub.es
Thu Jun 6 11:57:01 2002
Donald,
I've found an strange behaviour in the laptop hability of bringing up eth0
that may bring some light for identifying what's going on:
I've discovered that when I reboot laptop from WinXP and select to entry
in Linux in LILO, there's no problem with eth0 interface. This is brougth
up succesfully.
However, if once in Linux with eth0 up, I make:
% ifconfig eth0 down
% reboot
and select again to entry in Linux, this time Linux fails bringing up eth0
(with the same SIOCSIFFLAGS message).
Thus, it seems that Linux NEEDS to be booted with eth0 up. I found this
very strange, but I thought it could be useful for matching a diagnostic.
Below I try to answer all your questions. In the commands you suggested,
I'm including the result in both cases (when eth0 is succesfully brougth
up and not).
On Tue, 4 Jun 2002, Donald Becker wrote:
>
> What Ethernet card?
I don't know if that is the right way to check this, but by looking
'Network Adapters' in WinXP, I get the following information:
In 'General' section:
Name: NIC Fast Ethernet PCI Family RTL8139 Realtek
Device type: Network Adapter
Manufacturer: Realtek
Location: Bus PCI 0, device 5, function 0.
In 'Driver' section:
Driver provider: Microsoft
Driver date: 01/07/2001
Driver version: 5.396.530.2001
In 'Resources' section:
I/O interval: F800-F8FF
Memory interval: FBEFAF00-FBEFAFFF
IRQ: 10
>Is it PCI connected on the motherboard, a mini-PCI
> card plugged into the system, or a CardBus card?
how can I get this info?
Just a guess:
by going to 'Device Administrator' in WinXP, and choosing 'View Resources
by connection', I got 5 resources with IRQ 10:
(PCI) 10 : O2Micro OZ6933 CardBus Crontroller
(PCI) 10 : O2Micro OZ6933 CardBus Crontroller
(PCI) 10 : Creatix V.90 HAM Data Fax Modem
(PCI) 10 : OHCI IEEE 1394 compatible host Controller.
(PCI) 10 : NIC Fast Ethernet PCI family RTL8139 Realtek.
Does that mean mine is a CardBus card?
> If it's a CardBus card, the resource allocation problem is with PCMCIA
> code. Otherwise it's a bus bridge configuration issue.
when I choose 'View devices by type' and select PCMCIA, again two lines
with the item 'O2Micro OZ6933 CardBus Crontroller' are displayed in the
'Device Administrator'.
Does that confirm your guess that it's a resource allocation problem with
PCMCIA?
> What is the detection message put out by the driver?
I don't know where to go to check this... Do you?
> What is reported about the NIC by 'lspci -v' or 'cat /proc/pci'?
Booting from Linux (eth0 is NOT brought up succesfully)
-------------------------------------------------------
lspci -v :
00:00.0 Host bridge: VIA Technologies, Inc. VT8605 [ProSavage PM133]
Flags: bus master, medium devsel, latency 0
Memory at e8000000 (32-bit, prefetchable) [size=128M]
Capabilities: [a0] AGP version 2.0
Capabilities: [c0] Power Management version 2
00:01.0 PCI bridge: VIA Technologies, Inc. VT8605 [PM133 AGP] (prog-if 00
[Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: e0100000-e01fffff
Prefetchable memory behind bridge: f0000000-f7ffffff
Capabilities: [80] Power Management version 2
00:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev
10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 64
I/O ports at 1c00 [size=256]
Memory at 17000000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
00:06.0 Communication controller: Ambient Technologies Inc: Unknown device
4000 (rev 02)
Subsystem: Unknown device 16be:0001
Flags: medium devsel, IRQ 10
Memory at e0000000 (32-bit, non-prefetchable) [size=4K]
I/O ports at 1400 [size=256]
Capabilities: [60] Power Management version 2
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South]
(rev 40)
Subsystem: VIA Technologies, Inc. VT82C686/A PCI to ISA Bridge
Flags: bus master, stepping, medium devsel, latency 0
Capabilities: [c0] Power Management version 2
00:07.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev
06) (prog-if 8a [Master SecP PriP])
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1890
Flags: bus master, medium devsel, latency 64
I/O ports at 1020 [size=16]
Capabilities: [c0] Power Management version 2
00:07.2 USB Controller: VIA Technologies, Inc. UHCI USB (rev 1a) (prog-if
00 [UHCI])
Subsystem: Unknown device 0925:1234
Flags: bus master, medium devsel, latency 64, IRQ 5
I/O ports at 1000 [size=32]
Capabilities: [80] Power Management version 2
00:07.4 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI]
(rev 40)
Flags: medium devsel
Capabilities: [68] Power Management version 2
00:07.5 Multimedia audio controller: VIA Technologies, Inc. AC97 Audio
Controller (rev 50)
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1840
Flags: medium devsel, IRQ 4
I/O ports at 1800 [size=256]
I/O ports at 1034 [size=4]
I/O ports at 1030 [size=4]
Capabilities: [c0] Power Management version 2
00:0c.0 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 01)
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1860
Flags: bus master, stepping, slow devsel, latency 168, IRQ 10
Memory at 17001000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=02, subordinate=05, sec-latency=176
Memory window 0: 17400000-177ff000 (prefetchable)
Memory window 1: 17800000-17bff000
I/O window 0: 00004000-000040ff
I/O window 1: 00004400-000044ff
16-bit legacy interface ports at 0001
00:0c.1 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 01)
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1860
Flags: bus master, stepping, slow devsel, latency 168, IRQ 10
Memory at 17002000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=06, subordinate=09, sec-latency=176
Memory window 0: 17c00000-17fff000 (prefetchable)
Memory window 1: 18000000-183ff000
I/O window 0: 00004800-000048ff
I/O window 1: 00004c00-00004cff
16-bit legacy interface ports at 0001
00:0d.0 FireWire (IEEE 1394): Lucent Microelectronics: Unknown device 5811
(rev 04) (prog-if 10 [OHCI])
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1881
Flags: medium devsel, IRQ 10
Memory at e0001000 (32-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: [44] Power Management version 2
01:00.0 VGA compatible controller: S3 Inc.: Unknown device 8d01 (rev
02) (prog-if 00 [VGA])
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1830
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 5
Memory at e0100000 (32-bit, non-prefetchable) [size=512K]
Memory at f0000000 (32-bit, prefetchable) [size=128M]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [dc] Power Management version 2
Capabilities: [80] AGP version 2.0
cat /proc/pci :
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: VIA Technologies, Inc. VT8605 [ProSavage PM133] (rev 0).
Prefetchable 32 bit memory at 0xe8000000 [0xefffffff].
Bus 0, device 1, function 0:
PCI bridge: VIA Technologies, Inc. VT8605 [PM133 AGP] (rev 0).
Master Capable. No bursts. Min Gnt=12.
Bus 0, device 5, function 0:
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev
16).
Master Capable. Latency=64. Min Gnt=32.Max Lat=64.
I/O at 0x1c00 [0x1cff].
Non-prefetchable 32 bit memory at 0x17000000 [0x170000ff].
Bus 0, device 6, function 0:
Communication controller: PCI device 1813:4000 (Ambient Technologies
Inc) (rev 2).
IRQ 10.
Non-prefetchable 32 bit memory at 0xe0000000 [0xe0000fff].
I/O at 0x1400 [0x14ff].
Bus 0, device 7, function 0:
ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev
64).
Bus 0, device 7, function 1:
IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 6).
Master Capable. Latency=64.
I/O at 0x1020 [0x102f].
Bus 0, device 7, function 2:
USB Controller: VIA Technologies, Inc. UHCI USB (rev 26).
IRQ 5.
Master Capable. Latency=64.
I/O at 0x1000 [0x101f].
Bus 0, device 7, function 4:
ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev
64).
Bus 0, device 7, function 5:
Multimedia audio controller: VIA Technologies, Inc. AC97 Audio
Controller (rev 80).
IRQ 4.
I/O at 0x1800 [0x18ff].
I/O at 0x1034 [0x1037].
I/O at 0x1030 [0x1033].
Bus 0, device 12, function 0:
CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 1).
IRQ 10.
Master Capable. Latency=168. Min Gnt=128.Max Lat=5.
Non-prefetchable 32 bit memory at 0x17001000 [0x17001fff].
Bus 0, device 12, function 1:
CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (#2) (rev 1).
IRQ 10.
Master Capable. Latency=168. Min Gnt=128.Max Lat=5.
Non-prefetchable 32 bit memory at 0x17002000 [0x17002fff].
Bus 0, device 13, function 0:
FireWire (IEEE 1394): PCI device 11c1:5811 (Lucent
Microelectronics) (rev 4).
IRQ 10.
Master Capable. Latency=96. Min Gnt=12.Max Lat=24.
Non-prefetchable 32 bit memory at 0xe0001000 [0xe0001fff].
Bus 1, device 0, function 0:
VGA compatible controller: PCI device 5333:8d01 (S3 Inc.) (rev 2).
IRQ 5.
Master Capable. Latency=64. Min Gnt=4.Max Lat=255.
Non-prefetchable 32 bit memory at 0xe0100000 [0xe017ffff].
Prefetchable 32 bit memory at 0xf0000000 [0xf7ffffff].
Booting from WinXP (eth0 is brought up succesfully)
---------------------------------------------------
lspci -v :
00:00.0 Host bridge: VIA Technologies, Inc. VT8605 [ProSavage PM133]
Flags: bus master, medium devsel, latency 0
Memory at e8000000 (32-bit, prefetchable) [size=128M]
Capabilities: [a0] AGP version 2.0
Capabilities: [c0] Power Management version 2
00:01.0 PCI bridge: VIA Technologies, Inc. VT8605 [PM133 AGP] (prog-if 00
[Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: e0100000-e01fffff
Prefetchable memory behind bridge: f0000000-f7ffffff
Capabilities: [80] Power Management version 2
00:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev
10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 128, IRQ 10
I/O ports at f800 [size=256]
Memory at fbefaf00 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
00:06.0 Communication controller: Ambient Technologies Inc: Unknown device
4000 (rev 02)
Subsystem: Unknown device 16be:0001
Flags: medium devsel, IRQ 10
Memory at e0000000 (32-bit, non-prefetchable) [size=4K]
I/O ports at 1400 [size=256]
Capabilities: [60] Power Management version 2
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South]
(rev 40)
Subsystem: VIA Technologies, Inc. VT82C686/A PCI to ISA Bridge
Flags: bus master, stepping, medium devsel, latency 0
Capabilities: [c0] Power Management version 2
00:07.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev
06) (prog-if 8a [Master SecP PriP])
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1890
Flags: bus master, medium devsel, latency 64
I/O ports at 1020 [size=16]
Capabilities: [c0] Power Management version 2
00:07.2 USB Controller: VIA Technologies, Inc. UHCI USB (rev 1a) (prog-if
00 [UHCI])
Subsystem: Unknown device 0925:1234
Flags: bus master, medium devsel, latency 64, IRQ 5
I/O ports at 1000 [size=32]
Capabilities: [80] Power Management version 2
00:07.4 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI]
(rev 40)
Flags: medium devsel
Capabilities: [68] Power Management version 2
00:07.5 Multimedia audio controller: VIA Technologies, Inc. AC97 Audio
Controller (rev 50)
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1840
Flags: medium devsel, IRQ 4
I/O ports at 1800 [size=256]
I/O ports at 1034 [size=4]
I/O ports at 1030 [size=4]
Capabilities: [c0] Power Management version 2
00:0c.0 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 01)
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1860
Flags: bus master, stepping, slow devsel, latency 168, IRQ 10
Memory at 17000000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=02, subordinate=05, sec-latency=176
Memory window 0: 17400000-177ff000 (prefetchable)
Memory window 1: 17800000-17bff000
I/O window 0: 00004000-000040ff
I/O window 1: 00004400-000044ff
16-bit legacy interface ports at 0001
00:0c.1 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 01)
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1860
Flags: bus master, stepping, slow devsel, latency 168, IRQ 10
Memory at 17001000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=06, subordinate=09, sec-latency=176
Memory window 0: 17c00000-17fff000 (prefetchable)
Memory window 1: 18000000-183ff000
I/O window 0: 00004800-000048ff
I/O window 1: 00004c00-00004cff
16-bit legacy interface ports at 0001
00:0d.0 FireWire (IEEE 1394): Lucent Microelectronics: Unknown device 5811
(rev 04) (prog-if 10 [OHCI])
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1881
Flags: medium devsel, IRQ 10
Memory at e0001000 (32-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: [44] Power Management version 2
01:00.0 VGA compatible controller: S3 Inc.: Unknown device 8d01 (rev
02) (prog-if 00 [VGA])
Subsystem: FIRST INTERNATIONAL Computer Inc: Unknown device 1830
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 5
Memory at e0100000 (32-bit, non-prefetchable) [size=512K]
Memory at f0000000 (32-bit, prefetchable) [size=128M]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [dc] Power Management version 2
Capabilities: [80] AGP version 2.0
cat /proc/pci :
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: VIA Technologies, Inc. VT8605 [ProSavage PM133] (rev 0).
Prefetchable 32 bit memory at 0xe8000000 [0xefffffff].
Bus 0, device 1, function 0:
PCI bridge: VIA Technologies, Inc. VT8605 [PM133 AGP] (rev 0).
Master Capable. No bursts. Min Gnt=12.
Bus 0, device 5, function 0:
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev
16).
IRQ 10.
Master Capable. Latency=128. Min Gnt=32.Max Lat=64.
I/O at 0xf800 [0xf8ff].
Non-prefetchable 32 bit memory at 0xfbefaf00 [0xfbefafff].
Bus 0, device 6, function 0:
Communication controller: PCI device 1813:4000 (Ambient Technologies
Inc) (rev 2).
IRQ 10.
Non-prefetchable 32 bit memory at 0xe0000000 [0xe0000fff].
I/O at 0x1400 [0x14ff].
Bus 0, device 7, function 0:
ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev
64).
Bus 0, device 7, function 1:
IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 6).
Master Capable. Latency=64.
I/O at 0x1020 [0x102f].
Bus 0, device 7, function 2:
USB Controller: VIA Technologies, Inc. UHCI USB (rev 26).
IRQ 5.
Master Capable. Latency=64.
I/O at 0x1000 [0x101f].
Bus 0, device 7, function 4:
ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev
64).
Bus 0, device 7, function 5:
Multimedia audio controller: VIA Technologies, Inc. AC97 Audio
Controller (rev 80).
IRQ 4.
I/O at 0x1800 [0x18ff].
I/O at 0x1034 [0x1037].
I/O at 0x1030 [0x1033].
Bus 0, device 12, function 0:
CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 1).
IRQ 10.
Master Capable. Latency=168. Min Gnt=128.Max Lat=5.
Non-prefetchable 32 bit memory at 0x17000000 [0x17000fff].
Bus 0, device 12, function 1:
CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (#2) (rev 1).
IRQ 10.
Master Capable. Latency=168. Min Gnt=128.Max Lat=5.
Non-prefetchable 32 bit memory at 0x17001000 [0x17001fff].
Bus 0, device 13, function 0:
FireWire (IEEE 1394): PCI device 11c1:5811 (Lucent
Microelectronics) (rev 4).
IRQ 10.
Master Capable. Latency=96. Min Gnt=12.Max Lat=24.
Non-prefetchable 32 bit memory at 0xe0001000 [0xe0001fff].
Bus 1, device 0, function 0:
VGA compatible controller: PCI device 5333:8d01 (S3 Inc.) (rev 2).
IRQ 5.
Master Capable. Latency=64. Min Gnt=4.Max Lat=255.
Non-prefetchable 32 bit memory at 0xe0100000 [0xe017ffff].
Prefetchable 32 bit memory at 0xf0000000 [0xf7ffffff].
Hope this helps.
Thanks in advance,
=================================================================
Octavi Fors
Astronomy Department
University of Barcelona
Barcelona
SPAIN
e-mail: ofors@am.ub.es
=================================================================