Subject: slow hpib disks...
To: None <port-hp300@sun-lamp.cs.berkeley.edu>
From: Jason Thorpe <thorpej@cs.orst.edu>
List: port-hp300
Date: 08/08/1994 19:20:02
Folks...

It seems that there is a slight problem with autoconf.c not quite always
finding old hpib disks that are slow to respond.  The way the hp bootroms
handle this is simply probe again.  This seems to work for us, too.

I supposed that we just had a flaky disk, and made a local change to the 
source.  However, I just got 9 more 7958's from HP Corvallis, and 4 of them
exhibit the same behavior.  So, I'm wondering just how many disks there
are out there that have this 'problem'.  Well, the following patch makes
it work A-OK...

-----cut here-----

*** autoconf.c.orig	Mon Aug  8 19:13:13 1994
--- autoconf.c	Sat Aug  6 05:34:29 1994
***************
*** 451,458 ****
  				       hd->hp_driver->d_name,
  				       hd->hp_unit, hd->hp_slave);
  #endif
! 
  			if ((*hd->hp_driver->d_init)(hd)) {
  #ifdef DEBUG
  				if (acdebug)
  					printf("found\n");
--- 451,462 ----
  				       hd->hp_driver->d_name,
  				       hd->hp_unit, hd->hp_slave);
  #endif
! #ifdef SPAM
! 			if ((*hd->hp_driver->d_init)(hd)
! 			    || (*hd->hp_driver->d_init)(hd)) {
! #else
  			if ((*hd->hp_driver->d_init)(hd)) {
+ #endif
  #ifdef DEBUG
  				if (acdebug)
  					printf("found\n");

-----cut here-----

We, of course, add this to our config file:

options		SPAM

Well, do with it as you wish...It's harmless enough...And ensures that old
disks will autoconfig...

Later...

-----------------------------------------------------------------------------
Jason R. Thorpe                thorpej@cs.orst.edu                   754-1554
OSU CS Support                    CSWest Room 12                     737-5567
                           CSOS NetBSD/Symmetry Project

------------------------------------------------------------------------------