mbox series

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

Message ID 1601649038-25534-1-git-send-email-john.garry@huawei.com
Headers show
Series hisi_sas: Add runtime PM support for v3 hw | expand

Message

John Garry Oct. 2, 2020, 2:30 p.m. UTC
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/32574da3d8de863ff38347ef6ead9b35@mail.gmail.com/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(-)

Comments

Martin K. Petersen Oct. 3, 2020, 3:11 a.m. UTC | #1
John,

> 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

Applied to 5.10/scsi-staging, thanks!
Martin K. Petersen Oct. 7, 2020, 3:47 a.m. UTC | #2
On Fri, 2 Oct 2020 22:30:31 +0800, John Garry wrote:

> 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
> 
> [...]

Applied to 5.10/scsi-queue, thanks!

[1/7] scsi: hisi_sas: Use hisi_hba->cq_nvecs for calling calling synchronize_irq()
      https://git.kernel.org/mkp/scsi/c/7f054da7738a
[2/7] scsi: hisi_sas: Switch to new framework to support suspend and resume
      https://git.kernel.org/mkp/scsi/c/6c459ea1542b
[3/7] scsi: hisi_sas: Add controller runtime PM support for v3 hw
      https://git.kernel.org/mkp/scsi/c/65ff4aef7e9b
[4/7] scsi: hisi_sas: Add check for methods _PS0 and _PR0
      https://git.kernel.org/mkp/scsi/c/e06596d5000c
[5/7] scsi: hisi_sas: Add device link between SCSI devices and hisi_hba
      https://git.kernel.org/mkp/scsi/c/16fd4a7c5917
[6/7] scsi: hisi_sas: Filter out new PHY up events during suspend
      https://git.kernel.org/mkp/scsi/c/b14a37e011d8
[7/7] scsi: hisi_sas: Recover PHY state according to the status before reset
      https://git.kernel.org/mkp/scsi/c/69f4ec1edb13