Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Sep 1995 10:19:04 -0700
From:      "Justin T. Gibbs" <gibbs@freefall.FreeBSD.org>
To:        "Andrew Webster" <awebster@dataradio.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Adaptec 2740 problem? 
Message-ID:  <199509121719.KAA06565@aslan.cdrom.com>
In-Reply-To: Your message of "Tue, 12 Sep 1995 12:06:12 CDT." <199509121608.MAA07891@vhf.dataradio.com> 

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
>
>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
===========================================



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?199509121719.KAA06565>