Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: 5.0_RC3 messed up RTL8111DL onboard NIC



> re0 at pci5 dev 0 function 0: RealTek 8168B/8111B PCIe Gigabit Ethernet (rev. 
> 0x03)
> re0: interrupting at ioapic0 pin 18
> re0: Unknown revision (0x28000000)
> re0: Ethernet address ff:ff:ff:ff:ff:ff
> re0: using 256 tx descriptors
> rgephy0 at re0 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 2
> rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
> 1000baseT-FDX, auto

> re1 at pci6 dev 0 function 0: RealTek 8168B/8111B PCIe Gigabit Ethernet (rev. 
> 0x03)
> re1: interrupting at ioapic0 pin 17
> re1: Unknown revision (0x28000000)
> re1: Ethernet address 39:a0:60:ad:52:15
> re1: using 256 tx descriptors
> rgephy1 at re1 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 2
> rgephy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
> 1000baseT-FDX, auto

Hmm, I'm surprised how re1 can get MAC address from EEPROM...
Anyway, could you try the attached patch (for netbsd-5)?

(is it better to assume unknown revisions may have the same features
 with the latest known one?)

---
Index: dev/ic/rtl8169.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/rtl8169.c,v
retrieving revision 1.105.4.2
diff -u -r1.105.4.2 rtl8169.c
--- dev/ic/rtl8169.c    26 Mar 2009 17:36:03 -0000      1.105.4.2
+++ dev/ic/rtl8169.c    10 Apr 2009 22:57:38 -0000
@@ -601,6 +601,8 @@
                        break;
                case RTK_HWREV_8168C:
                case RTK_HWREV_8168C_SPIN2:
+               case RTK_HWREV_8168CP:
+               case RTK_HWREV_8168D:
                        sc->sc_rev = 24;
                        break;
                case RTK_HWREV_8102E:
Index: dev/ic/rtl81x9reg.h
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/rtl81x9reg.h,v
retrieving revision 1.32.4.1
diff -u -r1.32.4.1 rtl81x9reg.h
--- dev/ic/rtl81x9reg.h 26 Mar 2009 17:36:03 -0000      1.32.4.1
+++ dev/ic/rtl81x9reg.h 10 Apr 2009 22:57:38 -0000
@@ -158,6 +158,7 @@
 #define RTK_HWREV_8169_8110SB  0x10000000
 #define RTK_HWREV_8169_8110SC  0x18000000
 #define RTK_HWREV_8102EL       0x24800000
+#define RTK_HWREV_8168D                0x28000000
 #define RTK_HWREV_8168_SPIN1   0x30000000
 #define RTK_HWREV_8100E                0x30800000
 #define RTK_HWREV_8101E                0x34000000
@@ -167,6 +168,7 @@
 #define RTK_HWREV_8100E_SPIN2  0x38800000
 #define RTK_HWREV_8168C                0x3C000000
 #define RTK_HWREV_8168C_SPIN2  0x3C400000
+#define RTK_HWREV_8168CP       0x3C800000
 #define RTK_HWREV_8139         0x60000000
 #define RTK_HWREV_8139A                0x70000000
 #define RTK_HWREV_8139AG       0x70800000

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index