From owner-freebsd-bugs Wed Jan 13 13:50:38 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA07626 for freebsd-bugs-outgoing; Wed, 13 Jan 1999 13:50:38 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA07616 for ; Wed, 13 Jan 1999 13:50:36 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA24999; Wed, 13 Jan 1999 13:50:00 -0800 (PST) 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 ; 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 X-Send-Pr-Version: 3.2 Subject: kern/9474: "comcontrol rescan 0:8:0" hangs, causes other problems Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 13 13:50:00 PST 1999 >Closed-Date: >Last-Modified: >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: rev 0x03 on pci0.0.0 chip1: rev 0x01 on pci0.7.0 ahc0: 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: Removable Sequential Access SCSI-2 device da1 at ahc0 bus 0 target 1 lun 0 da1: Removable Direct Access SCSI-2 device da0 at ahc0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device changing root device to da0s2a cd0 at ahc0 bus 0 target 2 lun 0 cd0: 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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message