Subject: Re: SCSI disks don't spin up automatically after scsictl sdx stop
To: Havard Eidnes <>
From: Jason Thorpe <>
List: tech-kern
Date: 12/17/2005 19:26:27
On Dec 17, 2005, at 4:09 PM, Havard Eidnes wrote:

>> Found the problem. There's a typo in mesh.c, it would return  
>> status info
>> like SCSI_CHECK in xs->xs_status, but scsipi looks for it in xs- 
>> >status
>> - with the result that no one ever requested sense data.
>> With this fixed both drives spin up automatically and I guess a  
>> bunch of
>> other weirdnesses ( like occasional bogus 'drive offline' messages  
>> when
>> probing ) will just disappear.
> I suspect there's a similar bug lurking in the sii driver used on
> DECstation machines.  At least I'm experiencing a similar symptom: on
> our local 3100, the secondary drive (non-system disk) isn't spun up
> automatically by NetBSD either, requiring a manual spinning via
> scsictl and a second reboot after a power cycle...

The sii driver seems to be filling in the correct field:

         sc->sc_xs[target]->status = sc->sc_st[target].statusByte;

-- thorpej