* Re: Possible bug in realtek 8169 ethernet driver [not found] <20070805155915.GM2761@avontuur.org> @ 2007-08-05 21:35 ` Francois Romieu 2007-08-06 13:37 ` Bram 0 siblings, 1 reply; 4+ messages in thread From: Francois Romieu @ 2007-08-05 21:35 UTC (permalink / raw) To: Bram; +Cc: linux-kernel, netdev Bram <bram@linux.kernel.as.avontuur.org> : [...] > The router attached to it indicates a 100mbit link. But that's about it. > I cannot get any data over it. I can manually configure it to have an IP > address and netmask, but it won't see anything on the local net. DHCP > doesn't work either. Nothing out of the ordinary is logged in dmesg or > anywhere else. An usb ethernet dongle on the system works just fine, > ruling out (absent anyway) firewall or similar trouble. The device works > well in windows XP. Please try the patch below on top of 2.6.23-rc2 ? > Relevant system specs: > -Gigabyte GA-G33m-DS2R motherboard, with the integrated realtec nic Ok, unknown beast. [...] > dmesg output: > > r8169 Gigabit Ethernet driver 2.2LK loaded > ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ 18 > PCI: Setting latency timer of device 0000:04:00.0 to 64 > eth0: RTL8168b/8111b at 0xf8854000, 00:1a:4d:44:a1:1f, IRQ 18 > ... > r8169: eth2: link up > r8169: eth2: link up Do not hesitate to send a whole dmesg. More context to not hurt. diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 8be51c4..fecedef 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c @@ -789,6 +789,12 @@ static int rtl8169_set_speed_xmii(struct net_device *dev, auto_nego |= ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM; + if (tp->mac_version == RTL_GIGA_MAC_VER_12) { + /* Vendor specific (0x1f) and reserved (0x0e) MII registers. */ + mdio_write(ioaddr, 0x1f, 0x0000); + mdio_write(ioaddr, 0x0e, 0x0000); + } + tp->phy_auto_nego_reg = auto_nego; tp->phy_1000_ctrl_reg = giga_ctrl; -- 1.4.4.2 -- Ueimor ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: Possible bug in realtek 8169 ethernet driver 2007-08-05 21:35 ` Possible bug in realtek 8169 ethernet driver Francois Romieu @ 2007-08-06 13:37 ` Bram 2007-08-06 21:06 ` Francois Romieu 0 siblings, 1 reply; 4+ messages in thread From: Bram @ 2007-08-06 13:37 UTC (permalink / raw) To: Francois Romieu; +Cc: linux-kernel, netdev [-- Attachment #1: Type: text/plain, Size: 427 bytes --] > Please try the patch below on top of 2.6.23-rc2 ? > Ok, I did that. The device now works! But, it still comes up as eth2 instead of eth0, even though it's first detected as eth0. There are no other network interfaces according to ifconfig -a. I've attached the entire dmesg, which ends with messages from me unloading and reloading the r8169 module again. If you need anything else, just let me know. Best regards, Bram [-- Attachment #2: dmesg.bz2 --] [-- Type: application/octet-stream, Size: 10045 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Possible bug in realtek 8169 ethernet driver 2007-08-06 13:37 ` Bram @ 2007-08-06 21:06 ` Francois Romieu 2007-08-07 12:45 ` Bram 0 siblings, 1 reply; 4+ messages in thread From: Francois Romieu @ 2007-08-06 21:06 UTC (permalink / raw) To: Bram; +Cc: linux-kernel, netdev Bram <bram@linux.kernel.as.avontuur.org> : [...] > The device now works! But, it still comes up as eth2 instead of eth0, > even though it's first detected as eth0. There are no other network Check the udev rules and/or your init scripts ? -- Ueimor ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Possible bug in realtek 8169 ethernet driver 2007-08-06 21:06 ` Francois Romieu @ 2007-08-07 12:45 ` Bram 0 siblings, 0 replies; 4+ messages in thread From: Bram @ 2007-08-07 12:45 UTC (permalink / raw) To: Francois Romieu; +Cc: linux-kernel, netdev Francois Romieu wrote: > Bram <bram@linux.kernel.as.avontuur.org> : > [...] > > The device now works! But, it still comes up as eth2 instead of eth0, > > even though it's first detected as eth0. There are no other network > > Check the udev rules and/or your init scripts ? > You're right, it's a udev script assigning new names to unknown cards, I wasn't aware of that. Thanks, Bram ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-07 12:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20070805155915.GM2761@avontuur.org>
2007-08-05 21:35 ` Possible bug in realtek 8169 ethernet driver Francois Romieu
2007-08-06 13:37 ` Bram
2007-08-06 21:06 ` Francois Romieu
2007-08-07 12:45 ` Bram
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox