openwrt/target/linux/generic
Petr Štetiar 78ee6b1a40 kernel: MIPS: perf: ath79: Fix perfcount IRQ assignment
Currently it's not possible to use perf on ath79 due to genirq flags
mismatch happening on static virtual IRQ 13 which is used for
performance counters hardware IRQ 5.

On TP-Link Archer C7v5:

           CPU0
  2:          0      MIPS   2  ath9k
  4:        318      MIPS   4  19000000.eth
  7:      55034      MIPS   7  timer
  8:       1236      MISC   3  ttyS0
 12:          0      INTC   1  ehci_hcd:usb1
 13:          0  gpio-ath79   2  keys
 14:          0  gpio-ath79   5  keys
 15:         31  AR724X PCI    1  ath10k_pci

 $ perf top
 genirq: Flags mismatch irq 13. 00014c83 (mips_perf_pmu) vs. 00002003 (keys)

On TP-Link Archer C7v4:

         CPU0
  4:          0      MIPS   4  19000000.eth
  5:       7135      MIPS   5  1a000000.eth
  7:      98379      MIPS   7  timer
  8:         30      MISC   3  ttyS0
 12:      90028      INTC   0  ath9k
 13:       5520      INTC   1  ehci_hcd:usb1
 14:       4623      INTC   2  ehci_hcd:usb2
 15:      32844  AR724X PCI    1  ath10k_pci
 16:          0  gpio-ath79  16  keys
 23:          0  gpio-ath79  23  keys

 $ perf top
 genirq: Flags mismatch irq 13. 00014c80 (mips_perf_pmu) vs. 00000080 (ehci_hcd:usb1)

This problem is happening, because currently statically assigned virtual
IRQ 13 for performance counters is not claimed during the initialization
of MIPS PMU during the bootup, so the IRQ subsystem doesn't know, that
this interrupt isn't available for further use.

So this patch fixes the issue by simply booking hardware IRQ 5 for MIPS PMU.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-04-15 00:01:57 +02:00
..
backport-4.9 kernel: bump 4.9 to 4.9.165 2019-03-27 10:48:59 +01:00
backport-4.14 kernel: move and replace accepted patch 2019-04-11 19:21:55 +02:00
backport-4.19 kernel: bump 4.19 to 4.19.34 2019-04-08 14:53:39 +02:00
files kernel: b53: add support for kernels 5.0+ 2019-04-04 11:35:53 +02:00
hack-4.9 kernel: bump 4.9 to 4.9.168 2019-04-08 14:53:39 +02:00
hack-4.14 kernel: bump 4.14 to 4.14.111 2019-04-08 14:53:39 +02:00
hack-4.19 kernel: bump 4.19 to 4.19.34 2019-04-08 14:53:39 +02:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-3.18 mips: fix dynamic ftrace 2019-03-06 22:02:56 +01:00
pending-4.9 kernel: bump 4.9 to 4.9.161 2019-03-05 13:19:43 +01:00
pending-4.14 kernel: MIPS: perf: ath79: Fix perfcount IRQ assignment 2019-04-15 00:01:57 +02:00
pending-4.19 kernel: MIPS: perf: ath79: Fix perfcount IRQ assignment 2019-04-15 00:01:57 +02:00
config-3.18 kernel/modules: add kmod-pmbus-zl6100 module 2019-01-13 11:07:37 +01:00
config-4.9 generic: kernel: Add missing config option 2019-02-19 22:11:29 +01:00
config-4.14 tegra: add new target 2019-04-06 14:48:46 +02:00
config-4.19 kernel: bump 4.19 to 4.19.34 2019-04-08 14:53:39 +02:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00