All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] libsas: add support for port multiplier
@ 2014-04-24 13:27 Xiangliang Yu
  2014-05-02 15:36 ` Tejun Heo
  0 siblings, 1 reply; 3+ messages in thread
From: Xiangliang Yu @ 2014-04-24 13:27 UTC (permalink / raw)
  To: tj, JBottomley
  Cc: dan.j.williams, todd.e.brandt, lukasz.dorau, linux-ide,
	linux-kernel, linux-scsi

This patch set will support SATA port multiplier(PM) in LIBSAS. 

LIBSAS is need to implement several key handling to support SATA PM:
First,low level driver notify libsas that SATA PM is attached to HBA port.
Then, LIBSAS will need to schedule SATA PMP error handler to scan SATA device
that is attached to PM, so we must implemet port softreset and PMP reset 
handling.
If find SATA devices, we should add the devices into SAS transport layer.
In order to find SAS domain device we must implemet device type transformation
: scsi device -> (port number) -> ata device -> domain device. Then, we can
execute IO operation.

In these patches, patch 1 is change SATA error handler.
And patch 2 will add SATA device into SAS layer and implement device type
transformation. Patch 3 implement SATA functional interface in mvsas.

 drivers/ata/libata-scsi.c           |   48 +++-
 drivers/scsi/libsas/sas_ata.c       |  584 ++++++++++++++++++++++++++++++++++-
 drivers/scsi/libsas/sas_discover.c  |   25 ++-
 drivers/scsi/libsas/sas_internal.h  |    7 +
 drivers/scsi/libsas/sas_phy.c       |    1 +
 drivers/scsi/libsas/sas_port.c      |   12 +
 drivers/scsi/libsas/sas_scsi_host.c |   12 +-
 drivers/scsi/mvsas/mv_64xx.c        |    2 +
 drivers/scsi/mvsas/mv_94xx.c        |   19 ++
 drivers/scsi/mvsas/mv_defs.h        |    1 +
 drivers/scsi/mvsas/mv_init.c        |    7 +
 drivers/scsi/mvsas/mv_sas.c         |  246 +++++++++++++++-
 drivers/scsi/mvsas/mv_sas.h         |    9 +
 include/scsi/libsas.h               |   19 +-
 include/scsi/sas_ata.h              |    5 +
 15 files changed, 970 insertions(+), 27 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/3] libsas: add support for port multiplier
  2014-04-24 13:27 [PATCH 0/3] libsas: add support for port multiplier Xiangliang Yu
@ 2014-05-02 15:36 ` Tejun Heo
  2014-05-02 15:37   ` Dan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Tejun Heo @ 2014-05-02 15:36 UTC (permalink / raw)
  To: Xiangliang Yu
  Cc: JBottomley, dan.j.williams, todd.e.brandt, lukasz.dorau,
	linux-ide, linux-kernel, linux-scsi

On Thu, Apr 24, 2014 at 09:27:03PM +0800, Xiangliang Yu wrote:
> This patch set will support SATA port multiplier(PM) in LIBSAS. 
> 
> LIBSAS is need to implement several key handling to support SATA PM:
> First,low level driver notify libsas that SATA PM is attached to HBA port.
> Then, LIBSAS will need to schedule SATA PMP error handler to scan SATA device
> that is attached to PM, so we must implemet port softreset and PMP reset 
> handling.
> If find SATA devices, we should add the devices into SAS transport layer.
> In order to find SAS domain device we must implemet device type transformation
> : scsi device -> (port number) -> ata device -> domain device. Then, we can
> execute IO operation.
> 
> In these patches, patch 1 is change SATA error handler.
> And patch 2 will add SATA device into SAS layer and implement device type
> transformation. Patch 3 implement SATA functional interface in mvsas.

Please properly thread the patchset from the next posting.

Dan, can you please take a look at this?

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/3] libsas: add support for port multiplier
  2014-05-02 15:36 ` Tejun Heo
@ 2014-05-02 15:37   ` Dan Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Williams @ 2014-05-02 15:37 UTC (permalink / raw)
  To: Tejun Heo
  Cc: Xiangliang Yu, James Bottomley, Todd E Brandt, Lukasz Dorau,
	IDE/ATA development list, linux-kernel, linux-scsi

On Fri, May 2, 2014 at 8:36 AM, Tejun Heo <tj@kernel.org> wrote:
> On Thu, Apr 24, 2014 at 09:27:03PM +0800, Xiangliang Yu wrote:
>> This patch set will support SATA port multiplier(PM) in LIBSAS.
>>
>> LIBSAS is need to implement several key handling to support SATA PM:
>> First,low level driver notify libsas that SATA PM is attached to HBA port.
>> Then, LIBSAS will need to schedule SATA PMP error handler to scan SATA device
>> that is attached to PM, so we must implemet port softreset and PMP reset
>> handling.
>> If find SATA devices, we should add the devices into SAS transport layer.
>> In order to find SAS domain device we must implemet device type transformation
>> : scsi device -> (port number) -> ata device -> domain device. Then, we can
>> execute IO operation.
>>
>> In these patches, patch 1 is change SATA error handler.
>> And patch 2 will add SATA device into SAS layer and implement device type
>> transformation. Patch 3 implement SATA functional interface in mvsas.
>
> Please properly thread the patchset from the next posting.
>
> Dan, can you please take a look at this?
>

Yeah, it's on my plate to look at...

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-02 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-24 13:27 [PATCH 0/3] libsas: add support for port multiplier Xiangliang Yu
2014-05-02 15:36 ` Tejun Heo
2014-05-02 15:37   ` Dan Williams

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.