Subject: Re: Heads up: new ahc driver committed
To: Frank van der Linden <fvdl@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: current-users
Date: 04/21/2003 18:11:32
On Sun, Apr 20, 2003 at 11:12:16PM +0200, Frank van der Linden wrote:
> On Sun, Apr 20, 2003 at 10:13:48PM +0200, Manuel Bouyer wrote:
> > Couldn't you do it at attach time ? Doing it a first access defeats the
> > SCSI_DELAY delay before probe.
> > Most others adapters do (or at last initiate) the reset at attach time.
> 
> What I would like to see, is that the scsipi layer does the reset.
> I.e. that scsibus_config() uses a new ADAPTER_REQ_BUS_RESET request
> to reset a specified channel, then waits SCSI_DELAY seconds, and
> then starts probing.
> 
> Something like:
> 
> 	* issue new req ADAPTER_REQ_GET_PARAMS to channel, which may
> 	  contain things like "should we reset this channel or not",
> 	  and perhaps other info

These infos could be passed by the HBA when it attaches the scsibus

> 
> 	* if reset is wanted, issue ADAPTER_REQ_BUS_RESET

This ioctl already exists, it's SCBUSIORESET.
But I still can't see what's wrong with the adapter resetting the bus
at attach time if wanted.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--