Skip to content

genirq/msi: Spring cleaning

Thomas Gleixner linux-hyperv linux-pci linux-scsi lkml ntb 4 versions – Applied

Status from this message: The following commit has been merged into the irq/msi branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest14 patches 21 repliesApplied
  2. v310 patches 5 repliesSuperseded
  3. v210 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v110 patches21 repliesApplied

Changes in v4 from the cover letter

- Cast retain_ptr() to void so it can't be used instead of return_ptr()
- James

- Split up the PCI/MSI changes

- Move setting of pci_dev::msi_enabled to the success path

- Fix a logic inversion in the UFS change and use a cleanup function to simplify the error path - James

- Collect Reviewed/Tested/Acked-by tags where appropriate

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/14cleanup: Provide retain_ptr()include/linux/cleanup.h+16 -01 reply
2/14genirq/msi: Use lock guards for MSI descriptor lockinginclude/linux/irqdomain.h include/linux/msi.h kernel/irq/msi.c+45 -690 replies
3/14soc: ti: ti_sci_inta_msi: Switch MSI descriptor locking to guard()drivers/soc/ti/ti_sci_inta_msi.c+3 -70 replies
4/14NTB/msi: Switch MSI descriptor locking to lock guard()drivers/ntb/msi.c+8 -140 replies
5/14PCI/MSI: Use guard(msi_desc_lock) where applicabledrivers/pci/msi/api.c drivers/pci/msi/msi.c+8 -101 reply
6/14PCI/MSI: Set pci_dev::msi_enabled latedrivers/pci/msi/msi.c+3 -81 reply
7/14PCI/MSI: Use __free() for affinity masksdrivers/pci/msi/msi.c+4 -91 reply
8/14PCI/MSI: Switch msi_capability_init() to guard(msi_desc_lock)drivers/pci/msi/msi.c+36 -321 reply
9/14PCI/MSI: Switch msix_capability_init() to guard(msi_desc_lock)drivers/pci/msi/msi.c+20 -1613 replies
10/14PCI: hv: Switch MSI descriptor locking to guard()drivers/pci/controller/pci-hyperv.c+4 -100 replies
11/14PCI/MSI: Provide a sane mechanism for TPHdrivers/pci/msi/msi.c drivers/pci/pci.h+56 -02 replies
12/14PCI/TPH: Replace the broken MSI-X control word updatedrivers/pci/tph.c+1 -430 replies
13/14scsi: ufs: qcom: Remove the MSI descriptor abusedrivers/ufs/host/ufs-qcom.c+48 -371 reply
14/14genirq/msi: Rename msi_[un]lock_descs()include/linux/msi.h kernel/irq/msi.c+14 -100 replies

Reviews trailers per patch

All 14 patches have a Reviewed-by or Acked-by.

PatchJonathan CameronNishanth MenonDhruva GoleLogan GunthorpeDave JiangMichael KelleyWei LiuBjorn HelgaasJames BottomleySrikanth AithalAndy ShevchenkoVenkat Rao BagalkoteBorislav Petkov (AMD)
1/14R-b R-b
2/14R-b
3/14R-b T-b R-b
4/14R-b R-b A-b
5/14A-b
6/14A-b
7/14A-b
8/14A-b
9/14A-b T-b T-b T-b T-b
10/14R-b R-b A-b A-b
11/14A-b
12/14A-b
13/14R-b
14/14R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 13 reviewers.

Read the v4 thread

Cover letter [patch V4 00/14] genirq/msi: Spring cleaning

This is version 4 of the cleanup work. The previous version can be found here:

https://lore.kernel.org/all/[email protected]

While converting the MSI descriptor locking to a lock guard() I stumbled over various abuse of MSI descriptors (again).

The following series cleans up the offending code and converts the MSI descriptor locking over to lock guards.

Changes vs. V3:

- Cast retain_ptr() to void so it can't be used instead of return_ptr()
- James

- Split up the PCI/MSI changes

- Move setting of pci_dev::msi_enabled to the success path

- Fix a logic inversion in the UFS change and use a cleanup function to simplify the error path - James

- Collect Reviewed/Tested/Acked-by tags where appropriate

The series applies on:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/msi

and is available from git:

git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git irq/msi

Thanks,

tglx

---
 drivers/ntb/msi.c                   |   22 +---
 drivers/pci/controller/pci-hyperv.c |   14 --
 drivers/pci/msi/api.c               |    6 -
 drivers/pci/msi/msi.c               |  175 ++++++++++++++++++++++--------------
 drivers/pci/pci.h                   |    9 +
 drivers/pci/tph.c                   |   44 ---------
 drivers/soc/ti/ti_sci_inta_msi.c    |   10 --
 drivers/ufs/host/ufs-qcom.c         |   85 +++++++++--------
 include/linux/cleanup.h             |   16 +++
 include/linux/irqdomain.h           |    2 
 include/linux/msi.h                 |    7 +
 kernel/irq/msi.c                    |  125 ++++++++++---------------
 12 files changed, 258 insertions(+), 257 deletions(-)