From c0cfc79790d6a6071b50ea6c0a669b133e5e5e59 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Thu, 21 Sep 2000 17:06:45 +0000 Subject: [PATCH] Inintialize the queue index stuff from what the f/w sends back- just in case it's insane enough to not do what you tell it to. Print out (LOGINFO level) initiator ID. --- sys/dev/isp/isp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c index e477fc8c36a3..8aa1c1e6576b 100644 --- a/sys/dev/isp/isp.c +++ b/sys/dev/isp/isp.c @@ -849,19 +849,18 @@ isp_scsi_init(isp) if (mbs.param[0] != MBOX_COMMAND_COMPLETE) { return; } - isp->isp_residx = 0; + isp->isp_residx = mbs.param[5]; mbs.param[0] = MBOX_INIT_REQ_QUEUE; mbs.param[1] = RQUEST_QUEUE_LEN(isp); mbs.param[2] = DMA_MSW(isp->isp_rquest_dma); mbs.param[3] = DMA_LSW(isp->isp_rquest_dma); mbs.param[4] = 0; - mbs.param[5] = 0; isp_mboxcmd(isp, &mbs, MBLOGALL); if (mbs.param[0] != MBOX_COMMAND_COMPLETE) { return; } - isp->isp_reqidx = isp->isp_reqodx = 0; + isp->isp_reqidx = isp->isp_reqodx = mbs.param[4]; /* * Turn on Fast Posting, LVD transitions @@ -914,6 +913,8 @@ isp_scsi_channel_init(isp, channel) if (mbs.param[0] != MBOX_COMMAND_COMPLETE) { return; } + isp_prt(isp, ISP_LOGINFO, "Initiator ID is %d", sdp->isp_initiator_id); + /* * Set current per-target parameters to a safe minimum.