Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2002 20:55:03 -0800 (PST)
From:      Doug Ambrisko <ambrisko@ambrisko.com>
To:        freebsd-stable-local@insignia.com
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: sis0: incorrect mac address
Message-ID:  <200202190455.g1J4t3J73494@ambrisko.com>
In-Reply-To: <7pu17usrs2e35hp0upm4a1v0o2jhk4okh0@4ax.com>

next in thread | previous in thread | raw e-mail | index | archive | help
freebsd-stable-local@insignia.com writes:
| On Sat, 16 Feb 2002 20:43:54 +0100 (CET), blaz@si.FreeBSD.org (Blaz
| Zupan) wrote:
| 
| >> on 3 out of 4 servers just installed, I get this when looking at ifconfig:
| >>
| >> sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
| >>         inet 66.28.74.109 netmask 0xffffffe0 broadcast 66.28.74.127
| >>         inet6 fe80::d483:b781:285a:6ea1%sis0 prefixlen 64 scopeid 0x1
| >>         ether 00:00:00:00:00:00
| >>  NOTE:------->^^^^^^^^^^^^^^^^^
| >>         media: Ethernet autoselect (100baseTX <full-duplex>)
| >>         status: active
| >
| >Oops, actually scratch that, the patch I mentioned is already in 4.5. Try this
| >one instead:
| >
| >http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/if_sis.c.diff?r1=1.47&r2=1.48
| >
| >It probably won't apply cleanly because it's for current.
| 
| I have an Asus Terminator Tualatin with exactly the same problem,
| so I will try this out. If as has been posted it doesn't apply then
| I'll try to do it manually. I'm currently using a RealTek PCI card
| instead of the onboard but I'd like to free up the slot.

FYI, you also need the header change as well.  Both the header and
code change should be MFC'ed shortly.  This will fix -stable otherwise
use this patch to -stable:

Index: if_sisreg.h
===================================================================
RCS file: /cvs/src/sys/pci/if_sisreg.h,v
retrieving revision 1.1.4.9
diff -u -r1.1.4.9 if_sisreg.h
--- if_sisreg.h	9 Feb 2002 23:02:40 -0000	1.1.4.9
+++ if_sisreg.h	19 Feb 2002 03:49:55 -0000
@@ -369,7 +369,7 @@
 #define SIS_REV_630E		0x0081
 #define SIS_REV_630S		0x0082
 #define SIS_REV_630EA1		0x0083
-#define SIS_REV_630ET		0x0083
+#define SIS_REV_630ET		0x0084
 #define SIS_REV_635		0x0090
 
 /*
Index: if_sis.c
===================================================================
RCS file: /cvs/src/sys/pci/if_sis.c,v
retrieving revision 1.13.4.19
diff -u -r1.13.4.19 if_sis.c
--- if_sis.c	9 Feb 2002 23:02:40 -0000	1.13.4.19
+++ if_sis.c	19 Feb 2002 03:49:55 -0000
@@ -919,11 +919,11 @@
 		 */
 		if (sc->sis_rev == SIS_REV_630S ||
 		    sc->sis_rev == SIS_REV_630E ||
-		    sc->sis_rev == SIS_REV_630EA1 ||
-		    sc->sis_rev == SIS_REV_630ET)
+		    sc->sis_rev == SIS_REV_630EA1)
 			sis_read_cmos(sc, dev, (caddr_t)&eaddr, 0x9, 6);
 
-		else if (sc->sis_rev == SIS_REV_635)
+		else if (sc->sis_rev == SIS_REV_635 ||
+			 sc->sis_rev == SIS_REV_630ET)
 			sis_read_mac(sc, dev, (caddr_t)&eaddr);
 		else
 #endif
@@ -937,13 +937,6 @@
 	 */
 	printf("sis%d: Ethernet address: %6D\n", unit, eaddr, ":");
 
-	/*
-	 * From the Linux driver:
-	 * 630ET : set the mii access mode as software-mode
-	 */
-	if (sc->sis_rev == SIS_REV_630ET)
-		SIS_SETBIT(sc, SIS_CSR, SIS_CSR_ACCESS_MODE);
-	
 	sc->sis_unit = unit;
 	callout_handle_init(&sc->sis_stat_ch);
 	bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN);

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202190455.g1J4t3J73494>