Skip to content

hisi_sas: Add runtime PM support for v3 hw

John Garry linux-scsi lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7scsi: hisi_sas: Use hisi_hba->cq_nvecs for calling calling synchronize_irq()drivers/scsi/hisi_sas/hisi_sas_v3_hw.c+3 -20 replies
2/7scsi: hisi_sas: Switch to new framework to support suspend and resumedrivers/scsi/hisi_sas/hisi_sas_v3_hw.c+10 -50 replies
3/7scsi: hisi_sas: Add controller runtime PM support for v3 hwdrivers/scsi/hisi_sas/hisi_sas.h drivers/scsi/hisi_sas/hisi_sas_v3_hw.c+56 -20 replies
4/7scsi: hisi_sas: Add the check of the definition of method _PS0 and _PR0drivers/scsi/hisi_sas/Kconfig drivers/scsi/hisi_sas/hisi_sas_v3_hw.c+5 -00 replies
5/7scsi: hisi_sas: Add device link between SCSI devices and hisi_hbadrivers/scsi/hisi_sas/hisi_sas_v3_hw.c+28 -10 replies
6/7scsi: hisi_sas: Filter out new PHYs up events during suspendeddrivers/scsi/hisi_sas/hisi_sas_main.c+6 -00 replies
7/7scsi: hisi_sas: Recover phys state according to the status before resetdrivers/scsi/hisi_sas/hisi_sas_main.c+1 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] hisi_sas: Add runtime PM support for v3 hw

This series adds runtime PM support for v3 hw. Consists of:
- Switch to new PM suspend and resume framework
- Add links to devices to ensure host cannot be suspended while devices are not
- Filter out phy events during suspend to avoid deadlock
- Add controller RPM support
- And some more minor misc related changes

I also included a random small fix, only visible when #CPUs < #queues and MSI affinity module param set.

Note that this series does not conflict with patch "scsi: hisi_sas:
Switch v3 hw to MQ", which is supposed to go through the block tree:

https://lore.kernel.org/linux-scsi/[email protected]/T/#m39c82fc8a3e3a6b20247d0bd0122d2916e620a28

Luo Jiaxing (1):
scsi: hisi_sas: Use hisi_hba->cq_nvecs for calling calling
synchronize_irq()

Xiang Chen (6):
scsi: hisi_sas: Switch to new framework to support suspend and resume
scsi: hisi_sas: Add controller runtime PM support for v3 hw
scsi: hisi_sas: Add the check of the definition of method _PS0 and

    _PR0

scsi: hisi_sas: Add device link between SCSI devices and hisi_hba
scsi: hisi_sas: Filter out new PHYs up events during suspended
scsi: hisi_sas: Recover phys state according to the status before
reset

 drivers/scsi/hisi_sas/Kconfig          |   1 +
 drivers/scsi/hisi_sas/hisi_sas.h       |   2 +
 drivers/scsi/hisi_sas/hisi_sas_main.c  |  10 ++-
 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 105 +++++++++++++++++++++++--
 4 files changed, 107 insertions(+), 11 deletions(-)
Signature · 1 line
2.26.2