public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* 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

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