Skip to contentSkip to conversation

ata changes for 6.11-rc1

GIT PULL Merged Niklas Cassel 2 participants 2 messages Jul 16, 2024 – Jul 17, 2024 libata

lore
Share & tools
lore

Niklas Cassel

author maintainer
#0 lore raw

Linus,

The following changes since commit eeb25a09c5e0805d92e4ebd12c4b0ad0df1b0295:

ata: ahci: Clean up sysfs file on error (2024-06-30 22:23:39 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux tags/ata-6.11-rc1

for you to fetch changes up to 6739fad42af2e5eb87417283278a13a57f69c0de:

dt-bindings: ata: ahci-fsl-qoriq: add fsl,ls1046a-ahci and fsl,ls1012a-ahci (2024-07-12 22:54:33 +0200)

----------------------------------------------------------------
ata changes for 6.11-rc1

- ATA PASS-THROUGH sense data cleanups and fixes. (from Igor Pylypiv) Highlights:

Store the sense data for ATA PASS-THROUGH commands at the correct offset in the sense buffer when using fixed format sense data.

Cleanup the logic related to generating sense data for PASS-THROUGH commands. Generating sense data for PASS-THROUGH commands would overwrite any eventual (real) sense data received from the device.

Honor the D_SENSE bit when generating sense data for PASS-THROUGH commands. (The D_SENSE bit can be set by the user, and determines if the returned sense data should be in fixed format or descriptor format.)

- ata port allocation cleanups. (from me)
Highlights:

Assign the ata port print_id at port allocation time, such that the ata_port_* print functions can be used earlier in the init call chain.

Change the ata port port print_id to use ida_alloc(), such that print_ids will get reused on rmmod + modprobe, instead of being incremented indefinitely.

Remove wrappers that only existed in order to export the internal libata functions which they wrapped, and instead export the libata functions directly.

- Update SATA_MOBILE_LPM_POLICY Kconfig default to med_power_with_dipm. Using this default was not always a good idea before, because it would break hot plug support. However, with LPM changes in recent kernels, a port marked as external will not enable LPM (in order to not break hot plug), so it is now safe to change the default value of this Kconfig. All major Linux distros have had SATA_MOBILE_LPM_POLICY set to med_power_with_dipm for quite a long time. (from Mario Limonciello)

- Convert ahci-fsl-qoriq device tree binding to yaml format. (from Frank Li)

----------------------------------------------------------------
Frank Li (2):
dt-bindings: ata: ahci-fsl-qoriq: convert to yaml format
dt-bindings: ata: ahci-fsl-qoriq: add fsl,ls1046a-ahci and fsl,ls1012a-ahci

Igor Pylypiv (7):
ata: libata-scsi: Fix offsets for the fixed format sense data
ata: libata-scsi: Do not overwrite valid sense data when CK_COND=1
ata: libata-scsi: Honor the D_SENSE bit for CK_COND=1 and no error
ata: libata-scsi: Remove redundant sense_buffer memsets
ata: libata-scsi: Do not pass ATA device id to ata_to_sense_error()
ata: libata-core: Set ATA_QCFLAG_RTF_FILLED in fill_result_tf()
ata: libata-scsi: Check ATA_QCFLAG_RTF_FILLED before using result_tf

Mario Limonciello (1):
ata: Kconfig: Update SATA_MOBILE_LPM_POLICY default to med_power_with_dipm

Niklas Cassel (10):
Merge remote-tracking branch 'libata/for-6.10-fixes' into for-6.11 ata,scsi: Remove wrappers ata_sas_tport_{add,delete}()
ata: libata: Remove unused function declaration for ata_scsi_detect()
ata: libata-core: Remove support for decreasing the number of ports
ata: libata-sata: Remove superfluous assignment in ata_sas_port_alloc()
ata: libata-core: Remove local_port_no struct member
ata: libata: Assign print_id at port allocation time
ata: libata-core: Reuse available ata_port print_ids ata,scsi: Remove wrapper ata_sas_port_alloc()
ata: ahci: Add debug print for external port

 .../devicetree/bindings/ata/ahci-fsl-qoriq.txt     |  21 ---
 .../devicetree/bindings/ata/fsl,ahci.yaml          |  64 +++++++
 drivers/ata/Kconfig                                |   2 +-
 drivers/ata/ahci.c                                 |   4 +-
 drivers/ata/libahci.c                              |  12 +-
 drivers/ata/libata-core.c                          |  49 +++--
 drivers/ata/libata-sata.c                          |  49 -----
 drivers/ata/libata-scsi.c                          | 209 ++++++++++++---------
 drivers/ata/libata-transport.c                     |   5 +-
 drivers/ata/libata-transport.h                     |   3 -
 drivers/ata/libata.h                               |   2 -
 drivers/scsi/libsas/sas_ata.c                      |  22 +--
 drivers/scsi/libsas/sas_discover.c                 |   2 +-
 include/linux/libata.h                             |  11 +-
 14 files changed, 230 insertions(+), 225 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/ata/ahci-fsl-qoriq.txt
 create mode 100644 Documentation/devicetree/bindings/ata/fsl,ahci.yaml