From owner-cvs-all Tue Sep 29 09:01:32 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA15752 for cvs-all-outgoing; Tue, 29 Sep 1998 09:01:32 -0700 (PDT) (envelope-from owner-cvs-all) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA15731; Tue, 29 Sep 1998 09:01:00 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.9.1/8.9.1/Spinner) with ESMTP id AAA06614; Wed, 30 Sep 1998 00:00:39 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199809291600.AAA06614@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Warner Losh cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/dev/aha aha.c In-reply-to: Your message of "Mon, 28 Sep 1998 23:50:22 MST." <199809290650.XAA15099@freefall.freebsd.org> Date: Wed, 30 Sep 1998 00:00:38 +0800 From: Peter Wemm Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Warner Losh wrote: > imp 1998/09/28 23:50:22 PDT > [..] > Cards tested: 1542C and 1542CF. The B and CP might work now as well, > but logistical problems precluded me from testing them this evening > (if you have jumper settings for the B card, please send me private > mail). Hmm, it still fails for my 1542CF.. If I #if 0 out the sending of the buslogic ESETUP command, it works fine (except for not doing fast scsi): [..] aha0 at 0x330-0x333 irq 11 drq 5 on isa aha0: AHA-1542CF FW Rev. E.0 (ID=45)SCSI Host Adapter, SCSI ID 7, 17 CCBs [..] changing root device to da0s1a da0 at aha0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI2 device da0: Serial Number 341561020019 da0: 5.0MB/s transfers (5.0MHz, offset 8) da0: 1042MB (2134305 512 byte sectors: 64H 32S/T 1042C) da1 at aha0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI2 device da1: Serial Number 399741110024 da1: 5.0MB/s transfers (5.0MHz, offset 8) da1: 2014MB (4124736 512 byte sectors: 64H 32S/T 2014C) da0s1: type 0xa5, start 0, end = 2134304, size 2134305 da0s1: C/H/S end 132/217/54 (1565675) != end 2134304: invalid da1s1: type 0xa5, start 0, end = 4124735, size 4124736 : OK [..] If I use the unmodified code, and boot with -v, I get this: aha0: Invalid command 0x4 .. and that's it. Without -v, silence.. Hmm.. Footnote, I added a second hard reset after the ESETUP command in aha_probe() and that also fixed it. Perhaps we should be hard resetting in on a stuck invalid command instead of a soft reset? - although this won't help aha_fetch_adapter_info() which won't retry the GET_BOARD_ID command which got lost. Cheers, -Peter