Skip to content

basic sgpio write support

Dan Williams linux-scsi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libsas: sgpio write supportdrivers/scsi/libsas/sas_host_smp.c include/scsi/libsas.h include/scsi/sas.h+120 -20 replies
2/3isci: fix sgpio register definitionsdrivers/scsi/isci/registers.h+4 -1180 replies
3/3isci: initial sgpio write supportdrivers/scsi/isci/host.c drivers/scsi/isci/host.h drivers/scsi/isci/init.c+87 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] basic sgpio write support

Just enough infrastructure to get raw-bitstream writes operational. With a common decode implementation in libsas. SAS-2 support is deferred as SFF-8485 remains at v0.7 [1]. Read support and the "non-raw" tx registers are deferred until the general approach is accepted.

For future patches it might be useful to register a 'sgpio' interface in sysfs for all local phys to accept IBPI commands like "identify" or "fail". Although, the driver has no way of verifying if phy0 is routed to sgpio-device0.

Until then this interface just uses the sas_host bsg device as shown in patch1.

--
Dan

[1]: http://marc.info/?l=linux-scsi&m=130693695829154&w=2

---

Dan Williams (3):
libsas: sgpio write support
isci: fix sgpio register definitions
isci: initial sgpio write support

 drivers/scsi/isci/host.c           |   69 ++++++++++++++++++++
 drivers/scsi/isci/host.h           |   15 ++++
 drivers/scsi/isci/init.c           |    3 +
 drivers/scsi/isci/registers.h      |  122 +-----------------------------------
 drivers/scsi/libsas/sas_host_smp.c |  103 ++++++++++++++++++++++++++++++
 include/scsi/libsas.h              |   11 +++
 include/scsi/sas.h                 |    8 ++
 7 files changed, 211 insertions(+), 120 deletions(-)