From: Michael Reed <mdr@sgi.com>
To: "Moore, Eric" <Eric.Moore@lsi.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
"Prakash, Sathya" <Sathya.Prakash@lsi.com>,
Jeremy Higdon <jeremy@sgi.com>, Hannes Reinecke <hare@suse.de>
Subject: Re: [PATCH 1/1] Fusion SAS and Fibre Channel: target missing after resetting external raid
Date: Thu, 13 Mar 2008 14:53:56 -0500 [thread overview]
Message-ID: <47D98654.1030708@sgi.com> (raw)
In-Reply-To: <664A4EBB07F29743873A87CF62C26D70D5544A@NAMAIL4.ad.lsil.com>
Moore, Eric wrote:
>>On Tuesday, March 04, 2008 9:51 AM, Michael Reed wrote:
<snip>
>>
>> The fix is simple. Fusion SAS and Fibre Channel (subject to
>> same bug) should just leave "this_id" initialized to "-1".
>>
>> Applies to 2.6.25-rc3-git5.
>>
>> Signed-off-by: Michael Reed <mdr@sgi.com>
>>
>> --
>>
<snip>
>
> This looks good. I had deleted setting this_id in mptsas internal
> sources long ago. In addition to this change, we need to fix
> mptscsih_slave_configure so it doesn't set the queue depth to 1 for SAS
> protocal when sdev->id is greater than sh->max_id. The sas transport
> layer assigns the target ids, incrementing with each hotplug add, with
> large topologies, it doesn't take long to hit this threshold.
>
> Eric
Adjusting the patch to reflect Eric's comments. The change WRT
max_id is from Hannes. FC should also be subject to the same issue.
Signed-off-by: Michael Reed <mdr@sgi.com>
--- gitu/drivers/message/fusion/mptfc.c 2008-01-24 14:58:37.000000000 -0800
+++ git/drivers/message/fusion/mptfc.c 2008-03-13 12:37:52.176015612 -0700
@@ -1238,8 +1238,6 @@ mptfc_probe(struct pci_dev *pdev, const
sh->max_id = ioc->pfacts->MaxDevices;
sh->max_lun = max_lun;
- sh->this_id = ioc->pfacts[0].PortSCSIID;
-
/* Required entry.
*/
sh->unique_id = ioc->id;
--- gitu/drivers/message/fusion/mptsas.c 2008-03-10 13:23:46.000000000 -0700
+++ git/drivers/message/fusion/mptsas.c 2008-03-13 12:38:01.912440308 -0700
@@ -3181,8 +3181,6 @@ mptsas_probe(struct pci_dev *pdev, const
sh->transportt = mptsas_transport_template;
- sh->this_id = ioc->pfacts[0].PortSCSIID;
-
/* Required entry.
*/
sh->unique_id = ioc->id;
--- gitu/drivers/message/fusion/mptscsih.c 2008-03-10 13:20:30.000000000 -0700
+++ git/drivers/message/fusion/mptscsih.c 2008-03-13 12:38:38.070017332 -0700
@@ -2442,12 +2442,6 @@ mptscsih_slave_configure(struct scsi_dev
ioc->name, sdev->sdtr, sdev->wdtr,
sdev->ppr, sdev->inquiry_len));
- if (sdev->id > sh->max_id) {
- /* error case, should never happen */
- scsi_adjust_queue_depth(sdev, 0, 1);
- goto slave_configure_exit;
- }
-
vdevice->configured_lun = 1;
mptscsih_change_queue_depth(sdev, MPT_SCSI_CMD_PER_DEV_HIGH);
@@ -2461,8 +2455,6 @@ mptscsih_slave_configure(struct scsi_dev
ioc->name, vtarget->negoFlags, vtarget->maxOffset,
vtarget->minSyncFactor));
-slave_configure_exit:
-
dsprintk(ioc, printk(MYIOC_s_DEBUG_FMT
"tagged %d, simple %d, ordered %d\n",
ioc->name,sdev->tagged_supported, sdev->simple_tags,
next prev parent reply other threads:[~2008-03-13 19:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-04 16:50 [PATCH 1/1] Fusion SAS and Fibre Channel: target missing after resetting external raid Michael Reed
2008-03-04 17:22 ` Moore, Eric
2008-03-13 19:53 ` Michael Reed [this message]
2008-03-20 22:46 ` Moore, Eric
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47D98654.1030708@sgi.com \
--to=mdr@sgi.com \
--cc=Eric.Moore@lsi.com \
--cc=Sathya.Prakash@lsi.com \
--cc=hare@suse.de \
--cc=jeremy@sgi.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox