From owner-freebsd-current Fri Jul 21 19:51:33 2000 Delivered-To: freebsd-current@freebsd.org Received: from amonduul.ecn.ou.edu (amonduul.ecn.ou.edu [129.15.119.201]) by hub.freebsd.org (Postfix) with ESMTP id E8CA237B5CF for ; Fri, 21 Jul 2000 19:51:30 -0700 (PDT) (envelope-from servalan!rmtodd@amonduul.ecn.ou.edu) Received: from servalan (3293 bytes) by amonduul.ecn.ou.edu via rmail with P:uucp/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) id for freebsd.org!freebsd-current; Fri, 21 Jul 2000 21:47:18 -0500 (CDT) (Smail-3.2.0.111 2000-Feb-17 #1 built 2000-Apr-4) Received: from localhost (2729 bytes) by servalan.servalan.com via sendmail with P:stdio/R:smart_host/T:uux (sender: ) (ident using unix) id for ; Fri, 21 Jul 2000 20:29:30 -0500 (CDT) (Smail-3.2.0.106 1999-Mar-31 #1 built 1999-Aug-10) Message-Id: Date: Fri, 21 Jul 2000 20:29:30 -0500 (CDT) From: rmtodd@servalan.servalan.com (Richard Todd) To: freebsd-current@freebsd.org, "George W. Dinolt" Subject: Re: (noperiph:ahc0:0:-1:-1): ... error Newsgroups: servalan.mailinglist.fbsd-current References: X-Newsreader: NN version 6.5.3 (NOV) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In servalan.mailinglist.fbsd-current you write: >I am trying to run a recent (as of today) and am seeing the following >error when I try to boot:: >(noperiph:ahc0:0:-1:-1): SCSI bus reset delivered. 0 SCBs aborted. >panic: Bogus resid sgptr value 0xbd68609 >(I copied this from the console after the boot failure, there may be >minor mistakes.) >This started happening when I started compiling kernels built from >sources cvsuped around Jul 18. >I am not sure what is causing these messages. The "noperiph" message >appears to come from xpt_print_path in /usr/src/sys/cam/cam_xpt.c while >the panic seems to be written by ahc_calc_residual in >/usr/src/sys/dev/aic7xxx/aic7xxx.c. From a quick look at the code, the >problem is not directly in the code pointed to by the messages. >I have an Adaptec 2940UW. A much older kernel reports it as 2940 Ultra SCSI adapter> with aic7880 Wide Channel A, SCSI Id=7, >16/255 SCBs. The Bios on the board is version 2.20.0 >I have 4 drives and a UMAX scanner connected to the bus. More details >available if needed. I saw something similar, but not identical, when trying to boot a -current kernel made last night. I saw the (noperiph...) message you saw. After that, the machine didn't panic, but it didn't work very well, either. It did, after a few seconds, detect the SCSI tape drive I had (sa0), but failed on detecting the SCSI disk and CDROM, repeatedly timing out and resetting the bus. Alas, I didn't have the presence of mind to write down the exact messages; I'll try to do that tonight, assuming the bug is still present in the src I'm cvsupping now. This was on an SMP box (Tyan Thunder 100GX), with an aic7895 SCSI controller, and the following three SCSI devices: sa0 at ahc0 bus 0 target 0 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 10.000MB/s transfers (10.000MHz, offset 15) Mounting root from ufs:/dev/da0s2a da0 at ahc0 bus 0 target 6 lun 0 da0: Fixed Direct Access SCSI-3 device da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled da0: 8761MB (17942584 512 byte sectors: 255H 63S/T 1116C) cd0 at ahc0 bus 0 target 1 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 20.000MB/s transfers (20.000MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Medium not present To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message