Overhaul of virt IRQ configuration. / Kill ppc64_interrupt_controller.
Get series with b4
b4 am 1148935262.25048.31.camel@brickVersions newest first
- v1 Latest8 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | Formalize virtual-IRQ remapping configuration.arch/ arch/ arch/ +3 more | +70 | 0 replies | |
| 2/8 | PIC discovery re-organization.arch/ | +19 | 0 replies | |
| 3/8 | Avoid use of ppc64_interrupt_controller.arch/ | +3 | 0 replies | |
| 4/8 | Avoid use of ppc64_interrupt_controller.arch/ | +3 | 0 replies | |
| 5/8 | Avoid use of ppc64_interrupt_controller.arch/ arch/ include/ | +29 | 0 replies | |
| 6/8 | Avoid use of ppc64_interrupt_controller.arch/ | +1 | 0 replies | |
| 7/8 | Cleaner checks for MPIC on pSeries.arch/ arch/ include/ | +8 | 1 reply | |
| 8/8 | Kill the ppc64_interrupt_controller global symbol.arch/ arch/ arch/ +5 more | +11 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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]>