From dgatwood@services.mklinux.org  Mon Dec  2 23:50:09 2002
Return-Path: <dgatwood@services.mklinux.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 400E837B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Dec 2002 23:50:09 -0800 (PST)
Received: from services.mklinux.org (services.mklinux.org [12.44.186.146])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9754043ECF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Dec 2002 23:50:08 -0800 (PST)
	(envelope-from dgatwood@services.mklinux.org)
Received: from services.mklinux.org (localhost [127.0.0.1])
	by services.mklinux.org (8.12.6/8.12.6) with ESMTP id gB37lswG013496
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 2 Dec 2002 23:47:55 -0800
Received: (from dgatwood@localhost)
	by services.mklinux.org (8.12.6/8.12.6/Submit) id gB37lso7013495;
	Mon, 2 Dec 2002 23:47:54 -0800
Message-Id: <200212030726.gB37QFHM000714@netbackup.mklinux.org>
Date: Mon, 2 Dec 2002 23:44:40 -0800 (PST)
From: "David A. Gatwood" <dgatwood@mklinux.org>
Reply-To: "David A. Gatwood" <dgatwood@mklinux.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: multiple bugs in sis driver
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45957
>Category:       kern
>Synopsis:       multiple bugs in sis driver
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    mbr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 03 00:00:03 PST 2002
>Closed-Date:    Wed Feb 12 15:16:12 PST 2003
>Last-Modified:  Wed Feb 12 15:16:12 PST 2003
>Originator:     David A. Gatwood <dgatwood@mklinux.org>
>Release:        FreeBSD 5.0-DP2 i386
>Organization:
The MkLinux Project
>Environment:
System: FreeBSD netbackup.mklinux.org 5.0-DP2 FreeBSD 5.0-DP2 #1: Sat Nov
16 13:38:33 GMT 2002 root@tomcat.bmah.org:/usr/obj/usr/src/sys/GENERIC
i386


        K7S5A mainboard/Athlon XP 1800+, FreeBSD-5.0-DP2
>Description:

First issue:

The sis(4) driver misbehaves badly when dealing with the chipset on the
K7S5A mainboard.  This has been reported on both the FreeBSD-questions
and FreeBSD-security mailing lists over the last few months, but as
yet no one has suggested any fixes for the issue.  The bug manifests
itself as packets dropped, and Ierrs being incremented for the interface.

The following things have been checked and exonerated as possible causes:

1.  Network cable/connection (works fine for other machines).
2.  IRQ conflict.  Was originally sharing an interrupt line with a Promise
    card.  Reconfigured cards to eliminate this problem (apart from
    sharing with a disabled serial port).
3.  I/O space conflict.
4.  PCI memory space conflict.
5.  Router issues or other network problems.

In case it's relevant, I'm running a 10-base-T-only network.  No idea
about the other folks who had similar problems.


Second issue:

I tried to determine whether the problem was generic to this driver
in this configuration or whether it was a bug in the actual chipset
that needed to be worked around, but I couldn't make that work at all.
To do this, I tried using a Netgear FA-311 card that I had lying around.
As several other folks have noted, the ATA bus on the motherboard
goes South with that card present.

Best guess on that issue is that this second issue is probably an I/O
space conflict.  Others have suggested similar theories.

I'm not sure how practical this is in the FreeBSD driver architecture,
but it would be nice to have a way to disable port based access to the
FA-311 in the PCI bridge as soon as such a device is detected, say as
part of a PCI quirk table, and then just use memory space access to drive
the card.  There shouldn't be any reason to keep it enabled, assuming
the sis driver is cross-platform.


Partial Workaround:

For now, I was able to hack around the problem by stealing an FA-310
(tulip) card out of a Linux box and use that.  Ping tests to the two
interfaces reveal a clean connection for the tulip interface, and about 5%
packet loss for the sis interface.  Swapped connections on the two
interfaces just to be absolutely certain that it's a problem with the
interface and/or the driver.  Still packet loss on the sis, clean on the
tulip.

>How-To-Repeat:
        Use the listed mainboard.  It will occur consistently, 
sporadically.
>Fix:

        no fix known, workaround is to use a non-sis-based PCI NIC

>Release-Note:
>Audit-Trail:

From: "Muhannad Asfour" <muhannad07@cogeco.ca>
To: <freebsd-gnats-submit@FreeBSD.org>, <dgatwood@mklinux.org>
Cc:  
Subject: Re: kern/45957: multiple bugs in sis driver
Date: Fri, 27 Dec 2002 19:13:58 -0500

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0001_01C2ADDC.1C3411A0
 Content-Type: text/plain;
 	charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 Using the patch ( http://groups.google.com/groups?q=FUJITA+Kazutoshi
 <http://groups.google.com/groups?q=FUJITA+Kazutoshi&hl=en&lr=&ie=UTF-8&o
 e=UTF-8&selm=afnaum%241vdn%241%40FreeBSD.csie.NCTU.edu.tw&rnum=9>
 &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.
 
 ------=_NextPart_000_0001_01C2ADDC.1C3411A0
 Content-Type: text/html;
 	charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 
 <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
 xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
 xmlns=3D"http://www.w3.org/TR/REC-html40">
 
 <head>
 <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
 charset=3Dus-ascii">
 
 
 <meta name=3DProgId content=3DWord.Document>
 <meta name=3DGenerator content=3D"Microsoft Word 10">
 <meta name=3DOriginator content=3D"Microsoft Word 10">
 <link rel=3DFile-List href=3D"cid:filelist.xml@01C2ADDC.10F83EB0">
 <!--[if gte mso 9]><xml>
  <o:OfficeDocumentSettings>
   <o:DoNotRelyOnCSS/>
  </o:OfficeDocumentSettings>
 </xml><![endif]--><!--[if gte mso 9]><xml>
  <w:WordDocument>
   <w:SpellingState>Clean</w:SpellingState>
   <w:GrammarState>Clean</w:GrammarState>
   <w:DocumentKind>DocumentEmail</w:DocumentKind>
   <w:EnvelopeVis/>
   <w:Compatibility>
    <w:BreakWrappedTables/>
    <w:SnapToGridInCell/>
    <w:ApplyBreakingRules/>
    <w:WrapTextWithPunct/>
    <w:UseAsianBreakRules/>
   </w:Compatibility>
   <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
  </w:WordDocument>
 </xml><![endif]-->
 <style>
 <!--
  /* Style Definitions */
  p.MsoNormal, li.MsoNormal, div.MsoNormal
 	{mso-style-parent:"";
 	margin:0in;
 	margin-bottom:.0001pt;
 	mso-pagination:widow-orphan;
 	font-size:12.0pt;
 	font-family:"Times New Roman";
 	mso-fareast-font-family:"Times New Roman";}
 a:link, span.MsoHyperlink
 	{color:blue;
 	text-decoration:underline;
 	text-underline:single;}
 a:visited, span.MsoHyperlinkFollowed
 	{color:purple;
 	text-decoration:underline;
 	text-underline:single;}
 span.EmailStyle17
 	{mso-style-type:personal-compose;
 	mso-style-noshow:yes;
 	mso-ansi-font-size:10.0pt;
 	mso-bidi-font-size:10.0pt;
 	font-family:Arial;
 	mso-ascii-font-family:Arial;
 	mso-hansi-font-family:Arial;
 	mso-bidi-font-family:Arial;
 	color:windowtext;}
 span.SpellE
 	{mso-style-name:"";
 	mso-spl-e:yes;}
 span.GramE
 	{mso-style-name:"";
 	mso-gram-e:yes;}
 @page Section1
 	{size:8.5in 11.0in;
 	margin:1.0in 1.25in 1.0in 1.25in;
 	mso-header-margin:.5in;
 	mso-footer-margin:.5in;
 	mso-paper-source:0;}
 div.Section1
 	{page:Section1;}
 -->
 </style>
 <!--[if gte mso 10]>
 <style>
  /* Style Definitions */=20
  table.MsoNormalTable
 	{mso-style-name:"Table Normal";
 	mso-tstyle-rowband-size:0;
 	mso-tstyle-colband-size:0;
 	mso-style-noshow:yes;
 	mso-style-parent:"";
 	mso-padding-alt:0in 5.4pt 0in 5.4pt;
 	mso-para-margin:0in;
 	mso-para-margin-bottom:.0001pt;
 	mso-pagination:widow-orphan;
 	font-size:10.0pt;
 	font-family:"Times New Roman";}
 </style>
 <![endif]-->
 </head>
 
 <body lang=3DEN-US link=3Dblue vlink=3Dpurple =
 style=3D'tab-interval:.5in'>
 
 <div class=3DSection1>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
 style=3D'font-size:10.0pt;
 font-family:Arial'>Using the patch <span class=3DGramE>( </span><a
 href=3D"http://groups.google.com/groups?q=3DFUJITA+Kazutoshi&amp;hl=3Den&=
 amp;lr=3D&amp;ie=3DUTF-8&amp;oe=3DUTF-8&amp;selm=3Dafnaum%241vdn%241%40Fr=
 eeBSD.csie.NCTU.edu.tw&amp;rnum=3D9">http://groups.google.com/groups?q=3D=
 FUJITA+Kazutoshi&amp;hl=3Den&amp;lr=3D&amp;ie=3DUTF-8&amp;oe=3DUTF-8&amp;=
 selm=3Dafnaum%241vdn%241%40FreeBSD.csie.NCTU.edu.tw&amp;rnum=3D9</a>
 ) 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 <span
 class=3DSpellE>SiS</span> 961 NIC in =
 minutes.<o:p></o:p></span></font></p>
 
 </div>
 
 </body>
 
 </html>
 
 ------=_NextPart_000_0001_01C2ADDC.1C3411A0--
 
Responsible-Changed-From-To: freebsd-bugs->mbr 
Responsible-Changed-By: arved 
Responsible-Changed-When: Fri Jan 31 04:19:11 PST 2003 
Responsible-Changed-Why:  
Over to mbr, who is dealing with various sis issues 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45957 
State-Changed-From-To: open->feedback 
State-Changed-By: mbr 
State-Changed-When: Sat Feb 1 03:29:00 PST 2003 
State-Changed-Why:  
A recent version in CURRENT should work for you, 
I added support for the device revision 96x. Can 
you confirm this so I can close the PR ? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45957 
State-Changed-From-To: feedback->closed 
State-Changed-By: mbr 
State-Changed-When: Wed Feb 12 15:15:29 PST 2003 
State-Changed-Why:  
Feedback timeout. The problem has been fixed in the  
meantime. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45957 
>Unformatted:
