How to force a reset of a device (disk) in an enclosre slot
(PATCH)
Kenneth D. Merry
ken at freebsd.org
Tue Sep 25 15:02:51 UTC 2012
On Mon, Sep 24, 2012 at 17:26:48 +0000, John wrote:
> Hi Ken,
>
> The following patch fixes the problem:
>
> Index: mps_sas.c
> ===================================================================
> --- mps_sas.c (revision 240879)
> +++ mps_sas.c (working copy)
> @@ -918,7 +918,7 @@
> cpi->hba_eng_cnt = 0;
> cpi->max_target = sassc->sc->facts->MaxTargets - 1;
> cpi->max_lun = 255;
> - cpi->initiator_id = 255;
> + cpi->initiator_id = sassc->sc->facts->MaxTargets;
> strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
> strncpy(cpi->hba_vid, "LSILogic", HBA_IDLEN);
> strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
>
>
> I simply set the id to the value after the last possible target
> for the card. Does that seem reasonable to you?
Ahh, good catch!
>
> If you don't mind, I'll commit this if there are no objections.
Sure, go ahead and commit it.
> Thanks to you and others for pointing me in the right direction :-)
No problem, sorry for dropping the ball on looking into this one. But, I'm
glad you found it!
Ken
--
Kenneth Merry
ken at FreeBSD.ORG
More information about the freebsd-scsi
mailing list