Returning FIS on success for CDL
Status from this message: Applied to 6.6/scsi-staging, thanks!
Get series with b4
b4 am [email protected]Versions newest first
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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | scsi: libsas: Add return_fis_on_success to sas_ata_taskdrivers/ include/ | +4 | 1 reply | |
| 2/2 | scsi: pm80xx: Set RETFIS when requested by libsasdrivers/ drivers/ drivers/ +1 more | +19 | 1 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.
| Patch | Niklas Cassel | Damien Le Moal |
|---|---|---|
| Series | R-b | |
| 1/2 | R-b | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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