linux-kernel-mentees.lists.linuxfoundation.org archive mirror
 help / color / mirror / Atom feed
* [Linux-kernel-mentees] [PATCH v4 00/29] scsi: use generic power management
@ 2020-11-02 16:47 Vaibhav Gupta
  2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 01/29] scsi: megaraid_sas: Drop PCI wakeup calls from .resume Vaibhav Gupta
                   ` (29 more replies)
  0 siblings, 30 replies; 32+ messages in thread
From: Vaibhav Gupta @ 2020-11-02 16:47 UTC (permalink / raw)
  To: Bjorn Helgaas, Bjorn Helgaas, Bjorn Helgaas, Vaibhav Gupta,
	Adam Radford, James E.J. Bottomley, Martin K. Petersen,
	Adaptec OEM Raid Solutions, Hannes Reinecke, Bradley Grove,
	John Garry, Don Brace, Xiang Chen, James Smart, Dick Kennedy,
	Kashyap Desai, Sumit Saxena, Shivasharan S, Sathya Prakash,
	Sreekanth Reddy, Suganath Prabu Subramani, Jack Wang,
	Balsundar P
  Cc: linux-scsi, MPT-FusionLinux.pdl, esc.storagedev, linux-kernel,
	linux-kernel-mentees, megaraidlinux.pdl

Linux Kernel Mentee: Remove Legacy Power Management.

The purpose of this patch series is to upgrade power management in xxxxxxxx
drivers. This has been done by upgrading .suspend() and .resume() callbacks.

The upgrade makes sure that the involvement of PCI Core does not change the
order of operations executed in a driver. Thus, does not change its behavior.

In general, drivers with legacy PM, .suspend() and .resume() make use of PCI
helper functions like pci_enable/disable_device_mem(), pci_set_power_state(),
pci_save/restore_state(), pci_enable/disable_device(), etc. to complete
their job.

The conversion requires the removal of those function calls, change the
callbacks' definition accordingly and make use of dev_pm_ops structure.

All patches are compile-tested only.

Test tools:
    - Compiler: gcc (GCC) 10.2.0
    - allmodconfig build: make -j$(nproc) W=1 all

Vaibhav Gupta (29):
  scsi: megaraid_sas: Drop PCI wakeup calls from .resume
  scsi: megaraid_sas: use generic power management
  scsi: megaraid_sas: update function description
  scsi: aacraid: Drop pci_enable_wake() from .resume
  scsi: aacraid: use generic power management
  scsi: aic7xxx: use generic power management
  scsi: aic79xx: use generic power management
  scsi: arcmsr: Drop PCI wakeup calls from .resume
  scsi: arcmsr: use generic power management
  scsi: esas2r: Drop PCI Wakeup calls from .resume
  scsi: esas2r: use generic power management
  scsi: hisi_sas_v3_hw: Drop PCI Wakeup calls from .resume
  scsi: hisi_sas_v3_hw: Don't use PCI helper functions
  scsi: hisi_sas_v3_hw: Remove extra function calls for runtime pm
  scsi: mpt3sas_scsih: Drop PCI Wakeup calls from .resume
  scsi: mpt3sas_scsih: use generic power management
  scsi: lpfc: use generic power management
  scsi: pm_8001: Drop PCI Wakeup calls from .resume
  scsi: pm_8001: use generic power management
  scsi: hpsa: use generic power management
  scsi: 3w-9xxx: Drop PCI Wakeup calls from .resume
  scsi: 3w-9xxx: use generic power management
  scsi: 3w-sas: Drop PCI Wakeup calls from .resume
  scsi: 3w-sas: use generic power management
  scsi: mvumi: Drop PCI Wakeup calls from .resume
  scsi: mvumi: use generic power management
  scsi: mvumi: update function description
  scsi: pmcraid: Drop PCI Wakeup calls from .resume
  scsi: pmcraid: use generic power management

 drivers/scsi/3w-9xxx.c                    |  30 ++-----
 drivers/scsi/3w-sas.c                     |  32 ++-----
 drivers/scsi/aacraid/linit.c              |  34 ++------
 drivers/scsi/aic7xxx/aic79xx.h            |  12 +--
 drivers/scsi/aic7xxx/aic79xx_core.c       |   8 +-
 drivers/scsi/aic7xxx/aic79xx_osm_pci.c    |  43 +++-------
 drivers/scsi/aic7xxx/aic79xx_pci.c        |   6 +-
 drivers/scsi/aic7xxx/aic7xxx.h            |  10 +--
 drivers/scsi/aic7xxx/aic7xxx_core.c       |   6 +-
 drivers/scsi/aic7xxx/aic7xxx_osm_pci.c    |  46 +++-------
 drivers/scsi/aic7xxx/aic7xxx_pci.c        |   4 +-
 drivers/scsi/arcmsr/arcmsr_hba.c          |  29 ++-----
 drivers/scsi/esas2r/esas2r.h              |   5 +-
 drivers/scsi/esas2r/esas2r_init.c         |  48 +++--------
 drivers/scsi/esas2r/esas2r_main.c         |   3 +-
 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c    |  41 ++-------
 drivers/scsi/hpsa.c                       |  12 +--
 drivers/scsi/lpfc/lpfc_init.c             | 100 +++++++---------------
 drivers/scsi/megaraid/megaraid_sas_base.c |  54 +++---------
 drivers/scsi/mpt3sas/mpt3sas_scsih.c      |  35 +++-----
 drivers/scsi/mvumi.c                      |  49 +++--------
 drivers/scsi/pm8001/pm8001_init.c         |  46 ++++------
 drivers/scsi/pmcraid.c                    |  44 +++-------
 23 files changed, 193 insertions(+), 504 deletions(-)

-- 
2.28.0

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

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

end of thread, other threads:[~2020-12-01  5:19 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 16:47 [Linux-kernel-mentees] [PATCH v4 00/29] scsi: use generic power management Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 01/29] scsi: megaraid_sas: Drop PCI wakeup calls from .resume Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 02/29] scsi: megaraid_sas: use generic power management Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 03/29] scsi: megaraid_sas: update function description Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 04/29] scsi: aacraid: Drop pci_enable_wake() from .resume Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 05/29] scsi: aacraid: use generic power management Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 06/29] scsi: aic7xxx: " Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 07/29] scsi: aic79xx: " Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 08/29] scsi: arcmsr: Drop PCI wakeup calls from .resume Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 09/29] scsi: arcmsr: use generic power management Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 10/29] scsi: esas2r: Drop PCI Wakeup calls from .resume Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 11/29] scsi: esas2r: use generic power management Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 12/29] scsi: hisi_sas_v3_hw: Drop PCI Wakeup calls from .resume Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 13/29] scsi: hisi_sas_v3_hw: Don't use PCI helper functions Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 14/29] scsi: hisi_sas_v3_hw: Remove extra function calls for runtime pm Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 15/29] scsi: mpt3sas_scsih: Drop PCI Wakeup calls from .resume Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 16/29] scsi: mpt3sas_scsih: use generic power management Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 17/29] scsi: lpfc: " Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 18/29] scsi: pm_8001: Drop PCI Wakeup calls from .resume Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 19/29] scsi: pm_8001: use generic power management Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 20/29] scsi: hpsa: " Vaibhav Gupta
2020-11-04 18:08   ` Don.Brace--- via Linux-kernel-mentees
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 21/29] scsi: 3w-9xxx: Drop PCI Wakeup calls from .resume Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 22/29] scsi: 3w-9xxx: use generic power management Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 23/29] scsi: 3w-sas: Drop PCI Wakeup calls from .resume Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 24/29] scsi: 3w-sas: use generic power management Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 25/29] scsi: mvumi: Drop PCI Wakeup calls from .resume Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 26/29] scsi: mvumi: use generic power management Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 27/29] scsi: mvumi: update function description Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 28/29] scsi: pmcraid: Drop PCI Wakeup calls from .resume Vaibhav Gupta
2020-11-02 16:47 ` [Linux-kernel-mentees] [PATCH v4 29/29] scsi: pmcraid: use generic power management Vaibhav Gupta
2020-12-01  5:05 ` [Linux-kernel-mentees] [PATCH v4 00/29] scsi: " Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).