Skip to content

Ops based MSI Implementation

Michael Ellerman linuxppc-dev lkml 1 version Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am 1169714047.65693.647693675533.qpush@cradle

Versions newest first

  1. v1 Latest16 patches 85 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/16Replace pci_msi_quirk with calls to pci_no_msi()drivers/net/bnx2.c drivers/pci/msi.c drivers/pci/pci.h +1 more+4 -191 reply
2/16Remove pci_scan_msi_device()arch/powerpc/kernel/pci_64.c drivers/pci/msi.c drivers/pci/probe.c +1 more+0 -111 reply
3/16Combine pci_(save|restore)_msi/msix_statedrivers/pci/msi.c drivers/pci/pci.c drivers/pci/pci.h+26 -111 reply
4/16Abstract MSI suspenddrivers/pci/msi.c drivers/pci/pci.c drivers/pci/pci.h+14 -613 replies
5/16Ops based MSI implementationdrivers/pci/Kconfig drivers/pci/Makefile drivers/pci/msi/Makefile +3 more+429 -14 replies
6/16Add bare metal MSI enable & disable routinesdrivers/pci/msi/Makefile drivers/pci/msi/raw.c include/linux/msi-ops.h+100 -11 reply
7/16Rip out the existing powerpc msi stubsarch/powerpc/kernel/irq.c include/asm-powerpc/machdep.h+0 -330 replies
8/16Enable MSI on Powerpcdrivers/pci/Kconfig include/asm-powerpc/machdep.h include/asm-powerpc/msi.h+29 -10 replies
9/16RTAS MSI implementationdrivers/pci/msi/Makefile drivers/pci/msi/rtas.c include/asm-powerpc/msi.h+275 -00 replies
10/16Add a pci_irq_fixup for MSI via RTASdrivers/pci/msi/rtas.c+21 -00 replies
11/16Activate MSI via RTAS on pseriesarch/powerpc/platforms/pseries/setup.c+2 -00 replies
12/16Tell firmware we support MSIarch/powerpc/kernel/prom_init.c+7 -10 replies
13/16MPIC MSI allocatorarch/powerpc/sysdev/Makefile arch/powerpc/sysdev/mpic.c arch/powerpc/sysdev/mpic.h +2 more+217 -10 replies
14/16MPIC MSI backenddrivers/pci/msi/Makefile drivers/pci/msi/mpic_htmsi.c include/asm-powerpc/msi.h+194 -022 replies
15/16Enable MSI mappings for MPICarch/powerpc/sysdev/mpic.c+47 -20 replies
16/16Activate MSI for the MPIC backend on U3arch/powerpc/sysdev/mpic.c+4 -20 replies

Reviews trailers per patch

None of the 16 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchIngo Molnar
SeriesA-b A-b A-b A-b A-b A-b A-b
1/16
2/16
3/16
4/16
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC/PATCH 0/16] Ops based MSI Implementation

OK, here's a first cut at moving ops based MSI into the generic code. I'm posting this now to make sure I'm not heading off into the weeds.

The fifth patch contain the guts of it, I've included the MPIC and RTAS backends as examples. In fact they actually work.

In order to smoothly merge this with the old MSI code, the two will need to coexist in the tree for at least a few commits, so I've added (invisible) Kconfig symbols to allow that.

I plan to merge the Intel code by:
* copying it into drivers/pci/msi/intel.c with zero changes.
* providing a minimal shim to connect the ops code to the intel code.
* at this point the code should be functional but ugly as hell.
* via a longish series of patches, adapt the intel code to better match the new ops code.
* this should allow us to bisect through to find any mistakes.

If people think that's crazy and or stupid please let me know :)

TBD are:
* suspend / resume hooks in the ops - this shouldn't be too tricky with the power management API cleaned up a touch.
* working out why the hell msi_remove_pci_irq_vectors() is a special case ?

cheers