Clean up SMP IPI support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | ARM: remove obsolete smp_cross_call_done()arch/ | +0 | 0 replies | |
| 2/9 | ARM: smp: pass an ipi number to smp_cross_call()arch/ arch/ arch/ +12 more | +24 | 1 reply | |
| 3/9 | ARM: smp: avoid using bitmasks and locks for IPIs, use hardware insteadarch/ | +26 | 1 reply | |
| 3/9 | ARM: smp: avoid using bitmasks and locks for IPIs, use hardware instead | +0 | 1 reply | |
| 4/9 | ARM: include local timer irq stats only when local timers configuredarch/ arch/ arch/ | +16 | 0 replies | |
| 5/9 | ARM: smp: provide accessors for irq_stat dataarch/ arch/ | +5 | 0 replies | |
| 6/9 | ARM: smp: move ipi_count into irq_stat structurearch/ arch/ | +5 | 0 replies | |
| 7/9 | ARM: fix /proc/interrupts formattingarch/ arch/ arch/ +2 more | +23 | 0 replies | |
| 8/9 | ARM: smp: provide individual IPI interrupt statisticsarch/ arch/ arch/ | +27 | 0 replies | |
| 9/9 | ARM: smp: collect IPI and local timer IRQs for /proc/statarch/ arch/ | +23 | 0 replies |
Reviews trailers per patch
None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Catalin Marinas |
|---|---|
| Series | R-b |
| 1/9 | |
| 2/9 | |
| 3/9 | |
| 3/9 | |
| 4/9 | |
| 5/9 | |
| 6/9 | |
| 7/9 | |
| 8/9 | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/9] Clean up SMP IPI support
This series is aimed at cleaning up our SMP IPI support. As has been recently pointed out, we have a spinlock in percpu data, which is not very nice.
If we switch to using the GIC SGIs, one for each IPI function, then we don't need the mask of ipi bits indicating what work needs to be done. This allows us to get rid of the troublesome spinlock in send_ipi_message().
However, we end up with slightly more expense on the IPI receiver side, as they no longer have a word to read to process a set of pending IPIs. This isn't much of a down-side as you hardly end up with masses of pending IPIs. Modern Cortex A9 platforms usually only clock up the reschedule IPI.
This leaves us with just ipi_count in the ipi per-cpu data structure. Other platforms put this in the global irq_stat array, and break this down into individual IPIs. So, let's do the same.
One down-side of this patchset is that platforms which use SGI 1 to wake their secondary CPUs will receive an "Unknown IPI message" kernel critical message at boot time - as SGI 1 is no longer recognised as a Linux IPI interrupt. We _could_ make this 'IPI_BOOT', something which is only used for booting and therefore simply ignored.