Subject: re(4) causes stuck in boot
To: None <current-users@netbsd.org>
From: Frank Lorenzen <F.Lorenzen@gmx.de>
List: current-users
Date: 01/28/2007 00:08:58
I've got a new Mainboard with two 8110SC on it. Unfortunately GENERIC
seems not to support this.

dmesg (re disabled):
NetBSD 4.99.9 (GENERIC.RE) #0: Sat Jan 27 23:20:21 CET 2007
        root@via:/build/netbsd-cur/obj/sys/arch/i386/compile/GENERIC.RE
[...]
Realtek Semiconductor 8169SC/8110SC 10/100/1000 Ethernet (ethernet
network, revision 0x10) at pci0 dev 9 function 0 not configured

BTW: There is only the first Card enabled in BIOS.

After putting a few aprint into dev/ic/rtl8169.c (all within re_attach)
I noticed the following situation:
I booted 14 times.
3 times it stuck at CSR_WRITE_1(sc, RTK_EECMD, RTK_EEMODE_AUTOLOAD);
6 times it stuck at aprint_verbose("%s: using %d tx descriptors\n",
		sc->sc_dev.dv_xname, sc->re_ldata.re_tx_desc_cnt);
  with no output.
2 times it stuck between the for (i=0;...) around line 598 and the
  following break.
and 3 times ist stuck after one or more DELAY in line 604 which might be
the same stuck as the one above.

For me as programming novice it looks like there is a Problem reading
data from the Card/the Eprom.

Just to clarify that it isn't damaged Hardware:
The OpenBSD-4 Kernel booted via PXE supports this Card.


Any suggestions?

greetings
f