summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1997-08-31 19:35:52 +0000
committerse <se@FreeBSD.org>1997-08-31 19:35:52 +0000
commit83daf48fe321b9ac380d1b68b8b473b02fad2b06 (patch)
tree14c619de4794f93f5d47a53096dc6174b59b1e96 /sys/pci
parent80ebcd3b3f5086eeb2efd0098cea319c06910790 (diff)
downloadFreeBSD-src-83daf48fe321b9ac380d1b68b8b473b02fad2b06.zip
FreeBSD-src-83daf48fe321b9ac380d1b68b8b473b02fad2b06.tar.gz
Fix problem with early revision 53c825a and 53c875 chips, which
could cause a solid system lockup in the driver attach: These chips do not abort an access to the internal SRAM, when the driver set the software reset bit in the istat register. But the chip will never acknowledge the requested PCI bus transfer in the situation, causing an infinite wait and a lockout of other bus-masters. The problem has been reported for rev 0x11 of the 53c825a and rev 0x01 of the 53c875. Revisions 0x13 of the 53c825a and 0x03 of the 53c875 are known to support SRAM accesses, even in the software reset state.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/ncr.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index ad500f2..e642f3e 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncr.c,v 1.104 1997/08/23 21:53:47 se Exp $
+** $Id: ncr.c,v 1.105 1997/08/23 22:01:49 se Exp $
**
** Device driver for the NCR 53C810 PCI-SCSI-Controller.
**
@@ -1340,7 +1340,7 @@ static void ncr_attach (pcici_t tag, int unit);
static char ident[] =
- "\n$Id: ncr.c,v 1.104 1997/08/23 21:53:47 se Exp $\n";
+ "\n$Id: ncr.c,v 1.105 1997/08/23 22:01:49 se Exp $\n";
static const u_long ncr_version = NCR_VERSION * 11
+ (u_long) sizeof (struct ncb) * 7
@@ -3320,9 +3320,6 @@ static ncr_chip ncr_chip_table[] = {
FE_WIDE|FE_ERL|FE_BOF}
,
{NCR_825_ID, 0x10, "ncr 53c825a fast10 wide scsi", 7, 8, 4,
- FE_WIDE|FE_CACHE_SET|FE_DFS|FE_LDSTR|FE_PFEN/*|FE_RAM*/}
- ,
- {NCR_825_ID, 0x13, "ncr 53c825a fast10 wide scsi", 7, 8, 4,
FE_WIDE|FE_CACHE_SET|FE_DFS|FE_LDSTR|FE_PFEN|FE_RAM}
,
{NCR_860_ID, 0x00, "ncr 53c860 fast20 scsi", 4, 8, 5,
@@ -4901,6 +4898,7 @@ void ncr_init (ncb_p np, char * msg, u_long code)
OUTB (nc_istat, SRST);
DELAY (1000);
+ OUTB (nc_istat, 0);
/*
** Message.
OpenPOWER on IntegriCloud