All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Remove link debounce delays by default
@ 2022-03-23  8:17 Damien Le Moal
  2022-03-23  8:17 ` [PATCH 1/4] ata: libata-sata: Simplify sata_link_resume() interface Damien Le Moal
                   ` (4 more replies)
  0 siblings, 5 replies; 23+ messages in thread
From: Damien Le Moal @ 2022-03-23  8:17 UTC (permalink / raw)
  To: linux-ide; +Cc: Paul Menzel

This series removes the long link debounce delays by default for all
adapters, except for those known to require these delays
(e.g. ata_piix).

The first 2 patches are code cleanup improving the interface of several
functions handling delays.

Patch 3 removes the long delay in sata_link_resume() and reverses the
link flag ATA_LFLAG_NO_DEBOUNCE_DELAY to ATA_LFLAG_DEBOUNCE_DELAY for
adapters to request the delay if needed.

Patch 4 improves sata_link_debounce() by shortening the link stability
test, unless the link has the ATA_LFLAG_DEBOUNCE_DELAY flag set.

This series was tested on a machine with 2 AHCI adapters (Intel and
Marvell) with a port-multiplier box attached to cover that case too.

Comments and lots of testing are welcome !

Damien Le Moal (4):
  ata: libata-sata: Simplify sata_link_resume() interface
  ata: libata-sata: Introduce struct sata_deb_timing
  ata: libata-sata: Remove debounce delay by default
  ata: libata-sata: Improve sata_link_debounce()

 drivers/ata/ahci.c          |  19 ++----
 drivers/ata/ahci_brcm.c     |   1 -
 drivers/ata/ahci_qoriq.c    |   5 +-
 drivers/ata/ahci_xgene.c    |   3 +-
 drivers/ata/ata_generic.c   |   1 +
 drivers/ata/ata_piix.c      |  17 +++++
 drivers/ata/libahci.c       |   5 +-
 drivers/ata/libata-core.c   |   8 +--
 drivers/ata/libata-pmp.c    |   2 +-
 drivers/ata/libata-sata.c   | 129 +++++++++++++++++++++++++-----------
 drivers/ata/libata-sff.c    |   6 +-
 drivers/ata/sata_highbank.c |   4 +-
 drivers/ata/sata_inic162x.c |   3 +-
 drivers/ata/sata_mv.c       |   8 +--
 drivers/ata/sata_nv.c       |   5 +-
 drivers/ata/sata_sil24.c    |   2 +-
 include/linux/libata.h      |  44 +++++++-----
 17 files changed, 161 insertions(+), 101 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2022-03-28  9:44 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-23  8:17 [PATCH 0/4] Remove link debounce delays by default Damien Le Moal
2022-03-23  8:17 ` [PATCH 1/4] ata: libata-sata: Simplify sata_link_resume() interface Damien Le Moal
2022-03-23  8:17 ` [PATCH 2/4] ata: libata-sata: Introduce struct sata_deb_timing Damien Le Moal
2022-03-23 14:09   ` Paul Menzel
2022-03-23 23:51     ` Damien Le Moal
2022-03-23  8:17 ` [PATCH 3/4] ata: libata-sata: Remove debounce delay by default Damien Le Moal
2022-03-23 14:25   ` Paul Menzel
2022-03-23  8:17 ` [PATCH 4/4] ata: libata-sata: Improve sata_link_debounce() Damien Le Moal
2022-03-25  9:10   ` Paul Menzel
2022-03-28  7:19     ` Damien Le Moal
2022-03-28  7:41       ` Paul Menzel
2022-03-28  9:13         ` Damien Le Moal
2022-03-28  9:43         ` Damien Le Moal
2022-03-23  8:43 ` [PATCH 0/4] Remove link debounce delays by default Paul Menzel
2022-03-23  8:45   ` Paul Menzel
2022-03-23  9:34   ` Damien Le Moal
2022-03-23  9:39   ` Damien Le Moal
2022-03-23 10:59     ` Paul Menzel
2022-03-23 23:58       ` Damien Le Moal
2022-03-24  5:30         ` Paul Menzel
2022-03-24  6:15           ` Damien Le Moal
2022-03-24  6:35             ` Paul Menzel
2022-03-24  6:51               ` Damien Le Moal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.