arm_pmu: explicitly enable/disable SPIs at hotplug
authorMark Rutland <mark.rutland@arm.com>
Mon, 5 Feb 2018 16:42:00 +0000 (16:42 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 20 Feb 2018 11:34:54 +0000 (11:34 +0000)
commit6de3f79112cc26bf24edbb240248d21e1dd85dde
tree7a8301e69ef2f8f7cae3de8316056b4679c28019
parent43fc9a2febbd96dd39588d67ace456b7bbc73d9f
arm_pmu: explicitly enable/disable SPIs at hotplug

To support ACPI systems, we need to request IRQs before CPUs are
hotplugged, and thus we need to request IRQs before we know their
associated PMU.

This is problematic if a PMU IRQ is pending out of reset, as it may be
taken before we know the PMU, and thus the IRQ handler won't be able to
handle it, leaving it screaming.

To avoid such problems, lets request all IRQs in a disabled state, and
explicitly enable/disable them at hotplug time, when we're sure the PMU
has been probed.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c