]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARCv2: SMP: Mask only private-per-core IRQ lines on boot at core intc
authorAlexey Brodkin <abrodkin@synopsys.com>
Mon, 28 Aug 2017 22:03:58 +0000 (15:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Aug 2017 23:11:15 +0000 (16:11 -0700)
commite8206d2baa41a4c7cf4590929f8819f8309b564d
treea1e22d334fca7cc712a96d57ac62089ec00235b2
parent79de3cbe9a974e03a02b71da80da9ee0eb15a2d0
ARCv2: SMP: Mask only private-per-core IRQ lines on boot at core intc

Recent commit a8ec3ee861b6 "arc: Mask individual IRQ lines during core
INTC init" breaks interrupt handling on ARCv2 SMP systems.

That commit masked all interrupts at onset, as some controllers on some
boards (customer as well as internal), would assert interrutps early
before any handlers were installed.  For SMP systems, the masking was
done at each cpu's core-intc.  Later, when the IRQ was actually
requested, it was unmasked, but only on the requesting cpu.

For "common" interrupts, which were wired up from the 2nd level IDU
intc, this was as issue as they needed to be enabled on ALL the cpus
(given that IDU IRQs are by default served Round Robin across cpus)

So fix that by NOT masking "common" interrupts at core-intc, but instead
at the 2nd level IDU intc (latter already being done in idu_of_init())

Fixes: a8ec3ee861b6 ("arc: Mask individual IRQ lines during core INTC init")
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
[vgupta: reworked changelog, removed the extraneous idu_irq_mask_raw()]
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arc/kernel/intc-arcv2.c
arch/arc/kernel/intc-compact.c