Subject: 2.0.2 fails to boot if realtek 8169 ethernet is configured
To: None <netbsd-help@netbsd.org>
From: Dieter <netbsd@sopwith.solgatos.com>
List: netbsd-help
Date: 06/13/2005 11:18:19
This problem isn't at the top of my list, but while I'm out
of things to try with the various PATA problems...

Alpha 164lx running 2.0.2

A 2.0.2 kernel without the re driver configured says:

Realtek Semiconductor 8169 10/100/1000 Ethernet (ethernet network, revision 0x10) at pci2 dev 0 function 0 not configured

If I add

	re*     at      pci? dev ? function ?

to my config file, the kernel will not boot:

[ ... ]
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
re0 at pci2 dev 0 function 0: RealTek 8169S Single-chip Gigabit Ethernet
OUI 0x00e04c model 0x0011 rev 0 at re0 phy 7 not configured
ifmedia_set: no match for 0x20/0xfffffff

unexpected machine check:

    mces    = 0x1
    vector  = 0x660
    param   = 0xfffffc0000006068
    pc      = 0xfffffc0000511530
    ra      = 0xfffffc00004f1f0c
    code    = 0x213
    curlwp = 0xfffffc000068a188
        pid = 0.1, comm = swapper

panic: machine check
Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x4:        ret     zero,(ra
)
db> bt
cpu_Debugger() at netbsd:cpu_Debugger+0x4
panic() at netbsd:panic+0x1e8
machine_check() at netbsd:machine_check+0x234
interrupt() at netbsd:interrupt+0x1e8
XentInt() at netbsd:XentInt+0x1c
--- interrupt (from ipl 6) ---
delay() at netbsd:delay+0x30
re_diag() at netbsd:re_diag+0x3ec
re_attach() at netbsd:re_attach+0x414
config_attach() at netbsd:config_attach+0x324
config_found_sm() at netbsd:config_found_sm+0x54
pci_probe_device() at netbsd:pci_probe_device+0x2c0
pci_enumerate_bus_generic() at netbsd:pci_enumerate_bus_generic+0x204
pciattach() at netbsd:pciattach+0x1e4
config_attach() at netbsd:config_attach+0x324
config_found_sm() at netbsd:config_found_sm+0x54
ppbattach() at netbsd:ppbattach+0x160
config_attach() at netbsd:config_attach+0x324
config_found_sm() at netbsd:config_found_sm+0x54
pci_probe_device() at netbsd:pci_probe_device+0x2c0
pci_enumerate_bus_generic() at netbsd:pci_enumerate_bus_generic+0x204
pciattach() at netbsd:pciattach+0x1e4
config_attach() at netbsd:config_attach+0x324
config_found_sm() at netbsd:config_found_sm+0x54
ciaattach() at netbsd:ciaattach+0x17c
config_attach() at netbsd:config_attach+0x324
config_found_sm() at netbsd:config_found_sm+0x54
mbattach() at netbsd:mbattach+0x13c
config_attach() at netbsd:config_attach+0x324
config_rootfound() at netbsd:config_rootfound+0x54
cpu_configure() at netbsd:cpu_configure+0x48
configure() at netbsd:configure+0x64
main() at netbsd:main+0x438
locorestart() at netbsd:locorestart+0x64
--- root of call graph ---
db> reboot
halted.
						<- reboot hangs, console dead, had to press reset
*** keyboard not plugged in...
ff.fe.fd.fc.fb.fa.f9.f8.f7.f6.f5.f3.f2.f1.f0.
ef.ee.ed.probing hose 0, PCI
probing PCI-to-PCI bridge, bus 2


The hang at reboot happens every time.


(gdb) list *(0xfffffc0000511530)
0xfffffc0000511530 is in delay (alpha_cpu.h:341).
336     static __inline unsigned long
337     alpha_rpcc(void)
338     {
339             unsigned long v0;
340
341             __asm __volatile("rpcc %0" : "=r" (v0));
342             return (v0);
343     }
344
345     #define alpha_mb()      __asm __volatile("mb" : : : "memory")
(gdb)