Skip to content

Initial SMR drive support

Hannes Reinecke linux-ide linux-scsi 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 6 repliesIn review
  2. v34 patches 5 repliesSuperseded
  3. v24 patches 8 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches7 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4libata: consolidate ata_dev_classify()drivers/ata/libahci.c drivers/ata/libata-core.c drivers/ata/libata-sff.c +11 more+44 -965 replies
2/4libata: Implement ATA_DEV_ZACdrivers/ata/libata-core.c drivers/ata/libata-eh.c drivers/ata/libata-scsi.c +2 more+27 -120 replies
3/4libata-scsi: Update SATL for ZAC drivesdrivers/ata/libata-scsi.c+24 -11 reply
4/4sd: Optionally attach to ZBC devicesdrivers/scsi/sd.c+19 -60 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCHv4 0/4] Initial SMR drive support

This is a first stab at implementing SMR support. The powers that be decided to call the ATA implementation 'ZAC' (zoned access commands), and the SCSI implementation 'ZBC' (zoned block commands).

This is just basic enablement to get ZAC and ZBC drives handled correctly.
The first three patches update the libata SATL to handle ZAC devices correctly, and the last patch updates the 'sd' to work correctly with ZBC devices.
The 'sd' driver will not automatically bind to ZBC devices; for testing purposes I have added a module parameter 'attach_zbc' to the 'sd' driver. This allows for easy testing of ZBC devices.

None of the specific commands like 'report zones' or 'reset write pointer' have been implemented yet as the actual format is still not finalized.

This patch is made against the core-for-3.17 tree from hch. Changes to v3:
- Remove setting of HAW_ZBC flag

Hannes Reinecke (4):
libata: consolidate ata_dev_classify()
libata: Implement ATA_DEV_ZAC
libata-scsi: Update SATL for ZAC drives
sd: Optionally attach to ZBC devices

 drivers/ata/libahci.c               | 11 +++----
 drivers/ata/libata-core.c           | 34 +++++++++++++-------
 drivers/ata/libata-eh.c             |  7 +++--
 drivers/ata/libata-scsi.c           | 30 ++++++++++++++++--
 drivers/ata/libata-sff.c            |  2 +-
 drivers/ata/libata-transport.c      |  1 +
 drivers/ata/sata_fsl.c              | 11 +++----
 drivers/ata/sata_inic162x.c         |  2 +-
 drivers/ata/sata_sil24.c            |  2 +-
 drivers/scsi/aic94xx/aic94xx_task.c | 10 +++---
 drivers/scsi/isci/request.c         |  4 +--
 drivers/scsi/libsas/sas_ata.c       | 63 +++++--------------------------------
 drivers/scsi/mvsas/mv_sas.c         |  4 +--
 drivers/scsi/pm8001/pm8001_hwi.c    |  2 +-
 drivers/scsi/pm8001/pm80xx_hwi.c    |  2 +-
 drivers/scsi/sd.c                   | 25 +++++++++++----
 include/linux/libata.h              |  8 +++--
 include/scsi/libsas.h               | 11 ++-----
 18 files changed, 114 insertions(+), 115 deletions(-)
Signature · 1 line
1.7.12.4