Skip to content

Overhaul of virt IRQ configuration. / Kill ppc64_interrupt_controller.

Michal Ostrowski linuxppc-dev 1 version In review

Get series with b4
b4 am 1148935262.25048.31.camel@brick

Versions newest first

  1. v1 Latest8 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Formalize virtual-IRQ remapping configuration.arch/powerpc/kernel/irq.c arch/powerpc/kernel/prom.c arch/powerpc/kernel/setup_64.c +3 more+70 -450 replies
2/8PIC discovery re-organization.arch/powerpc/platforms/pseries/setup.c+19 -170 replies
3/8Avoid use of ppc64_interrupt_controller.arch/powerpc/platforms/pseries/xics.c+3 -40 replies
4/8Avoid use of ppc64_interrupt_controller.arch/powerpc/kernel/rtas_pci.c+3 -50 replies
5/8Avoid use of ppc64_interrupt_controller.arch/powerpc/platforms/pseries/setup.c arch/powerpc/platforms/pseries/smp.c include/asm-powerpc/smp.h+29 -200 replies
6/8Avoid use of ppc64_interrupt_controller.arch/powerpc/platforms/pseries/setup.c+1 -10 replies
7/8Cleaner checks for MPIC on pSeries.arch/powerpc/kernel/rtas_pci.c arch/powerpc/platforms/pseries/setup.c include/asm-powerpc/mpic.h+8 -21 reply
8/8Kill the ppc64_interrupt_controller global symbol.arch/powerpc/kernel/irq.c arch/powerpc/kernel/setup_64.c arch/powerpc/platforms/cell/setup.c +5 more+11 -280 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC/PATCH 0/8] Overhaul of virt IRQ configuration. / Kill ppc64_interrupt_controller.

The following set of patches is aimed at killing the ppc64_interrupt_controller global variable, and similarly that various global variables used to tweak the parameters of virtual IRQ re-mapping. Instead each platform can use a single function to configure IRQ re-mapping in "init_early()".

Platforms can choose the default configuration (which is to say identity mappings of IRQ vectors 0..511) or specify their own
configuration: an offset (for ISA vectors), the range that is to be identity mapped and the range of vectors that may be arbitrarily re-mapper.

This allows us to remove the special-casing based on ppc64_interrupt_controller in virt_irq_create_mapping().

Subsequently most uses of ppc64_interrupt_controller are on configuration paths where we can typically obtain comparable information by alternate means.

In the end, only pSeries-specific code must be aware of the choice of PIC and it will check to see if an MPIC has been initialized (and if not, assume XICS). (Thus no platforms beyond pSeries are affected.)

This code has been tested on pSeries LPAR, G5, and Maple. I'll be re-testing it on a Power3 with MPIC shortly once a system for testing becomes available again.

Signature · 1 line
Michal Ostrowski <[email protected]>