On Mon, Feb 23, 2009 at 12:54:12PM +0100, Oliver Brandmueller wrote: > Hi, > > On Fri, Feb 13, 2009 at 08:39:55PM +0900, Pyun YongHyeon wrote: > > Ok, try attached patch. > > > Index: sys/dev/re/if_re.c > > =================================================================== > > --- sys/dev/re/if_re.c (revision 187352) > > +++ sys/dev/re/if_re.c (working copy) > > @@ -158,6 +158,8 @@ > > /* Tunables. */ > [...] > > This seems to have fixed a regression I found after the latest re > changes. While the changes lead to a situation, where the re interface > (as opposed to before) seems to always attach, I had the problem that > after 1-2 days it failed (sorry, was just about to investigate when I > tried your patch and thus didn't write down the error message > associated). > > With your patch my re seems to be running fine for the last days now. >
That's odd. The patch just revert register mapping method for RTL8169SC family as memory mapped register access seems to have problems on RTL8169SC controllers. From the output below I think your controller is RTL8168C PCIe controller so the patch has no effect on your controller. Would you tell me more details on your issue? CURRENT has more robust code for PCIe based controllers so how about giving it a try on stable/7? Just copying if_re.c/if_rl.c/if_rlreg.h from HEAD to stable/7 should work. > r...@pci0:4:0:0: class=0x020000 card=0x392c1462 chip=0x816810ec rev=0x02 > hdr=0x00 > vendor = 'Realtek Semiconductor' > device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' > class = network > subclass = ethernet > > re0: <RealTek 8168/8168B/8168C/8168CP/8168D/8111B/8111C/8111CP PCIe Gigabit > Ethernet> port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff,0xf8ff0000-0xf8ffffff > irq 18 at device 0.0 on pci4 > re0: Chip rev. 0x3c000000 > re0: MAC rev. 0x00400000 > miibus0: <MII bus> on re0 > rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-FDX, auto > re0: Ethernet address: 00:21:85:1e:8b:c9 > re0: [FILTER] > _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"