Subject: Re: SCSI disks don't spin up automatically after scsictl sdx stop
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Michael Lorenz <macallan@netbsd.org>
List: tech-kern
Date: 12/17/2005 16:18:47
--Signature_Sat__17_Dec_2005_16_18_47_-0500_.HhL0EPQ=_OdZIDo
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> > For some reason I don't get any SCSI-related error messages at all
> > on the S900, all the SCSI options are the same, both kernels are
> > built from the same source tree, updated a few hours ago.
>=20
> You mean, you don't get the "Logical Unit Not Ready, Initialization
> Command Required" or similar messages ? If so, it's probably an issue
> with the mesh driver itself.

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.

have fun
Michael

--Signature_Sat__17_Dec_2005_16_18_47_-0500_.HhL0EPQ=_OdZIDo
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQ6SAt8pnzkX8Yg2nAQKgpggAnbUbVyr1lRjE6gFrI/F5ZEGMmHcMYpIv
4HG0kSJ7+9W35I2lI2h0Jhu1mSkWv+fMzxiO+GupS5lhCgRLaHjMJqwhZUbDbWCH
TlDmQeG7XuoO5EpFC6WmU0p0KTBueH+wv0L2fTewFFed5/XDsyvXQ2JM/ga5IWGt
qX5Jg9ZzKW28IrBMMAjk3FZ+G/+x7vLPbUqBrKuQkEZxubVOSlwk01QhmbC3rBEg
rvBY9bteF1bGdapipyALvRhtcH2ysxEK29BncEjp+v1bK5DPrxSZd/46Fms/yv4N
uhR0ce1N14Rwk38YAo82Fp1+rFwdE3EqszVkqOrExQhn8Vc30RiiTw==
=8yYr
-----END PGP SIGNATURE-----

--Signature_Sat__17_Dec_2005_16_18_47_-0500_.HhL0EPQ=_OdZIDo--