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-21-2011, 06:00 PM
lee
 
Default Bug#619173: linux-source-2.6.32: kernel panic with r8169 module

Package: linux-source-2.6.32
Version: 2.6.32-31
Severity: normal


My kernel compiled from linux-source-2.6.32-30 worked fine with the
r8169 module (with and without the firmware-realtek package
installed). Now I compiled a new kernel from linux-source-2.6.32-31,
using make oldconfig, and found that the new kernel make from the
current sources panics during booting with some stacktrace messages
indicating a problem with the r8169 module.

The default Debain kernel works fine with this module installed,
though. It does not use the firmware, giving you a message that the
firmware couldnīt be applied. 2.6.32-30 did use the firmware.

Some research[1] turned up that I eventually need a module called
r8168 for my onboard network card. I followed the instructions on [1],
and my kernel made from linux-source-2.6.32-31 works fine with the
r8168 module.

So something must have been changed between 2.6.32-30 and 2.6.32-31
that affects the r8169 module.

Perhaps that module shouldnīt have been used on my system to begin
with? Lspci says:


02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)



[1]: http://blog.verfriemelt.com/index.php/2010/06/linux-realtek-r8168r8169-treiber/



-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-31 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-source-2.6.32 depends on:
ii binutils 2.20.1-16 The GNU assembler, linker and bina
ii bzip2 1.0.5-6 high-quality block-sorting file co

Versions of packages linux-source-2.6.32 recommends:
ii gcc 4:4.5.2-2 The GNU C compiler
ii libc6-dev [libc-dev] 2.11.2-11 Embedded GNU C Library: Developmen
ii make 3.81-8 An utility for Directing compilati

Versions of packages linux-source-2.6.32 suggests:
ii kernel-package 12.036+nmu1 A utility for building Linux kerne
ii libncurses5-dev [ncurses- 5.7+20100313-5 developer's libraries and docs for
pn libqt3-mt-dev <none> (no description available)

-- no debconf information



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110321190002.3765.87861.reportbug@yun.yagibdah.d e">http://lists.debian.org/20110321190002.3765.87861.reportbug@yun.yagibdah.d e
 
Old 03-21-2011, 07:24 PM
Ben Hutchings
 
Default Bug#619173: linux-source-2.6.32: kernel panic with r8169 module

On Mon, Mar 21, 2011 at 08:00:02PM +0100, lee wrote:
> Package: linux-source-2.6.32
> Version: 2.6.32-31
> Severity: normal
>
>
> My kernel compiled from linux-source-2.6.32-30 worked fine with the
> r8169 module (with and without the firmware-realtek package
> installed). Now I compiled a new kernel from linux-source-2.6.32-31,
> using make oldconfig, and found that the new kernel make from the
> current sources panics during booting with some stacktrace messages
> indicating a problem with the r8169 module.
>
> The default Debain kernel works fine with this module installed,
> though. It does not use the firmware, giving you a message that the
> firmware couldnīt be applied. 2.6.32-30 did use the firmware.

This is strange. I will investigate.

> Some research[1] turned up that I eventually need a module called
> r8168 for my onboard network card.
[...]

This is half right. Realtek provides two drivers, r8169 and r8168,
for different sets of network controllers. However, in mainline
Linux, the r8169 driver is supposed to support all of them.

Ben.

--
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
- Albert Camus



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110321202453.GH2356@decadent.org.uk">http://lists.debian.org/20110321202453.GH2356@decadent.org.uk
 
Old 03-21-2011, 08:50 PM
lee
 
Default Bug#619173: linux-source-2.6.32: kernel panic with r8169 module

On Mon, Mar 21, 2011 at 08:24:53PM +0000, Ben Hutchings wrote:
> On Mon, Mar 21, 2011 at 08:00:02PM +0100, lee wrote:
> > Package: linux-source-2.6.32
> > Version: 2.6.32-31
> > Severity: normal
> >
> >
> > My kernel compiled from linux-source-2.6.32-30 worked fine with the
> > r8169 module (with and without the firmware-realtek package
> > installed). Now I compiled a new kernel from linux-source-2.6.32-31,
> > using make oldconfig, and found that the new kernel make from the
> > current sources panics during booting with some stacktrace messages
> > indicating a problem with the r8169 module.
> >
> > The default Debain kernel works fine with this module installed,
> > though. It does not use the firmware, giving you a message that the
> > firmware couldnīt be applied. 2.6.32-30 did use the firmware.
>
> This is strange. I will investigate.

Thanks! I just verified to make sure that I wasnīt seeing these
messages only while I had the firmware-realtek package purged. The
firmware package is installed now, and Iīm getting ...


[...]
Mar 21 22:06:49 yun kernel: [ 0.617124] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
Mar 21 22:06:49 yun kernel: [ 0.617141] r8169 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
Mar 21 22:06:49 yun kernel: [ 0.617186] r8169 0000:02:00.0: setting latency timer to 64
[...]
Mar 21 22:06:49 yun kernel: [ 0.617327] r8169 0000:02:00.0: irq 29 for MSI/MSI-X
Mar 21 22:06:49 yun kernel: [ 0.617677] eth0: RTL8168d/8111d at 0xffffc90000c7e000, 40:61:86:2e:28:77, XID 081000c0 IRQ 29
Mar 21 22:06:49 yun kernel: [ 0.617947] libata version 3.00 loaded.
Mar 21 22:06:49 yun kernel: [ 0.624244] eth0: unable to apply firmware patch
[...]
Mar 21 22:06:49 yun kernel: [ 0.629454] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
Mar 21 22:06:49 yun kernel: [ 0.629464] r8169 0000:03:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
Mar 21 22:06:49 yun kernel: [ 0.629490] r8169 0000:03:00.0: setting latency timer to 64
Mar 21 22:06:49 yun kernel: [ 0.629519] alloc irq_desc for 30 on node 0
Mar 21 22:06:49 yun kernel: [ 0.629521] alloc kstat_irqs on node 0
Mar 21 22:06:49 yun kernel: [ 0.629529] r8169 0000:03:00.0: irq 30 for MSI/MSI-X
Mar 21 22:06:49 yun kernel: [ 0.629880] eth1: RTL8168d/8111d at 0xffffc90000c52000, 40:61:86:2e:28:76, XID 081000c0 IRQ 30
Mar 21 22:06:49 yun kernel: [ 0.636456] eth1: unable to apply firmware patch
[...]


... in the syslog when booting the default Debian kernel. So yes, the
firmware definitely isnīt loaded. I canīt tell if loading the firmware
makes a difference since the card seems to work as well without the
firmware.

>From booting with the r8168 module:


[...]
Mar 21 22:17:25 yun kernel: [ 2.842802] r8168 Gigabit Ethernet driver 8.022.00-NAPI loaded
Mar 21 22:17:25 yun kernel: [ 2.842830] r8168 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
Mar 21 22:17:25 yun kernel: [ 2.842848] r8168 0000:02:00.0: setting latency timer to 64
Mar 21 22:17:25 yun kernel: [ 2.842908] r8168 0000:02:00.0: irq 29 for MSI/MSI-X
Mar 21 22:17:25 yun kernel: [ 2.843132] eth%d: RTL8168B/8111B at 0xffffc9000004c000, 40:61:86:2e:28:77, IRQ 29
[...]
Mar 21 22:17:25 yun kernel: [ 2.915526] r8168: This product is covered by one or more of the following patents: US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625.
Mar 21 22:17:25 yun kernel: [ 2.915528] eth0: Identified chip type is 'RTL8168D/8111D'.
Mar 21 22:17:25 yun kernel: [ 2.915530] r8168 Copyright (C) 2011 Realtek NIC software team <nicfae@realtek.com>
Mar 21 22:17:25 yun kernel: [ 2.915531] This program comes with ABSOLUTELY NO WARRANTY; for details, please see <http://www.gnu.org/licenses/>.
Mar 21 22:17:25 yun kernel: [ 2.915532] This is free software, and you are welcome to redistribute it under certain conditions; see <http://www.gnu.org/licenses/>.
Mar 21 22:17:25 yun kernel: [ 2.915538] r8168 Gigabit Ethernet driver 8.022.00-NAPI loaded
Mar 21 22:17:25 yun kernel: [ 2.915551] r8168 0000:03:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
Mar 21 22:17:25 yun kernel: [ 2.915563] r8168 0000:03:00.0: setting latency timer to 64
Mar 21 22:17:25 yun kernel: [ 2.915596] r8168 0000:03:00.0: irq 30 for MSI/MSI-X
Mar 21 22:17:25 yun kernel: [ 2.915817] eth%d: RTL8168B/8111B at 0xffffc90000048000, 40:61:86:2e:28:76, IRQ 30
[...]
Mar 21 22:17:25 yun kernel: [ 2.988164] r8168: This product is covered by one or more of the following patents: US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625.
Mar 21 22:17:25 yun kernel: [ 2.988166] eth1: Identified chip type is 'RTL8168D/8111D'.
Mar 21 22:17:25 yun kernel: [ 2.988168] r8168 Copyright (C) 2011 Realtek NIC software team <nicfae@realtek.com>
Mar 21 22:17:25 yun kernel: [ 2.988169] This program comes with ABSOLUTELY NO WARRANTY; for details, please see <http://www.gnu.org/licenses/>.
Mar 21 22:17:25 yun kernel: [ 2.988170] This is free software, and you are welcome to redistribute it under certain conditions; see <http://www.gnu.org/licenses/>.
[...]
Mar 21 22:17:25 yun kernel: [ 10.092605] r8168: eth1: link down
Mar 21 22:17:25 yun kernel: [ 10.093856] ADDRCONF(NETDEV_UP): eth1: link is not ready
Mar 21 22:17:25 yun kernel: [ 10.666982] ip_tables: (C) 2000-2006 Netfilter Core Team
Mar 21 22:17:25 yun kernel: [ 11.426285] Netfilter messages via NETLINK v0.30.
Mar 21 22:17:25 yun kernel: [ 11.445339] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
Mar 21 22:17:25 yun kernel: [ 11.445456] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
Mar 21 22:17:25 yun kernel: [ 11.445458] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
Mar 21 22:17:25 yun kernel: [ 11.445459] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
Mar 21 22:17:25 yun kernel: [ 11.622609] ClusterIP Version 0.8 loaded successfully
Mar 21 22:17:25 yun kernel: [ 11.880966] xt_time: kernel timezone is -0000
Mar 21 22:17:25 yun kernel: [ 12.143026] Bridge firewalling registered
Mar 21 22:17:25 yun kernel: [ 12.179666] r8168: eth1: link up
Mar 21 22:17:25 yun kernel: [ 12.180855] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Mar 21 22:17:25 yun kernel: [ 12.452970] u32 classifier
Mar 21 22:17:25 yun kernel: [ 12.452971] Performance counters on
Mar 21 22:17:25 yun kernel: [ 12.452972] input device check on
Mar 21 22:17:25 yun kernel: [ 12.452973] Actions configured
Mar 21 22:17:25 yun kernel: [ 13.080015] r8168: eth1: link up
[...]


(eth0, the first connector on the board, is currently not in use)


> > Some research[1] turned up that I eventually need a module called
> > r8168 for my onboard network card.
> [...]
>
> This is half right. Realtek provides two drivers, r8169 and r8168,
> for different sets of network controllers. However, in mainline
> Linux, the r8169 driver is supposed to support all of them.

That leaves the question why r8169 suddenly stopped working with the
kernel I compiled myself. For that kernel, I have turned off a lot of
things that are turned on in the default Debian kernel which I donīt
need, so I could speculate it might either have to do with the order
in which things are being loaded during booting, or with something
thatīs missing in my kernel to be able to use the r8169 module which
wasnīt needed in 2.6.32-30 and isnīt needed with the r8168 module in
2.6.32-31.

If it might help, I could make a test by compiling a kernel from the
Debian sources out of the box, without changing the configuration, and
see if that kernel boots.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110321215026.GB3237@yun.yagibdah.de">http://lists.debian.org/20110321215026.GB3237@yun.yagibdah.de
 
Old 03-23-2011, 02:51 AM
Ben Hutchings
 
Default Bug#619173: linux-source-2.6.32: kernel panic with r8169 module

On Mon, 2011-03-21 at 22:50 +0100, lee wrote:
> On Mon, Mar 21, 2011 at 08:24:53PM +0000, Ben Hutchings wrote:
> > On Mon, Mar 21, 2011 at 08:00:02PM +0100, lee wrote:
> > > Package: linux-source-2.6.32
> > > Version: 2.6.32-31
> > > Severity: normal
> > >
> > >
> > > My kernel compiled from linux-source-2.6.32-30 worked fine with the
> > > r8169 module (with and without the firmware-realtek package
> > > installed). Now I compiled a new kernel from linux-source-2.6.32-31,
> > > using make oldconfig, and found that the new kernel make from the
> > > current sources panics during booting with some stacktrace messages
> > > indicating a problem with the r8169 module.
> > >
> > > The default Debain kernel works fine with this module installed,
> > > though. It does not use the firmware, giving you a message that the
> > > firmware couldnīt be applied. 2.6.32-30 did use the firmware.
> >
> > This is strange. I will investigate.
>
> Thanks! I just verified to make sure that I wasnīt seeing these
> messages only while I had the firmware-realtek package purged. The
> firmware package is installed now, and Iīm getting ...
[...]

I see what the problem is now. I made a stupid mistake when adjusting
the fix for #609538 for Linux 2.6.32. I'll fix this shortly.

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
 

Thread Tools




All times are GMT. The time now is 01:03 AM.

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