From owner-freebsd-stable Fri May 14 15:46: 0 1999 Delivered-To: freebsd-stable@freebsd.org Received: from germanium.xtalwind.net (germanium.xtalwind.net [205.160.242.5]) by hub.freebsd.org (Postfix) with ESMTP id BC93A14CB6 for ; Fri, 14 May 1999 15:45:55 -0700 (PDT) (envelope-from jack@germanium.xtalwind.net) Received: from localhost (jack@localhost) by germanium.xtalwind.net (8.9.3/8.9.3) with ESMTP id SAA56515; Fri, 14 May 1999 18:44:57 -0400 (EDT) Date: Fri, 14 May 1999 18:44:57 -0400 (EDT) From: jack To: Warner Losh Cc: freebsd-stable@FreeBSD.ORG Subject: Found a Fix (was: Is aha broken?) In-Reply-To: <199905140459.WAA31457@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I installed 3.2-19990514-BETA onto another box today and ran into the same thing. Waiting 15 seconds for SCSI devices to settle aha0: ahafetchtransinfo - Inquire Setup Info Failed (probe1:aha0:0:4:4): CCB 0xc3d25508 - timed out (probe1:aha0:0:4:4): CCB 0xc3d25508 - timed out aha0: No longer in timeout sa0 at aha0 bus 0 target 4 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 3.333MB/s transfers (3.333MHz, offset 8) changing root device to da0s1a da0 at aha0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 3.300MB/s transfers da0: 1006MB (2061108 512 byte sectors: 64H 32S/T 1006C) Sticking printfs into aha.c showed that before before the failure message sa0 was being queried first and succeeding then da0 was queried and failed. Removing the tape drive from the chain eliminated the problem. Adding a CD, with the tape and hard drive made it error twice. My PPro has a tape, CD, and two hard drives on the 1542 and it errored twice. I put a printf before the call to aha_cmd in ahafetchtransinfo and the errors went away. The all powerful DELAY(10000) fixes it for both of my boxes. :) *** aha.c.orig Thu May 13 03:00:34 1999 --- aha.c Fri May 14 18:01:41 1999 *************** *** 1777,1782 **** --- 1777,1783 ---- * the sync info for older models. */ param = sizeof(setup_info); + DELAY(10000); error = aha_cmd(aha, AOP_INQUIRE_SETUP_INFO, ¶m, /*paramlen*/1, (u_int8_t*)&setup_info, sizeof(setup_info), DEFAULT_CMD_TIMEOUT); -------------------------------------------------------------------------- Jack O'Neill Systems Administrator / Systems Analyst jack@germanium.xtalwind.net Crystal Wind Communications, Inc. Finger jack@germanium.xtalwind.net for my PGP key. PGP Key fingerprint = F6 C4 E6 D4 2F 15 A7 67 FD 09 E9 3C 5F CC EB CD enriched, vcard, HTML messages > /dev/null -------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message