From nobody@FreeBSD.org  Sat Aug 24 18:33:06 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 77F7B37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Aug 2002 18:33:06 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 352A643E3B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Aug 2002 18:33:06 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P1X6OT089714
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Aug 2002 18:33:06 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g7P1X6GP089713;
	Sat, 24 Aug 2002 18:33:06 -0700 (PDT)
Message-Id: <200208250133.g7P1X6GP089713@www.freebsd.org>
Date: Sat, 24 Aug 2002 18:33:06 -0700 (PDT)
From: Erik Fair <fair@netbsd.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC
X-Send-Pr-Version: www-1.0

>Number:         41988
>Category:       i386
>Synopsis:       autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    mbr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 24 18:40:01 PDT 2002
>Closed-Date:    Wed Feb 12 15:09:15 PST 2003
>Last-Modified:  Sun Jul  6 09:00:29 PDT 2003
>Originator:     Erik Fair
>Release:        4.6.2
>Organization:
The NetBSD Project
>Environment:
FreeBSD 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Wed Aug 14 21:23:26 GMT 2002 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386
>Description:
FreeBSD 4.6.2 boots from CD-ROM and installs happily on this beast, but the built-in Ethernet (a SiS 900) does not work. The system description can be found here:

http://www3pub.amd.com/products/cpg/easynow/prodbrief.html

This system is "legacy-free" (i.e. no serial ports, no parallel port, no PC keyboard/mouse controller; that all is the province of USB). It also has no expansion slots, so adding in a supported PCI card is not poissible. Aside from the AMD K6-2, this system is built pretty much entirely of SiS support chips.
>How-To-Repeat:
Boot FreeBSD 4.6.2 GENERIC on the box. Observe:

sis0: <SiS 900 10/100baseTX> port 0xe400-0xe4ff mem 0xdd901000-0xxx901fff irq 11 at device 1.1 on pci0
sis0: Ethernet address: 00:30:67:03:3f:19
sis0: MII without any PHY!
device_probe_and_attach: sis0 attach returned 6

observe that neither ifconfig nor netstat -i see the device once single user mode is achieved.
>Fix:
      
>Release-Note:
>Audit-Trail:

From: "Erik E. Fair" <fair@clock.org>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC 
Date: Sat, 24 Aug 2002 20:33:07 -0700

 One more useful URL:
 
 	http://www.biostar.com.tw/products/barebone/sunflower.php3
 

From: "Amy Emmerton" <amy@gsicomp.on.ca>
To: <freebsd-gnats-submit@FreeBSD.org>, <fair@netbsd.org>
Cc:  
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC
Date: Wed, 2 Oct 2002 22:35:50 -0400

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0006_01C26A64.0F5E3020
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 See PR http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/30836 for patch =
 and followup.
 
 ------=_NextPart_000_0006_01C26A64.0F5E3020
 Content-Type: text/html;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type content=3D"text/html; =
 charset=3Diso-8859-1">
 <META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY bgColor=3D#ffffff>
 <DIV><FONT face=3DArial size=3D2>See PR <A=20
 href=3D"http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/30836">http://w=
 ww.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/30836</A>=20
 for patch and followup.</FONT></DIV></BODY></HTML>
 
 ------=_NextPart_000_0006_01C26A64.0F5E3020--
 

From: "Erik E. Fair" <fair@clock.org>
To: "Amy Emmerton" <amy@gsicomp.on.ca>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC 
Date: Fri, 04 Oct 2002 02:59:42 -0700

 Alas, that patch is for rlphy, and this system has an AMD 79c901
 HomePHY in it.
 
 Also, as my PR stated, I tested against FreeBSD 4.6.2 GENERIC, and
 it didn't work. On the presumption that the patch you pointed me
 at in that other PR was already integrated with 4.6.2, it doesn't
 solve my problem.
 
 There does seem to be some funny stuff going on with different revs
 of the SiS 900 chip, though - one of the patches had some extra
 magic numbers in it that were rev dependent.
 
 If it's any consolation, NetBSD-current has support for this chip
 and this PHY, but the PHY is apparently not attaching. I'm
 investigating why now...
 
 	thanks for the pointer,
 
 	Erik <fair@clock.org>

From: "mjeays2551" <mjeays2551@rogers.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <fair@netbsd.org>
Cc:  
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC
Date: Sun, 13 Oct 2002 08:24:17 -0400

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0003_01C27291.EC06FAE0
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 I have a similar problem with a ASUS P4S533 motherboard, currently =
 running
 FreeBSD 4.6.  CPU is an Intel Pentium 4 1.8GHz.
 
 It fails to detect the sis0 device with dmesg output:
 
 sis0: <SiS 900 10/100BaseTX> at device 3.0 on pci0
 sis0: couldn't map ports/memory
 device_probe_and_attach: sis0 attach returned 6
 
 
 
 
 ------=_NextPart_000_0003_01C27291.EC06FAE0
 Content-Type: text/html;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type content=3D"text/html; =
 charset=3Diso-8859-1">
 <META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY bgColor=3D#ffffff>
 <DIV><FONT face=3DArial size=3D2>I have a similar problem with a ASUS =
 P4S533=20
 motherboard, currently running</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2>FreeBSD 4.6.&nbsp; CPU is an Intel =
 Pentium 4=20
 1.8GHz.</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2>It fails to detect the sis0 device with =
 dmesg=20
 output:</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2>sis0: &lt;SiS 900 10/100BaseTX&gt; at =
 device 3.0 on=20
 pci0</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2>sis0: couldn't map =
 ports/memory</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2>device_probe_and_attach: sis0 attach =
 returned=20
 6</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>
 
 ------=_NextPart_000_0003_01C27291.EC06FAE0--
 

From: Berry Kercheval <berry@kerch.com>
To: freebsd-gnats-submit@freebsd.org
Cc: fair@netbsd.org
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC
Date: Mon, 02 Dec 2002 22:16:36 -0800

 Hi Erik, long time no see.  For the record, I'm seeing this exact
 problem with a Soyo P4S Dragon motherboard with 4.7-stable.  I downloaded 
 the mini-CD image, burned it to a CD, booted off it just fine 
 and found this "MII without any PHY!" message on the console.
 
 This motherboard is a socket-478 and claims to be based on a SiS 645 
 chipset with a SiS900 Ethernet.
 
 mii_phy_probe is returning zero for all 32 phys.
 
 I think that in the interest of getting this machine up I'm going to 
 diable the SiS900 in the BIOS and get something else to plug in, but 
 please let me know if this gets fixed.
 
   --berry
 

From: "Muhannad Asfour" <muhannad07@cogeco.ca>
To: <freebsd-gnats-submit@FreeBSD.org>, <fair@netbsd.org>
Cc:  
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC
Date: Fri, 27 Dec 2002 19:14:18 -0500

 Using the patch (
 http://groups.google.com/groups?q=FUJITA+Kazutoshi&hl=en&lr=&ie=UTF-8&oe
 =UTF-8&selm=afnaum%241vdn%241%40FreeBSD.csie.NCTU.edu.tw&rnum=9 ) that
 was given in that post, I applied it to my 5.0-CURRENT server,
 recompiled the kernel, and rebooted and was successfully using my
 onboard SiS 961 NIC in minutes.
 

From: "Erik E. Fair" <fair@netbsd.org>
To: Berry Kercheval <berry@kerch.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at
 boot time in 4.6.2 GENERIC on AMD EasyNow PC
Date: Sun, 12 Jan 2003 22:23:48 -0800

 Happy New Year, Berry!
 
 I have principally been working this problem through the NetBSD 
 community, since I'm a developer there; I sent an update to the 
 NetBSD PR that I filed a few days ago; it's in PR 18590, and you can 
 read it at
 
 	http://www.netbsd.org/Misc/query-pr.html
 
 bottom line - bit-bang the MII instead of using the enhanced PHY 
 access register, and it might work better, but that didn't get me to 
 the SiS 900 internal 10/100 PHY.
 
 	Erik <fair@netbsd.org>

From: Martin Blapp <mb@imp.ch>
To: "Erik E. Fair" <fair@netbsd.org>
Cc: Berry Kercheval <berry@kerch.com>, HavardEidnes <he@netbsd.org>,
	Amy Emmerton <amy@gsicomp.on.ca>,
	Manuel Bouyer <bouyer@antioche.eu.org>,
	"" <freebsd-gnats-submit@freebsd.org>
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot
 time in 4.6.2 GENERIC on AMD EasyNow PC 
Date: Mon, 13 Jan 2003 10:18:47 +0100 (CET)

 Hi all,
 
 I'm currently working on the Sis driver in FreeBSD. I'd need access to
 such a motherboard (I guess this integrated SiS900 is part of a
 chipset only).
 
 Could anyone of you send me such a motherboard so I can fix the
 driver to support the Phy properly ? (and to implement support for
 FreeBSD at all).
 
 Martin
 
 Martin Blapp, <mb@imp.ch> <mbr@FreeBSD.org>
 ------------------------------------------------------------------
 ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
 Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
 PGP: <finger -l mbr@freebsd.org>
 PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
 ------------------------------------------------------------------
Responsible-Changed-From-To: freebsd-bugs->mbr 
Responsible-Changed-By: mbr 
Responsible-Changed-When: Thu Jan 30 15:29:58 PST 2003 
Responsible-Changed-Why:  
Take this PR. 

Is this problem solved with the if_sis MFC ? Please add this patch 
(against FreeBSD 4.7 stable) and report any success, problems to 
me: 

http://people.freebsd.org/~mbr/patches/if_sis_stable.diff 

Martin 


http://www.freebsd.org/cgi/query-pr.cgi?pr=41988 
State-Changed-From-To: open->feedback 
State-Changed-By: mbr 
State-Changed-When: Thu Jan 30 15:33:56 PST 2003 
State-Changed-Why:  
The multicast filter problem should be fixed too. Change state 
to feedback. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=41988 
State-Changed-From-To: feedback->closed 
State-Changed-By: mbr 
State-Changed-When: Wed Feb 12 15:08:14 PST 2003 
State-Changed-Why:  
Feedback timeout. The problem has been fixed in both 
STABLE and CURRENT. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41988 

From: Dung Patrick <dkt@digitalme.com>
To: freebsd-gnats-submit@FreeBSD.org, fair@netbsd.org, 
Cc:  
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC
Date: Sat, 07 Jun 2003 21:48:38 +0800

 Hi,
 
 Although the pr is closed, I still have problem with the integrated sis 900=
  with my AMD CPU (sis 730).
 
 I have one DP83815 pci lan card and one sis lan interface (integraed to sis=
  730).
 Only one chipset is usable, this is some parts of the dmesg:
 sis0: <SiS 900 10/100BaseTX> port 0xe000-0xe0ff mem 0xd9a00000-0xd9a00fff i=
 rq 10 at device 1.1 on pci0
 sis0: Ethernet address: 00:30:18:88:88:88
 sis0: MII without any PHY!
 device_probe_and_attach: sis0 attach returned 6
 ...
 sis0: <NatSemi DP83815 10/100BaseTX> port 0xec00-0xecff mem 0xd9a05000-0xd9=
 a05fff irq 11 at device 13.0 on pci0
 sis0: Ethernet address: 00:90:cc:4c:7e:4c
 miibus2: <MII bus> on sis0
 ukphy1: <Generic IEEE 802.3u media interface> on miibus2
 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 
 Regards,
 Patrick
 

From: Dung Patrick <dkt@digitalme.com>
To: freebsd-gnats-submit@FreeBSD.org, fair@netbsd.org, 
Cc:  
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC
Date: Sun, 08 Jun 2003 12:11:18 +0800

 Hi,
 
 Sorry, I have forgotten to include the OS version.
 
 The OS I installed with sis 900 is FreeBSD 5.1RC1. I've just upgrade with c=
 vs tag=3DRELENG_5_1 and recompile kernel, but I still have problem.
 
 Patrick
 

From: Dung Patrick <dkt@digitalme.com>
To: freebsd-gnats-submit@FreeBSD.org, fair@netbsd.org, 
Cc:  
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC
Date: Sun, 08 Jun 2003 15:29:37 +0800

 The PCI (DP83815) lan card works but the integrated one (sis900) failed.
 
 I have to remove the PCI one and test. I'll do this later when I got home. =
 And give you the pciconf -lv later.
 
 Patrick
 
 

From: "Erik E. Fair" <fair@netbsd.org>
To: Dung Patrick <dkt@digitalme.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC 
Date: Sun, 08 Jun 2003 03:44:34 -0700

 You might find reading this NetBSD problem report interesting:
 
 http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=18590
 
 
 	Erik <fair@clock.org>

From: Dung Patrick <dkt@digitalme.com>
To: freebsd-gnats-submit@FreeBSD.org, fair@netbsd.org, 
Cc:  
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC
Date: Mon, 09 Jun 2003 00:09:49 +0800

 Hi,
 
 I've take out the PCI one (DP83815) but the integrated one (sis900) still h=
 as problem. This is my pciconf -lv. In Linux, both PCI/integreted lan car=
 d works.
 
 agp0@pci0:0:0:=09class=3D0x060000 card=3D0x00000000 chip=3D0x07301039 rev=
 =3D0x02 hdr=3D0x00
     vendor   =3D 'Silicon Integrated Systems (SiS)'
     device   =3D 'SiS 730 Host-to-PCI Bridge'
     class    =3D bridge
     subclass =3D HOST-PCI
 atapci0@pci0:0:1:=09class=3D0x010180 card=3D0x55131039 chip=3D0x55131039 re=
 v=3D0xd0 hdr=3D0x00
     vendor   =3D 'Silicon Integrated Systems (SiS)'
     device   =3D 'SiS5513 EIDE Controller (A,B step)'
     class    =3D mass storage
     subclass =3D ATA
 isab0@pci0:1:0:=09class=3D0x060100 card=3D0x00000000 chip=3D0x00081039 rev=
 =3D0x00 hdr=3D0x00
     vendor   =3D 'Silicon Integrated Systems (SiS)'
     device   =3D 'SiS85C503/5513 PCI to ISA Bridge (LPC Bridge)'
     class    =3D bridge
     subclass =3D PCI-ISA
 none0@pci0:1:1:=09class=3D0x020000 card=3D0x09001039 chip=3D0x09001039 rev=
 =3D0x82 hdr=3D0x00
     vendor   =3D 'Silicon Integrated Systems (SiS)'
     device   =3D 'SiS900 Fast Ethernet/Home Networking Ctrlr'
     class    =3D network
     subclass =3D ethernet
 ohci0@pci0:1:2:=09class=3D0x0c0310 card=3D0x70011039 chip=3D0x70011039 rev=
 =3D0x07 hdr=3D0x00
     vendor   =3D 'Silicon Integrated Systems (SiS)'
     device   =3D 'SiS5597/8 Universal Serial Bus Controller'
     class    =3D serial bus
     subclass =3D USB
 ohci1@pci0:1:3:=09class=3D0x0c0310 card=3D0x70001039 chip=3D0x70011039 rev=
 =3D0x07 hdr=3D0x00
     vendor   =3D 'Silicon Integrated Systems (SiS)'
     device   =3D 'SiS5597/8 Universal Serial Bus Controller'
     class    =3D serial bus
     subclass =3D USB
 pcib1@pci0:2:0:=09class=3D0x060400 card=3D0x00000000 chip=3D0x00011039 rev=
 =3D0x00 hdr=3D0x01
     vendor   =3D 'Silicon Integrated Systems (SiS)'
     device   =3D 'SiS 530 Virtual PCI-to-PCI bridge (AGP)'
     class    =3D bridge
     subclass =3D PCI-PCI
 dc0@pci0:9:0:=09class=3D0x020000 card=3D0x05741317 chip=3D0x09851317 rev=3D=
 0x11 hdr=3D0x00
     vendor   =3D 'Admtek Inc'
     device   =3D 'ADM983 fast ethernet controller'
     class    =3D network
     subclass =3D ethernet
 fxp0@pci0:11:0:=09class=3D0x020000 card=3D0x000c8086 chip=3D0x12298086 rev=
 =3D0x08 hdr=3D0x00
     vendor   =3D 'Intel Corporation'
     device   =3D '82557/8/9 EtherExpress PRO/100(B) Ethernet Adapter'
     class    =3D network
     subclass =3D ethernet
 sis0@pci0:13:0:=09class=3D0x020000 card=3D0x0020100b chip=3D0x0020100b rev=
 =3D0x00 hdr=3D0x00
     vendor   =3D 'National Semiconductor'
     device   =3D 'DP83815/16 MacPhyter 10/100 Mb/s Ethernet MAC & PHY'
     class    =3D network
     subclass =3D ethernet
 none1@pci1:0:0:=09class=3D0x030000 card=3D0x63001039 chip=3D0x63001039 rev=
 =3D0x31 hdr=3D0x00
     vendor   =3D 'Silicon Integrated Systems (SiS)'
     device   =3D 'SiS630/730 GUI Accelerator+3D'
     class    =3D display
     subclass =3D VGA
 
 Regards,
 Patrick
 
 

From: Dung Patrick <dkt@digitalme.com>
To: freebsd-gnats-submit@FreeBSD.org, fair@netbsd.org, 
Cc:  
Subject: Re: i386/41988: autoconfig of SiS 900 10/100 ethernet fails at boot time in 4.6.2 GENERIC on AMD EasyNow PC
Date: Sun, 06 Jul 2003 23:58:14 +0800

 Hi,
 
 After reading the NetBSD PR, I don't know what I should do.
 
 I still have problem with my system (one integrated sis900 + PCI card DP838=
 15.
 
 Regards
 Patrick
 
>Unformatted:
