Subject: RealTek 8168B/8111B PCIe and ACPI on 4.0BETA2 (june 2 snapshot)
To: None <port-i386@netbsd.org>
From: =?ISO-8859-1?Q?Lasse_Hiller=F8e_Petersen?= <lhp@toft-hp.dk>
List: port-i386
Date: 06/07/2007 02:54:41
Hi!

Tonight I found some time to try to install the latest beta on my second 
Core2Duo machine.

Machine #1 still runs 4.99.4 dated 200611240000Z. The GENERIC.MP kernel 
has been working fine, except for the onboard nic, causing me to borrow 
a card as an interim solution. This machine is working as my server and 
has given me no problems since I started using GENERIC.MP. When I used 
the MPACPI kernel it was not very nice. Weird segfaults and problems I 
have already described before.

Machine #2 is similar to #1 but runs Windows during the day. Both 
machines have the ASRock ConRoe 945G-DVI motherboard, which has onboard 
RealTek 8168B/8111B.

When I booted the INSTALL kernel from the boot.iso CD I made from the 
june 2 snapshot of netbsd-4, the re0 interface worked fine, I could 
mount my NFS server and install sets from there without any problems. 
After rebooting into the GENERIC kernel, however, the interface didn't 
work, with plenty of errors like:
Jun  5 22:30:13 zebra /netbsd: re0: reset never completed!
Jun  5 22:30:13 zebra /netbsd: re0: reset never completed!
Jun  5 22:30:13 zebra /netbsd: re0: PHY write reg 0 <- 8000 failed
Jun  5 22:30:13 zebra /netbsd: re0: PHY write reg 1f <- 1 failed
Jun  5 22:30:13 zebra /netbsd: re0: PHY write reg 9 <- 273a failed
Jun  5 22:30:13 zebra /netbsd: re0: PHY write reg e <- 7bfb failed
Jun  5 22:30:13 zebra /netbsd: re0: PHY write reg 1b <- 841e failed
Jun  5 22:30:13 zebra /netbsd: re0: PHY write reg 1f <- 2 failed
Jun  5 22:30:13 zebra /netbsd: re0: PHY write reg 1 <- 90d0 failed
Jun  5 22:30:13 zebra /netbsd: re0: PHY write reg 1f <- 0 failed
Jun  5 22:30:13 zebra /netbsd: re0: PHY write reg 4 <- 1e1 failed

...
Jun  5 22:30:21 zebra /netbsd: re0: watchdog timeout
Jun  5 22:30:21 zebra /netbsd: re0: reset never completed!
Jun  5 22:31:40 zebra /netbsd: re0: reset never completed!
Jun  5 22:31:44 zebra /netbsd: re0: watchdog timeout
Jun  5 22:31:44 zebra /netbsd: re0: reset never completed!

After installing GENERIC.NOACPI instead, the network interface works 
fine. Unfortunately, there's no MP kernel without ACPI anymore, it 
seems. (Guess I must make one myself then.)

Here is my dmesg up to and including the network interface:

NetBSD 4.0_BETA2 (GENERIC.NOACPI) #0: Sat Jun  2 12:48:45 PDT 2007
        
builds@wb40:/home/builds/ab/netbsd-4/i386/200706020002Z-obj/home/builds/ab/netbsd-4/src/sys/arch/i386/compile/GENERIC.NOACPI
total memory = 2039 MB
rbus: rbus_min_start set to 0x80000000
avail memory = 1994 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf0010
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Core 2 (Merom) (686-class), 1795.15 MHz, id 0x6f2
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 e39d<SSE3,MONITOR,DS-CPL,EST,TM2,xTPR>
cpu0: "Intel(R) Core(TM)2 CPU          4300  @ 1.80GHz"
cpu0: I-cache 32 KB 64B/line 8-way, D-cache 32 KB 64B/line 8-way
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: using thermal monitor 1
cpu0: Enhanced SpeedStep (1340 mV) 1800 MHz
cpu0: unknown Enhanced SpeedStep CPU.
cpu0: 64 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82945G/P Memory Controller Hub (rev. 0x02)
agp0 at pchb0: detected 7932k stolen memory
agp0: aperture at 0xd0000000, size 0x10000000
vga1 at pci0 dev 2 function 0: Intel 82945G/P Integrated Graphics Device 
(rev. 0x02)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
Intel product 0x2776 (miscellaneous display, revision 0x02) at pci0 dev 
2 function 1 not configured
azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
azalia0: interrupting at irq 11
azalia0: host: Intel 82801GB/GR High Definition Audio Controller (rev. 1)
azalia0: host: High Definition Audio rev. 1.0
ppb0 at pci0 dev 28 function 0: Intel 82801GB/GR PCI Express Port #1 
(rev. 0x01)
pci1 at ppb0 bus 2
pci1: memory space enabled, rd/line, wr/inv ok
ppb1 at pci0 dev 28 function 1: Intel 82801GB/GR PCI Express Port #2 
(rev. 0x01)
pci2 at ppb1 bus 1
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
re0 at pci2 dev 0 function 0pci_mem_find: void region
: RealTek 8168B/8111B PCIe Gigabit Ethernet (rev. 0x01)
re0: interrupting at irq 10
re0: Ethernet address 00:13:8f:e8:ce:f1
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8169S/8110S 1000BASE-T media interface, rev. 2
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
uhci0 at pci0 dev 29 function 0: Intel 82801GB/GR USB UHCI Controller 
(rev. 0x01)
uhci0: interrupting at irq 15
usb0 at uhci0: USB revision 1.0
uhub0 at usb0

Naturally, I'd very much like to get this working with ACPI, but there 
seems to be some problems with my ASRock ConRoe 945G-DVI motherboards' 
onboard nic and ACPI, and perhaps other problems. Any suggestions as to 
how to get them sorted out?

-Lasse