Skip to content

libsas, libata: suspend / resume and "reset once"

Dan Williams linux-ide linux-scsi 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 3/35 patches 4 repliesIn review
  2. v1 posting 2/35 patches 1 replySuperseded
  3. v1 posting 1/36 patches 4 repliesSuperseded

Patches in v1 posting 3/3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5libata: reset onceDocumentation/kernel-parameters.txt drivers/ata/libata-core.c drivers/ata/libata-eh.c +1 more+7 -01 reply
2/5libata: export ata_port suspend/resume infrastructure for sasdrivers/ata/libata-core.c include/linux/libata.h+57 -121 reply
3/5libsas: suspend / resume supportdrivers/scsi/libsas/sas_ata.c drivers/scsi/libsas/sas_discover.c drivers/scsi/libsas/sas_dump.c +7 more+335 -190 replies
4/5isci: implement suspend/resume supportdrivers/scsi/isci/host.c drivers/scsi/isci/host.h drivers/scsi/isci/init.c+59 -30 replies
5/5libsas, ipr: cleanup ata_host flags initialization via ata_host_initdrivers/ata/libata-core.c drivers/scsi/ipr.c drivers/scsi/libsas/sas_ata.c +1 more+5 -162 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchJacek DaneckiMaciej PatelczykJeff GarzikBrian King
1/5A-b
2/5R-b A-b
3/5R-b T-b
4/5
5/5A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [resend PATCH 0/5] libsas, libata: suspend / resume and "reset once"

Hi Jeff,

Let me know if any of these need reworking, otherwise I believe James is waiting on your ack to take them (well all except patch1) through scsi.git.

--
Dan

Original description:
Set4 of 5 patchsets to update scsi, libsas, and libata in support of the isci driver.

Let libsas hook into the generic suspend resume infrastructure in libata, and provide a common suspend/resume implementation for lldds to reuse.

"Reset once" is not part of the suspend/resume work. But it is relevant to libsas users who need to wait for domain-wide ata error recovery and want to limit the effort for known well-behaved devices.

These have been in -next for the past couple kernel cycles.

---

Artur Wojcik (1):
isci: implement suspend/resume support

Dan Williams (4):
libata: reset once
libata: export ata_port suspend/resume infrastructure for sas
libsas: suspend / resume support
libsas, ipr: cleanup ata_host flags initialization via ata_host_init

 Documentation/kernel-parameters.txt |    3 +
 drivers/ata/libata-core.c           |   69 +++++++++++++++++++--------
 drivers/ata/libata-eh.c             |    2 +
 drivers/scsi/ipr.c                  |    3 -
 drivers/scsi/isci/host.c            |    2 -
 drivers/scsi/isci/host.h            |    2 -
 drivers/scsi/isci/init.c            |   58 ++++++++++++++++++++++
 drivers/scsi/libsas/sas_ata.c       |   91 +++++++++++++++++++++++++++++++++--
 drivers/scsi/libsas/sas_discover.c  |   69 +++++++++++++++++++++++----
 drivers/scsi/libsas/sas_dump.c      |    1 
 drivers/scsi/libsas/sas_event.c     |    4 +-
 drivers/scsi/libsas/sas_init.c      |   90 ++++++++++++++++++++++++++++++++++-
 drivers/scsi/libsas/sas_internal.h  |    1 
 drivers/scsi/libsas/sas_phy.c       |   21 ++++++++
 drivers/scsi/libsas/sas_port.c      |   52 ++++++++++++++++++++
 include/linux/libata.h              |   15 +++++-
 include/scsi/libsas.h               |   20 ++++++--
 include/scsi/sas_ata.h              |   10 ++++
 18 files changed, 463 insertions(+), 50 deletions(-)