Skip site navigation (1)Skip section navigation (2)
Date:               Tue, 12 Sep 1995 12:06:12 -0500
From:      "Andrew Webster" <awebster@dataradio.com>
To:        freebsd-questions@freebsd.org
Subject:         Adaptec 2740 problem?
Message-ID:  <199509121608.MAA07891@vhf.dataradio.com>

next 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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509121608.MAA07891>