Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2001 16:00:02 -0800 (PST)
From:      SUZUKI Koichi <metal@gc5.so-net.ne.jp>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/30836: Chipset SiS735 / NIC SiS 900
Message-ID:  <200111280000.fAS002L28087@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/30836; it has been noted by GNATS.

From: SUZUKI Koichi <metal@gc5.so-net.ne.jp>
To: freebsd-gnats-submit@FreeBSD.org, jlido@goof.com
Cc:  
Subject: Re: kern/30836: Chipset SiS735 / NIC SiS 900
Date: Tue, 27 Nov 2001 15:52:04 -0800

 Hi guys,
 
 I bought the same motherboard (ECS K7S5A) last week,
  and I met the same trouble with FreeBSD 4.4-stable cvsuped last wednesday.
 
 It seems that PHY doesn't exists at phy=0 but phy=1 on MIIBUS.
 So I commented out the some sentences
  in function sis_miibus_readreg() in sys/pci/if_sis.c. (see below patch)
 
 With this change, I can use my on-board ethernet interface.
 
 --- dmesg ---
 sis0: <SiS 900 10/100BaseTX> port 0xd400-0xd4ff mem 0xcffdd000-0xcffddfff irq 5 at device 3.0 on pci0
 sis0: Ethernet address: 00:d0:09:ea:04:43
 miibus0: <MII bus> on sis0
 ukphy0: <Generic IEEE 802.3u media interface> on miibus0
 ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 ---
 
 --- ifconfig ---
 sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 	inet xxx.xxx.xxx.xxx netmask 0xffffff00 broadcast xxx.xxx.xxx.xxx
 	inet6 fe80::2d0:9ff:feea:443%sis0 prefixlen 64 scopeid 0x1
 	ether 00:d0:09:ea:04:43
 	media: Ethernet autoselect (100baseTX <full-duplex>)
 	status: active
 ---
 
 
 I don't know why it is restricted only phy=0.
 So this change will cause a problem on the other machine which has SiS900.
 And I'm not sure the symbol name "SIS_REV_735" is apropriate.
 
 
 -- 
 This is my STYLE.
 SUZUKI Koichi
 
 
 Index: if_sis.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/pci/if_sis.c,v
 retrieving revision 1.13.4.7
 diff -u -r1.13.4.7 if_sis.c
 --- if_sis.c	21 Feb 2001 22:17:51 -0000	1.13.4.7
 +++ if_sis.c	27 Nov 2001 23:03:04 -0000
 @@ -459,8 +459,10 @@
 
 	return(val);
  	}
 
 +#if 0
  	if (sc->sis_type == SIS_TYPE_900 && phy != 0)
 
 	return(0);
 +#endif
 
  	CSR_WRITE_4(sc, SIS_PHYCTL, (phy << 11) | (reg << 6) | SIS_PHYOP_READ);
  	SIS_SETBIT(sc, SIS_PHYCTL, SIS_PHYCTL_ACCESS);
 @@ -879,7 +881,8 @@
 
 	command = pci_read_config(dev, PCIR_REVID, 1);
 
 	if (command == SIS_REV_630S ||
 
 	    command == SIS_REV_630E ||
 -
 	    command == SIS_REV_630EA1)
 +
 	    command == SIS_REV_630EA1 ||
 +
 	    command == SIS_REV_735)
 
 		sis_read_cmos(sc, dev, (caddr_t)&eaddr, 0x9, 6);
 
 	else
  #endif
 Index: if_sisreg.h
 ===================================================================
 RCS file: /home/ncvs/src/sys/pci/if_sisreg.h,v
 retrieving revision 1.1.4.3
 diff -u -r1.1.4.3 if_sisreg.h
 --- if_sisreg.h	21 Feb 2001 22:17:51 -0000	1.1.4.3
 +++ if_sisreg.h	27 Nov 2001 16:42:07 -0000
 @@ -366,6 +366,7 @@
  #define SIS_REV_630E		0x0081
  #define SIS_REV_630S		0x0082
  #define SIS_REV_630EA1		0x0083
 +#define SIS_REV_735		0x0090
 
  /*
   * NatSemi vendor ID
 

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




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