Bug#618300: linux-image-2.6.32-5-amd64: RTL8169 driver refuses to load firmware though firmware files exist.
Package: linux-2.6
Version: 2.6.32-30
Severity: normal
I have two presumably identical systems based on ASUS AT5NM10-I (Atom D510)
motherboards.* Both were running lenny and Xen until a month ago, and then
I upgraded both to squeeze without issue.
One of the systems suffered a disk failure last week, so I had to do a
full reinstall of that system.* Since the ASUS board uses a Realtek 8169,
I did an hd-media install using the squeeze CD ISO to bypass the issue
with the 8169 not working in the network installer, and then I copied
the firmware-realtek package in via flash and installed it via dpkg.
This yielded a system that booted, and the network seemed to function okay,
but I soon discovered that my ssh sessions were hanging
every few minutes.
I thought there might be a Xen issue causing this, so I booted into the
non-Xen kernel and the hangs still appeared.
I started comparing my working system with the hanging system and found no
substantial differences in /boot, /etc, or /lib.* I verified that the
firmware files were present in /lib/firmware/rtl_nic in both the root
fs and in the initrd.* I updated the initrds and grub for my system, but
still nothing worked.
Next, I compared the dmesg output at boot from both systems.* In the
working system I see:
I downloaded the kernel source and headers and added some debug prints to
the r8169 driver to trace its initialization.* The driver reported the
MAC version as 0x1a, which means rtl8168d_2_hw_phy_config()
gets called.
I changed the firmware load test to read:
I removed the stock module and insmodded this one and I got:
*** mdio_read = 2642
plus the "unable to apply firmware patch message".
It appears that the only difference between the working system and the
one that sporadically hangs is the inability to load the firmware on the
latter.* I'm at a loss to explain why this is happening.
-- Package-specific info:
** Version:
Linux version 2.6.32-5-amd64 (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian
4.3.5-4) ) #1 SMP Wed Jan 12 03:40:32 UTC 2011
** Kernel log:
[*** 1.251840] uhci_hcd
0000:00:1d.2: irq 18, io base 0x0000d880
[*** 1.251947] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[*** 1.251955] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[*** 1.251963] usb usb4: Product: UHCI Host Controller
[*** 1.251970] usb usb4: Manufacturer: Linux 2.6.32-5-amd64 uhci_hcd
[*** 1.251977] usb usb4: SerialNumber: 0000:00:1d.2
[*** 1.252230] usb usb4: configuration #1 chosen from 1 choice
[*** 1.252327] hub 4-0:1.0: USB hub found
[*** 1.252349] hub 4-0:1.0: 2 ports detected
[*** 1.252485] uhci_hcd 0000:00:1d.3: PCI INT D -> GSI 16 (level, low) -> IRQ 16
[*** 1.252504] uhci_hcd 0000:00:1d.3: setting latency timer to 64
[*** 1.252513] uhci_hcd 0000:00:1d.3: UHCI Host Controller
[***
1.252538] uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
[*** 1.252602] uhci_hcd 0000:00:1d.3: irq 16, io base 0x0000dc00
[*** 1.252706] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
[*** 1.252715] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[*** 1.252723] usb usb5: Product: UHCI Host Controller
[*** 1.252729] usb usb5: Manufacturer: Linux 2.6.32-5-amd64 uhci_hcd
[*** 1.252736] usb usb5: SerialNumber: 0000:00:1d.3
[*** 1.252955] usb usb5: configuration #1 chosen from 1 choice
[*** 1.253052] hub 5-0:1.0: USB hub found
[*** 1.253076] hub 5-0:1.0: 2 ports detected
[*** 1.278205] libata version 3.00 loaded.
[*** 1.286728] ata_piix 0000:00:1f.2: version 2.13
[*** 1.286761] ata_piix
0000:00:1f.2: enabling device (0005 -> 0007)
[*** 1.286777] ata_piix 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[*** 1.286790] ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
[*** 1.286875] ata_piix 0000:00:1f.2: setting latency timer to 64
[*** 1.287114] scsi0 : ata_piix
[*** 1.287432] scsi1 : ata_piix
[*** 1.290621] ata1: SATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xff90 irq 14
[*** 1.290630] ata2: SATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xff98 irq 15
[*** 1.455573] ata1.00: ATA-8: WDC WD5000BUDT-63G8FY0, 01.01A01, max UDMA/133
[*** 1.455582] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[*** 1.468417] ata1.00: configured for UDMA/133
[*** 1.468654] scsi 0:0:0:0: Direct-Access****
ATA***** WDC WD5000BUDT-6 01.0 PQ: 0 ANSI: 5
[*** 1.485733] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[*** 1.485741] sd 0:0:0:0: [sda] 4096-byte physical blocks
[*** 1.485974] sd 0:0:0:0: [sda] Write Protect is off
[*** 1.485983] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[*** 1.486082] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO o
r FUA
[*** 1.486556]* sda: sda1 sda2 < sda5 >
[*** 1.528297] sd 0:0:0:0: [sda] Attached SCSI disk
[*** 1.745058] usb 3-2: new low speed USB device using uhci_hcd and address 2
[*** 1.828652] device-mapper: uevent: version 1.0.3
[*** 1.829639] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[***
1.922174] usb 3-2: New USB device found, idVendor=046d, idProduct=c517
[*** 1.922183] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[*** 1.922189] usb 3-2: Product: USB Receiver
[*** 1.922193] usb 3-2: Manufacturer: Logitech
[*** 1.922374] usb 3-2: configuration #1 chosen from 1 choice
[*** 1.947266] usbcore: registered new interface driver hiddev
[*** 1.947556] usbcore: registered new interface driver usbhid
[*** 1.947566] usbhid: v2.6:USB HID core driver
[*** 1.967761] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0/
input/input1
[*** 1.967933] logitech 0003:046D:C517.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech USB
Receiver] on usb-0000:00:1d.1-2/input0
[*** 1.999188] logitech 0003:046D:C517.0002: fixing
up Logitech keyboard report descriptor
[*** 2.000678] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.1/
input/input2
[*** 2.001091] logitech 0003:046D:C517.0002: input,hiddev0,hidraw1: USB HID v1.10 Mouse [Logitech
*USB Receiver] on usb-0000:00:1d.1-2/input1
[*** 2.124324] PM: Starting manual resume from disk
[*** 2.124332] PM: Resume from partition 254:1
[*** 2.124335] PM: Checking hibernation image.
[*** 2.124651] PM: Error -22 checking image file
[*** 2.124656] PM: Resume from disk failed.
[*** 2.185069] kjournald starting.* Commit interval 5 seconds
[*** 2.185082] EXT3-fs: mounted filesystem with ordered data mode.
[*** 3.026519] udev[344]: starting version 164
[*** 3.224398] processor LNXCPU:00: registered
as cooling_device0
[*** 3.225113] processor LNXCPU:01: registered as cooling_device1
[*** 3.225890] processor LNXCPU:02: registered as cooling_device2
[*** 3.226599] processor LNXCPU:03: registered as cooling_device3
[*** 3.263141] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input3
[*** 3.263161] ACPI: Power Button [PWRB]
[*** 3.263392] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input4
[*** 3.263409] ACPI: Power Button [PWRF]
[*** 3.284375] input: PC Speaker as /devices/platform/pcspkr/input/input5
[*** 3.531434] [drm] Initialized drm 1.1.0 20060810
[*** 3.553430] parport_pc 00:0c: reported by Plug and Play ACPI
[*** 3.553488] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[*** 3.726502]
pci 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[*** 3.726511] pci 0000:00:02.0: setting latency timer to 64
[*** 3.750191] mtrr: type mismatch for d0000000,10000000 old: write-back new: write-combining
[*** 3.750199] [drm] MTRR allocation failed.* Graphics performance may suffer.
[*** 3.750369]** alloc irq_desc for 27 on node -1
[*** 3.750376]** alloc kstat_irqs on node -1
[*** 3.750394] pci 0000:00:02.0: irq 27 for MSI/MSI-X
[*** 3.750542] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[*** 3.980582] Error: Driver 'pcspkr' is already registered, aborting...
[*** 4.157130] i801_smbus 0000:00:1f.3: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[*** 4.167558] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 16 (level,
low) -> IRQ 16
[*** 4.167654] HDA Intel 0000:00:1b.0: setting latency timer to 64
[*** 4.258308] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input6
[*** 4.273115] input: HDA Intel Mic at Ext Front Jack as /devices/pci0000:00/0000:00:1b.0/sound/c
ard0/input7
[*** 4.273340] input: HDA Intel Speaker at Ext Rear Jack as /devices/pci0000:00/0000:00:1b.0/soun
d/card0/input8
[*** 4.273533] input: HDA Intel HP Out at Ext Front Jack as /devices/pci0000:00/0000:00:1b.0/soun
d/card0/input9
[*** 4.831878] EXT3 FS on dm-0, internal journal
[*** 4.943025] loop: module loaded
[*** 5.858797] Adding 7917560k swap on /dev/mapper/atomic-swap_1.* Priority:-1 extents:1 across:7
917560k
[*** 8.856593] r8169: eth0: link up
[*** 8.856604] r8169: eth0: link
up
** Model information
sys_vendor: System manufacturer
product_name: System Product Name
product_version: System Version
chassis_vendor: Chassis Manufacture
chassis_version: Chassis Version
bios_vendor: American Megatrends Inc.
bios_version: 0405**
board_vendor: ASUSTeK Computer INC.
board_name: AT5NM10-I
board_version: Rev x.0x
** Loaded modules:
Module***************** Size* Used by
ext2****************** 52969* 1
loop****************** 11799* 0
snd_hda_codec_idt***** 42481* 1
snd_hda_intel********* 20019* 0
** USB devices:
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages linux-image-2.6.32-5-amd64 depends on:
ii* debconf [debconf-2.0]******** 1.5.36.1** Debian configuration management sy
ii* initramfs-tools [linux-initra 0.98.8**** tools for generating an initramfs
ii* linux-base******************* 2.6.32-30* Linux image base package
ii* module-init-tools************ 3.12-1**** tools for managing Linux kernel mo
Versions of packages linux-image-2.6.32-5-amd64 recommends:
ii*
firmware-linux-free********** 2.6.32-30* Binary firmware for various driver
Versions of packages linux-image-2.6.32-5-amd64 suggests:
pn* grub | lilo****************** <none>**** (no description available)
pn* linux-doc-2.6.32************* <none>**** (no description available)
Versions of packages linux-image-2.6.32-5-amd64 is related to:
pn* firmware-bnx2**************** <none>**** (no description available)
pn* firmware-bnx2x***************
<none>**** (no description available)
pn* firmware-ipw2x00************* <none>**** (no description available)
pn* firmware-ivtv**************** <none>**** (no description available)
pn* firmware-iwlwifi************* <none>**** (no description available)
pn* firmware-linux*************** <none>**** (no description available)
pn* firmware-linux-nonfree******* <none>**** (no description available)
pn*
firmware-qlogic************** <none>**** (no description available)
pn* firmware-ralink************** <none>**** (no description available)
ii* xen-hypervisor-4.0-amd64 [xen 4.0.1-2*** The Xen Hypervisor on AMD64