From owner-freebsd-questions Tue Sep 12 10:19:28 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id KAA21701 for questions-outgoing; Tue, 12 Sep 1995 10:19:28 -0700 Received: from aslan.cdrom.com (aslan.cdrom.com [192.216.223.142]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id KAA21695 for ; Tue, 12 Sep 1995 10:19:27 -0700 Received: from localhost.cdrom.com (localhost.cdrom.com [127.0.0.1]) by aslan.cdrom.com (8.6.12/8.6.9) with SMTP id KAA06565; Tue, 12 Sep 1995 10:19:05 -0700 Message-Id: <199509121719.KAA06565@aslan.cdrom.com> X-Authentication-Warning: aslan.cdrom.com: Host localhost.cdrom.com didn't use HELO protocol To: "Andrew Webster" cc: freebsd-questions@freebsd.org Subject: Re: Adaptec 2740 problem? In-reply-to: Your message of "Tue, 12 Sep 1995 12:06:12 CDT." <199509121608.MAA07891@vhf.dataradio.com> Date: Tue, 12 Sep 1995 10:19:04 -0700 From: "Justin T. Gibbs" Sender: questions-owner@freebsd.org Precedence: bulk > >Hi, > >I am having difficulty with a FreeBSD system using an adaptec 2740 >controller. Everything works to about 99.9%. Occasionally, (during >kernel builds and news expiries), I get a read error on the drives. This >is not detected except by the C compiler which complains about some >garbage data in the file. Restarting the compile will continue the build >and perhaps bomb somewhere else. My news active file is also corrupted >from time to time. > >The system is setup as follows: >+-----------+ +----------+ +-----------+ >| DISK ID:0 |-------| AHA 2740 |------| DISK ID:2 | >+-----------+ +----------+ +-----------+ >Both disks are terminated, and the 2740 is setup (Control-A during boot) in >software for no termination. You must have a fairly new 2740 since all of the ones I've seen use the EISA config utility to set options. > >I did however notice this in the aic7xxx.c file: >#define STPWEN 0x01 /* Powered Termination */ This means that the board will provide its own power to the terminator IF it is turned on. It has no effect when termination is disabled. > . > . > . > outb(SCSIID + iobase, ahc->our_id); > scsi_conf = inb(HA_SCSICONF + iobase) & (ENSPCHK|STIMESEL); > outb(SXFRCTL1 + iobase, scsi_conf|ENSTIMER|ACTNEGEN|STPWEN); <----!! > ^^^^^^ > outb(SIMODE1 + iobase, ENSELTIMO|ENSCSIPERR); > > >Does this re-enable the terminators on the 2740 that have been disabled in >software, and thus causing the problems mentionned? Nope. Can you tell me what version of the driver you are running. There have been many, many changes to it since 2.0.5. Revision IDs out of the files in i386/scsi and sys/dev/aic7xxx should be enough. > > >Thanks! > >----------------------------------------------------------------------- > Andrew Webster Network Manager / Special Projects > Dataradio Inc. 200-5500 Royalmount Ave. TEL: +1 514 737 0020 > Town of Mount Royal, QC, CANADA H4P 1H7 FAX: +1 514 737 7883 > http://www.dataradio.com Email: awebster@dataradio.com -- Justin T. Gibbs =========================================== Software Developer - Walnut Creek CDROM FreeBSD: Turning PCs into workstations ===========================================