Will Deacon
a3287c41ff
drivers/perf: arm_pmu: Request PMU SPIs with IRQF_PER_CPU
...
Since the PMU register interface is banked per CPU, CPU PMU interrrupts
cannot be handled by a CPU other than the one with the PMU asserting the
interrupt. This means that migrating PMU SPIs, as we do during a CPU
hotplug operation doesn't make any sense and can lead to the IRQ being
disabled entirely if we route a spurious IRQ to the new affinity target.
This has been observed in practice on AMD Seattle, where CPUs on the
non-boot cluster appear to take a spurious PMU IRQ when coming online,
which is routed to CPU0 where it cannot be handled.
This patch passes IRQF_PERCPU for PMU SPIs and forcefully sets their
affinity prior to requesting them, ensuring that they cannot
be migrated during hotplug events. This interacts badly with the DB8500
erratum workaround that ping-pongs the interrupt affinity from the handler,
so we avoid passing IRQF_PERCPU in that case by allowing the IRQ flags
to be overridden in the platdata.
Fixes: 3cf7ee98b8 ("drivers/perf: arm_pmu: move irq request/free into probe")
Cc: Mark Rutland <[email protected] >
Cc: Linus Walleij <[email protected] >
Signed-off-by: Will Deacon <[email protected] >
2017-07-27 13:43:22 +01:00
..
alpha
Merge branch 'uaccess.strlen' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-06 22:07:44 -07:00
arc
arc: move generic-y of exported headers to uapi/asm/Kbuild
2017-07-10 03:43:21 +09:00
arm
drivers/perf: arm_pmu: Request PMU SPIs with IRQF_PER_CPU
2017-07-27 13:43:22 +01:00
arm64
arm64: sysreg: Fix unprotected macro argmuent in write_sysreg
2017-07-26 09:28:18 +01:00
blackfin
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
c6x
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
cris
Kbuild updates for v4.13 (2nd)
2017-07-13 13:37:57 -07:00
frv
FRV: tlbflush: move asmlinkage before return type
2017-07-12 16:26:04 -07:00
h8300
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
hexagon
hexagon: move generic-y of exported headers to uapi/asm/Kbuild
2017-07-10 03:43:26 +09:00
ia64
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
m32r
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
m68k
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
metag
metag: move generic-y of exported headers to uapi/asm/Kbuild
2017-07-10 03:43:30 +09:00
microblaze
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
mips
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
mn10300
kernel/watchdog: introduce arch_touch_nmi_watchdog()
2017-07-12 16:26:02 -07:00
nios2
nios2: move generic-y of exported headers to uapi/asm/Kbuild
2017-07-11 21:33:43 +09:00
openrisc
openrisc: move generic-y of exported headers to uapi/asm/Kbuild
2017-07-11 21:33:50 +09:00
parisc
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
powerpc
Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 12:00:42 -07:00
s390
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
score
Merge branch 'uaccess.strlen' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-06 22:07:44 -07:00
sh
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
sparc
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
tile
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
um
Merge branch 'for-linus-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml
2017-07-15 10:49:33 -07:00
unicore32
unicore32: move generic-y of exported headers to uapi/asm/Kbuild
2017-07-11 21:33:52 +09:00
x86
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
xtensa
Merge branch 'work.uaccess-unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 11:17:52 -07:00
.gitignore
Kconfig
include/linux/string.h: add the option of fortified string.h functions
2017-07-12 16:26:03 -07:00