* LIBSAS:Issue with cascading of edge expanders
@ 2009-10-16 11:44 Srinivas Naga Venkatasatya Pasagadugula
[not found] ` <e938503f0910181843q1569ca1eo34b3af884cefb45e@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Srinivas Naga Venkatasatya Pasagadugula @ 2009-10-16 11:44 UTC (permalink / raw)
To: linux-scsi@vger.kernel.org
Cc: James.Bottomley@suse.de, jasonchu@marvell.com, ayan@marvell.com,
kewei@marvell.com
Hi,
I have some issues with cascading of edge expanders in linux kernel-2.6.31.
Test Environment:
-------------------
Linux Kernel-2.6.31.
I'm using Adaptec ASC-1045/1405 which uses the Marvell 88SE6440 chip and I am using 2.6.31-mvsas driver.
Problem Description.
--------------------
Cold boot of cascading expanders are working fine but hot plug in and plug out of the same is not working properly.
Root Cause:
-------------
After analyzing the same I have figured out the problem is in sas_expander.c (libsas). It is not working when the phy change is occurred to remove the devices or to rediscover the devices.
...... sas_expander.c....
1805 static int sas_discover_new(struct domain_device *dev, int phy_id)
1832 res = sas_ex_discover_devices(dev, phy_id);
1833 if (!res)
1834 goto out;
..........
Solution:
------------
The same issue doesn't occur after modifying the code like this.
...sas_expander.c...
1832 res = sas_ex_discover_devices(dev, phy_id);
1833 if (res)
1834 goto out;
............
Is this is the fix for the same? Any inputs are highly appreciated.
Thanks
Srinivas.
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] libsas: do not set res = 0 in sas_ex_discover_dev()
[not found] ` <9363F2E7DE9C4DBAB057D40324240F96@usish.com.cn>
@ 2009-11-06 19:12 ` James Bottomley
2009-11-06 22:36 ` jack_wang
0 siblings, 1 reply; 3+ messages in thread
From: James Bottomley @ 2009-11-06 19:12 UTC (permalink / raw)
To: jack wang
Cc: linux-scsi, 'Srinivas Naga Venkatasatya Pasagadugula',
'Tom Peng', 'andy yan', aoqingyun
On Thu, 2009-11-05 at 15:56 +0800, jack wang wrote:
> Hi, James
>
> What is the status of this this patch . we have test it Srinivas
> have confirmed it does work.
>
> Please consider to include it in your rc-fixes tree.
OK, this one never actually made it to the list. I think this was
because all the patches contained text/html attachments which the list
kills sight unseen because it thinks they're spam. You really have to
make sure you only send text plain and patch attachments for them to get
through.
For simplicity, the patch is below for list review.
James
---
From: jack wang <jack_wang@usish.com>
Subject: [PATCH] libsas: do not set res = 0 in sas_ex_discover_dev()
We should not set res to 0 in function sas_ex_discover_dev in order to let
it discover it further when wide port hotplug in .
Signed-off-by: Tom Peng <tom_peng@usish.com>
Signed-off-by: Jack Wang <jack_wang@usish.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
---
drivers/scsi/libsas/sas_expander.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c
index b338195..33cf988 100644
--- a/drivers/scsi/libsas/sas_expander.c
+++ b/drivers/scsi/libsas/sas_expander.c
@@ -960,7 +960,6 @@ static int sas_ex_discover_dev(struct domain_device *dev, int phy_id)
}
}
- res = 0;
}
return res;
--
1.6.4.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: Re: [PATCH] libsas: do not set res = 0 in sas_ex_discover_dev()
2009-11-06 19:12 ` [PATCH] libsas: do not set res = 0 in sas_ex_discover_dev() James Bottomley
@ 2009-11-06 22:36 ` jack_wang
0 siblings, 0 replies; 3+ messages in thread
From: jack_wang @ 2009-11-06 22:36 UTC (permalink / raw)
To: James Bottomley
Cc: linux-scsi, 'Srinivas Naga Venkatasatya Pasagadugula',
'Tom Peng', 'andy yan', aoqingyun
OK, this one never actually made it to the list. I think this was
because all the patches contained text/html attachments which the list
kills sight unseen because it thinks they're spam. You really have to
make sure you only send text plain and patch attachments for them to get
through.
For simplicity, the patch is below for list review.
James
[Jack] Sorry for that, We will make sure text/html things will never happen in the future.
And thanks for you help.
---
From: jack wang <jack_wang@usish.com>
Subject: [PATCH] libsas: do not set res = 0 in sas_ex_discover_dev()
We should not set res to 0 in function sas_ex_discover_dev in order to let
it discover it further when wide port hotplug in .
Signed-off-by: Tom Peng <tom_peng@usish.com>
Signed-off-by: Jack Wang <jack_wang@usish.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
---
drivers/scsi/libsas/sas_expander.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c
index b338195..33cf988 100644
--- a/drivers/scsi/libsas/sas_expander.c
+++ b/drivers/scsi/libsas/sas_expander.c
@@ -960,7 +960,6 @@ static int sas_ex_discover_dev(struct domain_device *dev, int phy_id)
}
}
- res = 0;
}
return res;
--
1.6.4.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-06 22:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-16 11:44 LIBSAS:Issue with cascading of edge expanders Srinivas Naga Venkatasatya Pasagadugula
[not found] ` <e938503f0910181843q1569ca1eo34b3af884cefb45e@mail.gmail.com>
[not found] ` <63412251C6BA4D16B1721701D56292B8@usish.com.cn>
[not found] ` <6B62480106F2B34D8404CF2FDAA4D9EF38546AA598@CHN-HCLT-EVS06.HCLT.CORP.HCL.IN>
[not found] ` <9363F2E7DE9C4DBAB057D40324240F96@usish.com.cn>
2009-11-06 19:12 ` [PATCH] libsas: do not set res = 0 in sas_ex_discover_dev() James Bottomley
2009-11-06 22:36 ` jack_wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox