From nobody@FreeBSD.ORG Wed Mar 17 12:49:32 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 9753615376; Wed, 17 Mar 1999 12:49:32 -0800 (PST)
Message-Id: <19990317204932.9753615376@hub.freebsd.org>
Date: Wed, 17 Mar 1999 12:49:32 -0800 (PST)
From: ath@niksun.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Default sync rate in ncr SCSI driver is slower than Ultra2 allows
X-Send-Pr-Version: www-1.0

>Number:         10641
>Category:       kern
>Synopsis:       Default sync rate in ncr SCSI driver is slower than Ultra2 allows
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 17 12:50:00 PST 1999
>Closed-Date:    Thu Aug 26 18:50:45 GMT 2004
>Last-Modified:  Thu Aug 26 18:50:45 GMT 2004
>Originator:     Andrew Heybey
>Release:        3.1-RELEASE
>Organization:
Niksun, Inc.
>Environment:
FreeBSD alpha.niksun.com 3.1-RELEASE FreeBSD 3.1-RELEASE #1: Wed Mar 17 15:06:52 EST 1999     ath@alpha.niksun.com:/usr/src/sys/compile/ALPHA  i386

>Description:
If it is not otherwise defined (eg via the kernel config file),
sys/pci/ncr.c sets NCR_SCSI_DFLT_SYNC to 12 (which is 20 MHz).  This
means that by default ultra2 controllers will only run at half their
maximum rate.

>How-To-Repeat:
Boot system with LVD Ultra2 disks on an NCR895/896 controller.  See
the BIOS print out "80MB/s". See FreeBSD print out
"da0: 40.0MB/s transfers (20.0MHz, offset 15, 16bit)".

>Fix:
[The patch is again -current, not 3.1-RELEASE]
--- ncr.c       1999/01/27 23:45:43     1.142
+++ ncr.c       1999/03/17 20:46:22
@@ -79,7 +79,7 @@
 #ifndef        SCSI_NCR_MAX_SYNC
 
 #ifndef SCSI_NCR_DFLT_SYNC
-#define SCSI_NCR_DFLT_SYNC	(12)
+#define SCSI_NCR_DFLT_SYNC	(6)
 #endif /* SCSI_NCR_DFLT_SYNC */
 
 #else


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->groudier 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Fri Feb 9 05:27:15 PST 2001 
Responsible-Changed-Why:  
I know that Gerard looks after the sym driver, not the ncr driver, but 
he is likely to be able to check this simple patch quickly. 

Gerard - could you cast your eye over the patch (which changed 
SCSI_NCR_DFLT_SYNC from 6 to 12) and one of us can commit it, it if 
looks OK. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=10641 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Aug 26 03:16:35 GMT 2004 
State-Changed-Why:  
Is this still a problem with modern versions of FreeBSD? 


Responsible-Changed-From-To: groudier->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Aug 26 03:16:35 GMT 2004 
Responsible-Changed-Why:  
With bugmeister hat on, reassign from inactive committer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=10641 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Aug 26 18:50:12 GMT 2004 
State-Changed-Why:  
It sounds as though a completely different driver is used in 
modern versions of FreeBSD. 

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