FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 03-28-2010, 04:50 PM
Ben Hutchings
 
Default Bug#573007: NIC r8169 doesn t start at restart on kernel linux-image-2.6.32-trunk-686 (workaround)

On Sun, 2010-03-28 at 18:33 +0200, Florent Rougon wrote:
[...]
> Of course, this is just a workaround for an annoying problem. A proper
> fix in the kernel would be most welcome. :-)

This is now being handled upstream and there is a proposed fix. We will
apply that once it has been tested across a range of RTL8169-family
chips.

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
 
Old 03-28-2010, 05:06 PM
Florent Rougon
 
Default Bug#573007: NIC r8169 doesn t start at restart on kernel linux-image-2.6.32-trunk-686 (workaround)

Ben Hutchings <ben@decadent.org.uk> wrote:

> This is now being handled upstream and there is a proposed fix. We will
> apply that once it has been tested across a range of RTL8169-family
> chips.

Thank you. If it can be of some help, I may test something. I am
currently using upstream 2.6.32 compiled with make-kpkg on lenny. My
Ethernet chip is RTL8111D according to the motherboard manual, and the
MB itself is Gigabyte GA-P55-UD5.

'lspci -v' says:

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: Giga-byte Technology Device e000
Flags: bus master, fast devsel, latency 0, IRQ 35
I/O ports at ae00 [size=256]
Memory at fb6ff000 (64-bit, prefetchable) [size=4K]
Memory at fb6f8000 (64-bit, prefetchable) [size=16K]
[virtual] Expansion ROM at fb600000 [disabled] [size=128K]
Capabilities: [40] Power Management version 3
Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [ac] MSI-X: Enable- Mask- TabSize=4
Capabilities: [cc] Vital Product Data <?>
Capabilities: [100] Advanced Error Reporting <?>
Capabilities: [140] Virtual Channel <?>
Capabilities: [160] Device Serial Number 00-e0-4c-68-00-00-00-03
Kernel driver in use: r8169
Kernel modules: r8169

[ About the script I posted, if anyone wants to use it in the meantime:
I noticed one can be more specific by replacing the "ifup/ifdown -a"
calls with "ifup/ifdown $interfaces". ]

Regards,

--
Florent



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87wrww8jg6.fsf@zita.maison">http://lists.debian.org/87wrww8jg6.fsf@zita.maison
 
Old 03-28-2010, 07:16 PM
Ben Hutchings
 
Default Bug#573007: NIC r8169 doesn t start at restart on kernel linux-image-2.6.32-trunk-686 (workaround)

On Sun, 2010-03-28 at 19:06 +0200, Florent Rougon wrote:
> Ben Hutchings <ben@decadent.org.uk> wrote:
>
> > This is now being handled upstream and there is a proposed fix. We will
> > apply that once it has been tested across a range of RTL8169-family
> > chips.
>
> Thank you. If it can be of some help, I may test something. I am
> currently using upstream 2.6.32 compiled with make-kpkg on lenny.

The patch is:

From: François Romieu <romieu@fr.zoreil.com>
Subject: [PATCH] r8169: fix broken register writes
Date: Sun, 28 Mar 2010 01:31:43 +0100

This is quite similar to b39fe41f481d20c201012e4483e76c203802dda7
though said registers are not even documented as 64-bit registers
- as opposed to the initial TxDescStartAddress ones - but as single
bytes which must be combined into 32 bits at the MMIO read/write
level before being merged into a 64 bit logical entity.

Credits go to Ben Hutchings <ben@decadent.org.uk> for the MAR
registers (aka "multicast is broken for ages on ARM) and to
Timo Teräs <timo.teras@iki.fi> for the MAC registers.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
---
drivers/net/r8169.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 9d3ebf3..966407c 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -2821,8 +2821,8 @@ static void rtl_rar_set(struct rtl8169_private *tp, u8 *addr)
spin_lock_irq(&tp->lock);

RTL_W8(Cfg9346, Cfg9346_Unlock);
- RTL_W32(MAC0, low);
RTL_W32(MAC4, high);
+ RTL_W32(MAC0, low);
RTL_W8(Cfg9346, Cfg9346_Lock);

spin_unlock_irq(&tp->lock);
@@ -4754,8 +4754,8 @@ static void rtl_set_rx_mode(struct net_device *dev)
mc_filter[1] = swab32(data);
}

- RTL_W32(MAR0 + 0, mc_filter[0]);
RTL_W32(MAR0 + 4, mc_filter[1]);
+ RTL_W32(MAR0 + 0, mc_filter[0]);

RTL_W32(RxConfig, tmp);

--
1.6.6.1

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
 
Old 04-20-2010, 10:14 AM
Florent Rougon
 
Default Bug#573007: NIC r8169 doesn t start at restart on kernel linux-image-2.6.32-trunk-686 (workaround)

Hi,

I applied this patch
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573007#54) on March
29[1], but unfortunately, the bug is still there for me. More precisely,
my script which detects and works around the problem triggered at the
following times since then:

Thu, 01 Apr 2010 21:11:18 +0200 Attempt to reinitialize Ethernet interfaces
Thu, 08 Apr 2010 10:21:39 +0200 Attempt to reinitialize Ethernet interfaces
Wed, 14 Apr 2010 10:42:20 +0200 Attempt to reinitialize Ethernet interfaces
Thu, 15 Apr 2010 10:27:03 +0200 Attempt to reinitialize Ethernet interfaces

(sorry, I was too busy to report before)

I just modified it so that it also logs the HW address of the Ethernet
interface that was detected as failed, and will report next time I have
a failure, to make sure we are really talking about the same bug (I also
noticed #516187...).

Thanks.


[1] As I wrote to Ben Hutchings in private, I applied the patch on the
source tree obtained from linux-source-2.6.32_2.6.32-10_all.deb
and compiled with the standard kernel configuration options from
linux-image-2.6.32-4-amd64_2.6.32-10_amd64.deb (/boot/config-...)

I also investigated the following boot messages:

[ 1.449790] r8169 0000:02:00.0: firmware: requesting rtl8168d-2.fw
[ 1.529423] eth0: unable to apply firmware patch
[ 2.338209] r8169 0000:03:00.0: firmware: requesting rtl8168d-2.fw
[ 2.339586] eth1: unable to apply firmware patch

but found no place to download the firmware file from, despite
several people complaining about that and not finding the
aforementioned file either. Apparently, the firmware file is not
needed, or only for some model(s) if used in this or that way, but
the message is always printed, no matter what.

--
Florent



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 877ho2ph1p.fsf@zita.maison">http://lists.debian.org/877ho2ph1p.fsf@zita.maison
 

Thread Tools




All times are GMT. The time now is 04:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org