From owner-freebsd-scsi Fri Sep 27 15:14:53 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA29060 for freebsd-scsi-outgoing; Fri, 27 Sep 1996 15:14:53 -0700 (PDT) Received: from irz301.inf.tu-dresden.de ([141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA28998 for ; Fri, 27 Sep 1996 15:14:46 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id AAA24714; Sat, 28 Sep 1996 00:13:46 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA16508; Sat, 28 Sep 1996 00:13:45 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id XAA12175; Fri, 27 Sep 1996 23:50:45 +0200 (MET DST) From: J Wunsch Message-Id: <199609272150.XAA12175@uriah.heep.sax.de> Subject: Re: Two NCR adaptaters and spin up. To: freebsd-scsi@freebsd.org Date: Fri, 27 Sep 1996 23:50:45 +0200 (MET DST) Cc: elrond@imladris.frmug.fr.net (Bertrand Petit) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199609250048.CAA29302@imladris.frmug.fr.net> from Bertrand Petit at "Sep 25, 96 02:48:40 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Bertrand Petit wrote: > Boths of the SCSI busses are loaded with hard drives with the > auto spinup feature disabled. Upon system powerup, devices on the > first bus are spined up by the NCR bios: the second adaptater is > leaved aside. > > I decided, to correct this to add sinup code in the scsi code. > I've choosen to add this in sd.c sd_get_parans() function. I may be > wrong at that point. There was already code to do this, but slightly at the wrong location (a few lines too low). Have a look at the `od' driver from -current (make a side-by-side comparision), the spinup code does work there. I'm using it all the time (the `od' driver has an option to spindown the drive after unmounting the filesystem). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)