From owner-freebsd-questions Tue Sep 12 09:09:52 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id JAA18180 for questions-outgoing; Tue, 12 Sep 1995 09:09:52 -0700 Received: from vhf.dataradio.com (G496.InterLink.NET [198.168.61.62]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id JAA18172 for ; Tue, 12 Sep 1995 09:09:47 -0700 Received: from dri.UUCP (udri@localhost) by vhf.dataradio.com (8.6.9/8.6.12) with UUCP id MAA07891 for freebsd-questions@freebsd.org; Tue, 12 Sep 1995 12:08:29 -0400 Message-Id: <199509121608.MAA07891@vhf.dataradio.com> Received: by dri (UUXFER v1.4); Tue 12 Sep 1995 12:08:41 EDT From: "Andrew Webster" Organization: Dataradio Inc. To: freebsd-questions@freebsd.org Date: Tue, 12 Sep 1995 12:06:12 -0500 Subject: Adaptec 2740 problem? X-Confirm-Reading-To: "Andrew Webster" X-pmrqc: 1 Priority: normal X-mailer: Pegasus Mail v3.22 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. I did however notice this in the aic7xxx.c file: #define STPWEN 0x01 /* Powered Termination */ . . . 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? 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