Re: SIOCSIFFLAGS problem witn rtl8139

Donald Becker <[email protected]>
Newsgroups gmane.linux.drivers.realtek.devel
Message-ID <Pine.LNX.4.33.0206071438150.3463-100000@presario>
On Thu, 6 Jun 2002, Octavi Fors wrote:

> 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.
..
> % reboot
> and select again to entry in Linux, this time Linux fails bringing up eth0
> (with the same SIOCSIFFLAGS message).

> >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?

The /proc/pci info tells this.
It's not a CardBus card -- it would be on a non-zero PCI bus.

> > What is the detection message put out by the driver?
>
> I don't know where to go to check this... Do you?

Run 'dmesg' or 'cat /var/log/messages'.

> 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
...
>   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].

The NIC hasn't been assigned an IRQ.  The BIOS should have done this.  See
    http://www.scyld.com/expert/irq-conflict.html
In some cases, the Linux 2.4 kernel can assign IRQs to PCI devices and
that should have happened here.

> 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

OK, this time the NIC is assigned IRQ10.  This

>   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].

-- 
Donald Becker				[email protected]
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.