NetBSD Problem Report #4903

Received: (qmail 530 invoked from network); 28 Jan 1998 06:32:19 -0000
Message-Id: <199801280619.WAA02677@nobble.feral.com>
Date: Tue, 27 Jan 1998 22:19:03 -0800 (PST)
From: Matthew Jacob <mjacob@feral.com>
Reply-To: mjacob@feral.com
To: gnats-bugs@gnats.netbsd.org
Subject: using DEC's isp10X0 F/W fails to fireup correctly after boot
X-Send-Pr-Version: 3.95

>Number:         4903
>Category:       port-alpha
>Synopsis:       using DEC's isp10X0 F/W fails to fireup correctly after boot
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 27 22:35:00 +0000 1998
>Closed-Date:    Wed Jan 28 19:14:24 +0000 1998
>Last-Modified:  Wed Jan 28 19:15:38 +0000 1998
>Originator:     Matthew Jacob
>Release:        1.3B
>Organization:
Feral Software
>Environment:

On DEC systems (500s, I believe) that now have ROM f/w for the
onboard ISP SCSI chips that is of rev 5.1 or later.

>Description:

Mail from cgd:

+++From cgd@pa.dec.com  Thu Jan 22 17:57:49 1998
+++To: mjacob@nas.nasa.gov, thorpej@nas.nasa.gov
+++Cc: "Chris G. Demetriou" <cgd@pa.dec.com>
+++From: "Chris G. Demetriou" <cgd@pa.dec.com>
+++Subject: problems with isp1020 in AlphaStation 500.
+++Date: Thu, 22 Jan 98 17:57:24 -0800
+++Sender: cgd@pa.dec.com
+++...
+++So, I just got an AlphaStation 500 (333MHz), and i'm having some
+++problems with the ISP driver.  In particular, it's reporting "commands
+++really timed out!" for all post-autoconfig accesses to the disk.
+++
+++isp0 configures at kn20aa irq 12, seems to find the attached disk and
+++CD-ROM correctly, etc.
+++
+++At first I tried it with SRM v6.4-3, dated 1/24/97, which apparently
+++contained "ROM F/W Revision 5.1".  I figured it might be the
+++console, so i then tried it with the latest firmware from the public
+++FTP site, which contains SRM v6.6-2 (i didn't write down the date) and
+++causes the ISP to report ROM formware version 5.27
+++
+++I don't really have a clue as to what's going on here, and have no way
+++to test my one hypothesis: that the firmware installed by SRM is
+++incompatible with the NetBSD driver, and the firmware version tests in
+++the driver (which seem to keep the kernel's firmware from being
+++installed if the ROM firmware version is higher -- and 5.1 and 5.27
+++are higher than 2.10) cause the kernel's firmware from being
+++downloaded.
+++
+++Does that sound like a reasonable hypothesis?
+++
+++If it is, I don't understand how Jason's AlphaStation 500 works... 8-)
+++
+++
+++Any suggestions on how I can debug this?  I can currently probably
+++compile NetBSD/alpha kernels, but cannot easily net-boot, nor can I
+++make NetBSD/alpha boot floppies.
+++
+++
+++
+++chris

I dunno why this breaks, but it does. Todos el mundos is on PCI f/w
rev 2.10 (or a bit later for some of the fast posting that Qlogic
is now doing) for the 10X0 adapters. DEC has their own series. I
had been leaving it alone in terms of not downloading 2.10 on top
of 5.1, but this may not be sufficient- it has worked for Jason and
I, but hasn't for Chris. I'm speculating that DEC may have actually
changed the API between the f/w and the OS driver.

>How-To-Repeat:
	See cgd.
>Fix:
	I think chris' suggestion from separate mail is correct and to
always download f/w (he also suggested a compilation switch or some
other switches, but...)- Essentially this chipset is in late support phase,
and the amount of new f/w coming down the path is pretty limited, so to
avoid grief, I think I should just eliminate the check for f/w revs and
always download the f/w- particularly if the API between the f/w and the
OS driver has to stay matched.
>Release-Note:
>Audit-Trail:

From: "Chris G. Demetriou" <cgd@pa.dec.com>
To: mjacob@feral.com
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: port-alpha/4903: using DEC's isp10X0 F/W fails to fireup correctly after boot 
Date: Tue, 27 Jan 98 22:57:42 -0800

 > >Fix:
 > 	I think chris' suggestion from separate mail is correct and to
 > always download f/w (he also suggested a compilation switch or some
 > other switches, but...)

 Actually, there's already a driver 'flags' flag which forces the
 driver to not download the firmware.  From isp_reset():

         if ((isp->isp_fwrev >= isp->isp_mdvec->dv_fwrev) ||
             (cf_flags & 0x80) != 0) {
                 dodnld = 0;
         }

 My suggestion was (or was intended to be): "leave that flag's
 behaviour alone."  8-)



 chris

From: Matthew Jacob <mjacob@feral.com>
To: cgd@pa.dec.com
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: port-alpha/4903: using DEC's isp10X0 F/W fails to fireup correctly after boot
Date: Wed, 28 Jan 1998 00:49:21 -0800

 Actually, I *am* leaving the flag alone, but I'm also making the
 following change too:

 Index: isp.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/ic/isp.c,v
 retrieving revision 1.17
 diff -u -r1.17 isp.c
 --- isp.c	1998/01/12 09:23:26	1.17
 +++ isp.c	1998/01/28 08:49:31
 @@ -265,11 +265,15 @@
  	}

  	/*
 -	 * Download new Firmware, unless requested not to
 -	 * or not appropriate to do so.
 +	 * Download new Firmware, unless requested not to do so.
 +	 * This is made slightly trickier in some cases where the
 +	 * firmware of the ROM revision is newer than the revision
 +	 * compiled into the driver. So, where we used to compare
 +	 * versions of our f/w and the ROM f/w, now we just see
 +	 * whether we have f/w at all and whether a config flag
 +	 * has disabled our download.
  	 */
 -	if ((isp->isp_fwrev >= isp->isp_mdvec->dv_fwrev) ||
 -	    (cf_flags & 0x80) != 0) {
 +	if (isp->isp_mdvec->dv_fwlen == 0 || (cf_flags & 0x80) != 0) {
  		dodnld = 0;
  	}

State-Changed-From-To: open->closed 
State-Changed-By: mjacob 
State-Changed-When: Wed Jan 28 11:14:24 PST 1998 
State-Changed-Why:  
Fixed the bug (1.17 /usr/src/sys/dev/ic/isp.c) 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.