Subject: Re: NCR driver
To: Lennart Augustsson <augustss@cs.chalmers.se>
From: Dave Huang <khym@bga.com>
List: current-users
Date: 11/23/1996 12:05:45
On Sat, 23 Nov 1996, Lennart Augustsson wrote:
> > > What has happened to the NCR SCSI driver? I did a sup
> > > to get the latest "improved" version of the NCR driver,
> > > and now the write speed has gone from 3.5MB/s to 1.4MB/s.
> > > Reading is still at about 5.5MB/s.
> >
> > Oh dear. What sort of PC are you on, and what's the rotational
> > speed of your hard drive?
I don't know if this will make any difference, but there have been some
minor patches to the FreeBSD's ncr.c since I originally submitted the PR
with the updated driver... You might try them out and see if they help
anything:
--- /usr/src/sys/dev/pci/ncr.c Thu Nov 21 06:20:17 1996
+++ ncr.c Fri Nov 22 22:53:50 1996
@@ -3501,8 +3501,8 @@
np->maxwide = 0;
np->rv_scntl3 = 0x13; /* default: 40MHz clock */
- np->ns_sync = 25;
- np->ns_async = 50;
+ np->ns_sync = 25; /* XXX no support for Fast-20, yet */
+ np->ns_async = 50;
/*
** Get the frequency of the chip's clock.
@@ -5172,8 +5172,8 @@
** Never test for an error condition you don't know how to handle.
*/
- dstat = INB (nc_dstat);
- sist = INW (nc_sist) ;
+ dstat = (istat & DIP) ? INB (nc_dstat) : 0;
+ sist = (istat & SIP) ? INW (nc_sist) : 0;
np->profile.num_int++;
if (DEBUG_FLAGS & DEBUG_TINY)
@@ -7058,8 +7058,6 @@
}
}
- np->ns_sync = 25;
- np->ns_async = 50;
np->rv_scntl3 = ((scntl3 & 0x7) << 4) -0x20 + (scntl3 & 0x7);
if (bootverbose) {
--
Name: Dave Huang | Mammal, mammal / their names are called /
INet: khym@bga.com | they raise a paw / the bat, the cat /
FurryMUCK: Dahan | dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 21 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++