Skip to content

Returning FIS on success for CDL

Igor Pylypiv linux-scsi 1 version Applied

Status from this message: Applied to 6.6/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 5 repliesApplied

Changes in v2 from the cover letter

- Dropped the ata_qc_has_cdl() helper
- Changed the condition when return_fis_on_success is getting set from "qc->flags & ATA_QCFLAG_HAS_CDL" to "qc->flags & ATA_QCFLAG_RESULT_TF". The latter is more generic solution that works for non-CDL use cases as well.
- Updated the retfis setting code in pm80xx to avoid potential compiler issues with single bit fields.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2scsi: libsas: Add return_fis_on_success to sas_ata_taskdrivers/scsi/libsas/sas_ata.c include/scsi/libsas.h+4 -01 reply
2/2scsi: pm80xx: Set RETFIS when requested by libsasdrivers/scsi/pm8001/pm8001_hwi.c drivers/scsi/pm8001/pm8001_hwi.h drivers/scsi/pm8001/pm80xx_hwi.c +1 more+19 -181 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNiklas CasselDamien Le Moal
SeriesR-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Returning FIS on success for CDL

This patch series plumbs libata's request for a result taskfile (ATA_QCFLAG_RESULT_TF) through libsas to pm80xx LLDD. Other libsas LLDDs can start using the newly added return_fis_on_success as well, if needed.

For Command Duration Limits policy 0xD (command completes without an error) libata needs FIS in order to detect the ATA_SENSE bit and read the Sense Data for Successful NCQ Commands log (0Fh). pm80xx HBAs do not return FIS on success by default, hence, the driver is updated to set the RETFIS bit (Return FIS on good completion) when requested by libsas.

Changes since v1:
- Dropped the ata_qc_has_cdl() helper
- Changed the condition when return_fis_on_success is getting set from "qc->flags & ATA_QCFLAG_HAS_CDL" to "qc->flags & ATA_QCFLAG_RESULT_TF". The latter is more generic solution that works for non-CDL use cases as well.
- Updated the retfis setting code in pm80xx to avoid potential compiler issues with single bit fields.

Igor Pylypiv (2):
scsi: libsas: Add return_fis_on_success to sas_ata_task
scsi: pm80xx: Set RETFIS when requested by libsas

 drivers/scsi/libsas/sas_ata.c    |  3 +++
 drivers/scsi/pm8001/pm8001_hwi.c | 11 ++++++++---
 drivers/scsi/pm8001/pm8001_hwi.h |  2 +-
 drivers/scsi/pm8001/pm80xx_hwi.c | 17 ++++++++++-------
 drivers/scsi/pm8001/pm80xx_hwi.h |  2 +-
 include/scsi/libsas.h            |  1 +
 6 files changed, 24 insertions(+), 12 deletions(-)
Signature · 1 line
2.42.0.rc1.204.g551eb34607-goog