From owner-freebsd-stable@FreeBSD.ORG Tue Dec 4 00:47:03 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EBF616A420 for ; Tue, 4 Dec 2007 00:47:03 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id 2A83113C46B for ; Tue, 4 Dec 2007 00:47:03 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so6002775waf for ; Mon, 03 Dec 2007 16:47:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=H1dBdzjzbHjTUBM1mcjei/ypGYodlxqIW81rjDf9TmQ=; b=JM0e9gOmN7sTI9kCa2r33v5IbAhmrDN6S05Grm1o19uKuwRSFpYykUiO9K7wKRqPr3olFxahUZOyZoIR5Dj5vcDLFDNrRSyOjDh1+4WGu9hXeAwRUrK3QrpKbJG23H0AZykBC8fZtwj3j4yanJXSobnl7cw9v+aNdrL1wADSVb0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=V82cdjAiLpzNevebz/b24abBRooDgGaNd64HUoGUBhO9k7yvTF39ln/prc6wmtwUhFZsAssa1t4VMOd7RC+o4+BzLyxbmsQhoB4i96cKiLzEaafhQEW+sn1OSfUAUGZZzvsT6fJ83h9uuqqPqYROwm6Gp+q8uCwQtHa3O6i8tFo= Received: by 10.115.89.1 with SMTP id r1mr46874wal.1196729222685; Mon, 03 Dec 2007 16:47:02 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id m10sm470300waf.2007.12.03.16.46.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Dec 2007 16:47:01 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id lB40iswK035689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 Dec 2007 09:44:54 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id lB40irZL035688; Tue, 4 Dec 2007 09:44:53 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 4 Dec 2007 09:44:53 +0900 From: Pyun YongHyeon To: Abdullah Ibn Hamad Al-Marri Message-ID: <20071204004453.GB35245@cdnetworks.co.kr> References: <307048.65540.qm@web33701.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: <307048.65540.qm@web33701.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2.1i Cc: FreeBSD STABLE Subject: Re: Intel DG31PR and RTL8168/8111 issue X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2007 00:47:03 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 03, 2007 at 12:52:33PM -0800, Abdullah Ibn Hamad Al-Marri wrote: > Hello Pyun, > > This is a new server with latest RELENG_7 src and latest BIOS as well. > > Copyright (c) 1992-2007 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, > 1994 > The Regents of the University of California. All rights > reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.0-BETA4 #0: Mon Dec 3 23:37:27 UTC 2007 > lomag@mx1.wearab.net:/usr/obj/usr/src/sys/MX1 > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz (2666.62-MHz > K8-class CPU) > Origin = "GenuineIntel" Id = 0x6fb Stepping = 11 > Features=0xbfebfbff > Features2=0xe3fd > AMD Features=0x20100800 > AMD Features2=0x1 > Cores per package: 2 > usable memory = 4275109888 (4077 MB) > avail memory = 4106035200 (3915 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0 irqs 0-23 on motherboard > acpi0: on motherboard > acpi0: [ITHREAD] > acpi0: Power Button (fixed) > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on > acpi0 > acpi_hpet0: iomem > 0xfed00000-0xfed003ff on acpi0 > Timecounter "HPET" frequency 14318180 Hz quality 900 > cpu0: on acpi0 > est0: on cpu0 > est: CPU supports Enhanced Speedstep, but is not recognized. > est: cpu_vendor GenuineIntel, msr 82a082a0600082a > device_attach: est0 attach returned 6 > p4tcc0: on cpu0 > cpu1: on acpi0 > est1: on cpu1 > est: CPU supports Enhanced Speedstep, but is not recognized. > est: cpu_vendor GenuineIntel, msr 82a082a0600082a > device_attach: est1 attach returned 6 > p4tcc1: on cpu1 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: irq 16 at device 1.0 on pci0 > pci1: on pcib1 > vgapci0: port 0xc070-0xc077 mem > 0xd0300000-0xd037ffff,0xc0000000-0xcfffffff,0xd0200000-0xd02fffff > irq 16 at device 2.0 on pci0 > pcib2: irq 16 at device 28.0 on pci0 > pci2: on pcib2 > pcib3: irq 17 at device 28.1 on pci0 > pci3: on pcib3 > pci3: at device 0.0 (no driver attached) > pcib4: at device 30.0 on pci0 > pci4: on pcib4 > sis0: port 0xa000-0xa0ff mem > 0xd0010000-0xd0010fff irq 21 at device 6.0 on pci4 > sis0: Silicon Revision: DP83815D > miibus0: on sis0 > ukphy0: PHY 0 on miibus0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > sis0: Ethernet address: 00:30:ab:19:8b:c3 > sis0: [ITHREAD] > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port > 0xc060-0xc067,0xc050-0xc053,0xc040-0xc047,0xc030-0xc033,0xc020-0xc02f > irq 17 at device 31.2 on pci0 > atapci0: [ITHREAD] > ata2: on atapci0 > ata2: [ITHREAD] > ata3: on atapci0 > ata3: [ITHREAD] > pci0: at device 31.3 (no driver attached) > acpi_button0: on acpi0 > acpi_button1: on acpi0 > atkbdc0: port 0x60,0x64 irq 1 on > acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff > on isa0 > Timecounters tick every 1.000 msec > ad4: 238475MB at ata2-master SATA150 > ad6: 715404MB at ata3-master > SATA150 > SMP: AP CPU #1 Launched! > Trying to mount root from ufs:/dev/ad4s1a > sis0: Applying short cable fix (reg=f5) > > > none1@pci0:3:0:0: class=0x020000 card=0xd6088086 > chip=0x816810ec rev=0x01 hdr=0x00 > vendor = 'Realtek Semiconductor' > device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' > class = network > subclass = ethernet > Try attached patch. I think I posted similiar patches several times to get feedback but I have never heard of success/failure. -- Regards, Pyun YongHyeon --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="re.spin3.patch" Index: dev/re/if_re.c =================================================================== RCS file: /home/ncvs/src/sys/dev/re/if_re.c,v retrieving revision 1.98 diff -u -r1.98 if_re.c --- dev/re/if_re.c 3 Dec 2007 01:28:08 -0000 1.98 +++ dev/re/if_re.c 4 Dec 2007 00:36:06 -0000 @@ -182,6 +182,8 @@ "RealTek 8168/8111B PCIe Gigabit Ethernet" }, { RT_VENDORID, RT_DEVICEID_8168, RL_HWREV_8168_SPIN2, "RealTek 8168/8111B PCIe Gigabit Ethernet" }, + { RT_VENDORID, RT_DEVICEID_8168, RL_HWREV_8168_SPIN3, + "RealTek 8168/8111B PCIe Gigabit Ethernet" }, { RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8169, "RealTek 8169 Gigabit Ethernet" }, { RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8169S, @@ -223,6 +225,7 @@ { RL_HWREV_8100E, RL_8169, "8100E"}, { RL_HWREV_8101E, RL_8169, "8101E"}, { RL_HWREV_8168_SPIN2, RL_8169, "8168"}, + { RL_HWREV_8168_SPIN3, RL_8169, "8168"}, { 0, 0, NULL } }; @@ -683,13 +686,19 @@ hwrev = CSR_READ_4(sc, RL_TXCFG) & RL_TXCFG_HWREV; - if (hwrev == RL_HWREV_8100E || hwrev == RL_HWREV_8101E || - hwrev == RL_HWREV_8168_SPIN1 || hwrev == RL_HWREV_8168_SPIN2) { + switch (hwrev) { + case RL_HWREV_8100E: + case RL_HWREV_8101E: + case RL_HWREV_8168_SPIN1: + case RL_HWREV_8168_SPIN2: + case RL_HWREV_8168_SPIN3: CSR_WRITE_4(sc, RL_MAR0, bswap32(hashes[1])); CSR_WRITE_4(sc, RL_MAR4, bswap32(hashes[0])); - } else { + break; + default: CSR_WRITE_4(sc, RL_MAR0, hashes[0]); CSR_WRITE_4(sc, RL_MAR4, hashes[1]); + break; } } @@ -940,6 +949,9 @@ sc->rl_btag = rman_get_bustag(sc->rl_res); sc->rl_bhandle = rman_get_bushandle(sc->rl_res); hwrev = CSR_READ_4(sc, RL_TXCFG) & RL_TXCFG_HWREV; +#if 1 + printf("hwrev = %x\n", hwrev); +#endif bus_release_resource(dev, RL_RES, RL_RID, sc->rl_res); if (t->rl_basetype == hwrev) { @@ -1320,6 +1332,7 @@ case RL_HWREV_8169_8110SB: case RL_HWREV_8169_8110SC: case RL_HWREV_8168_SPIN2: + case RL_HWREV_8168_SPIN3: re_gmii_writereg(dev, 1, 0x1f, 0); re_gmii_writereg(dev, 1, 0x0e, 0); break; Index: pci/if_rlreg.h =================================================================== RCS file: /home/ncvs/src/sys/pci/if_rlreg.h,v retrieving revision 1.68 diff -u -r1.68 if_rlreg.h --- pci/if_rlreg.h 26 Nov 2007 18:25:07 -0000 1.68 +++ pci/if_rlreg.h 4 Dec 2007 00:36:06 -0000 @@ -156,6 +156,7 @@ #define RL_HWREV_8100E 0x30800000 #define RL_HWREV_8101E 0x34000000 #define RL_HWREV_8168_SPIN2 0x38000000 +#define RL_HWREV_8168_SPIN3 0x38400000 #define RL_HWREV_8139 0x60000000 #define RL_HWREV_8139A 0x70000000 #define RL_HWREV_8139AG 0x70800000 --WIyZ46R2i8wDzkSu--