From trost@cloud.rain.com  Wed Jan 13 13:48:52 1999
Received: from jli.com (jli.com [199.2.111.1])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id NAA07359
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Jan 1999 13:48:52 -0800 (PST)
          (envelope-from trost@cloud.rain.com)
Received: (qmail 10887 invoked by uid 4); 13 Jan 1999 21:47:42 -0000
Received: (qmail 648 invoked by uid 236); 13 Jan 1999 21:47:01 -0000
Message-Id: <19990113214701.647.qmail@grey.cloud.rain.com>
Date: 13 Jan 1999 21:47:01 -0000
From: trost@cloud.rain.com
Reply-To: trost@cloud.rain.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: "camcontrol rescan 0:8:0" hangs, causes other problems
X-Send-Pr-Version: 3.2

>Number:         9474
>Category:       kern
>Synopsis:       "comcontrol rescan 0:8:0" hangs, causes other problems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 13 13:50:00 PST 1999
>Closed-Date:    Tue Oct 2 10:29:23 PDT 2001
>Last-Modified:  Tue Oct 02 10:29:39 PDT 2001
>Originator:     Bill Trost
>Release:        FreeBSD 3.0-CURRENT i386 -- sup'd Jan 12 1999 14:53 PST
>Organization:
Trost Computing
>Environment:

Changes to /sys/pci/ahc_pci.c (without these, boot hangs):
--- ahc_pci.c.bak	Mon Jan 11 10:24:52 1999
+++ ahc_pci.c	Mon Jan 11 10:24:54 1999
@@ -243,6 +243,11 @@
 	int	    error;
 	char	    channel;
 
+	long csize_lattime = pci_conf_read(config_id, CSIZE_LATTIME);
+	printf("csize_lattime = %lx\n", csize_lattime);
+	csize_lattime &= ~CACHESIZE;
+	pci_conf_write(config_id, CSIZE_LATTIME, csize_lattime);
+
 	if (config_id->func == 1)
 		channel = 'B';
 	else

Relevant dmesg bits:

avail memory = 30457856 (29744K bytes)
Preloaded elf kernel "kernel" at 0xf025e000.
chip0: <Intel 82439> rev 0x03 on pci0.0.0
chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.7.0
ahc0: <Adaptec 2940 Ultra SCSI adapter> rev 0x01 int a irq 7 on pci0.17.0
csize_lattime = 4004
ahc0: aic7880 Single Channel A, SCSI Id=7, 16/255 SCBs
sa0 at ahc0 bus 0 target 4 lun 0
sa0: <ARCHIVE Python 28388-XXX 4AFA> Removable Sequential Access SCSI-2 device 
da1 at ahc0 bus 0 target 1 lun 0
da1: <iomega jaz 1GB H.62> Removable Direct Access SCSI-2 device 
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST11910N 8044> Fixed Direct Access SCSI-2 device 
changing root device to da0s2a
cd0 at ahc0 bus 0 target 2 lun 0
cd0: <SONY CD-ROM CDU-76S 1.1c> Removable CD-ROM SCSI-2 device 


>Description:

Running the command hangs indefinitely.  X becomes unusable (mouse and
keyboard freeze).  Logins on other vty's take dozens of seconds. After about
60 seconds, the following messages get printed:

	Jan 13 13:24:58 grey /kernel: (probe0:ahc0:0:8:0): SCB 0x13 - timed out in datain phase, SEQADDR == 0x10b
	Jan 13 13:25:01 grey /kernel: (probe0:ahc0:0:8:0): BDR message in message buffer
	Jan 13 13:25:01 grey /kernel: (probe0:ahc0:0:8:0): SCB 0x13 - timed out in datain phase, SEQADDR == 0x10b
	Jan 13 13:25:01 grey /kernel: (probe0:ahc0:0:8:0): no longer in timeout, status = 34b
	Jan 13 13:25:01 grey /kernel: ahc0: Issued Channel A Bus Reset. 11 SCBs aborted


>How-To-Repeat:

Run "camcontrol rescan 0:8:0" on a bus that doesn't have an 8th device.

>Fix:
	
Take the spoon out of the cup.    (-:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: mjacob 
State-Changed-When: Mon Oct 1 22:25:52 PDT 2001 
State-Changed-Why:  
This is fixed now, yes? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=9474 
State-Changed-From-To: feedback->closed 
State-Changed-By: mjacob 
State-Changed-When: Tue Oct 2 10:29:23 PDT 2001 
State-Changed-Why:  
Submitter reports the problem has gone away. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=9474 
>Unformatted:
