ramips: fix spurious IRQ7 events when using perf on 4.14
authorFelix Fietkau <nbd@nbd.name>
Tue, 27 Feb 2018 14:09:43 +0000 (15:09 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 27 Feb 2018 16:30:33 +0000 (17:30 +0100)
commitd8655868ca04d12ad5ed36e26fc63d61b076e33d
tree467f37f82c37cf5e1d8dfa7a723274d755fe953e
parent86e5a6d985e1666e685b1cacb204039ddf03f4cb
ramips: fix spurious IRQ7 events when using perf on 4.14

Upstream handling of MIPS CPU IRQs is rather hackish and the interrupts
are being enabled unconditionally in various places because of legacy
code.
Performance counter events are routed both through the GIC and through
legacy CPU IRQ7 events, causing spurious interrupts.

Fix this by disabling IRQ7 when trying to access the performance counter
IRQ.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ramips/patches-4.14/110-mt7621-perfctr-fix.patch [new file with mode: 0644]