openwrt/target/linux/generic/pending-4.14
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
..
102-MIPS-only-process-negative-stack-offsets-on-stack-tr.patch kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
103-MIPS-perf-ath79-Fix-perfcount-IRQ-assignment.patch kernel: MIPS: perf: ath79: Fix perfcount IRQ assignment 2019-04-15 00:01:57 +02:00
110-ehci_hcd_ignore_oc.patch
120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch kernel: bump 4.14 to 4.14.89 2018-12-18 14:24:57 +01:00
130-add-linux-spidev-compatible-si3210.patch
131-spi-use-gpio_set_value_cansleep-for-setting-chipsele.patch
140-jffs2-use-.rename2-and-add-RENAME_WHITEOUT-support.patch kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
141-jffs2-add-RENAME_EXCHANGE-support.patch kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
150-bridge_allow_receiption_on_disabled_port.patch kernel: bump 4.14 to 4.14.59 2018-07-31 05:11:07 +03:00
161-mtd-part-add-generic-parsing-of-linux-part-probe.patch kernel: backport 2 mtd partitioning fixes 2018-12-03 10:34:12 +01:00
171-usb-dwc2-Fix-inefficient-copy-of-unaligned-buffers.patch kernel: bump 4.14 to 4.14.67 2018-08-28 23:05:39 +02:00
180-net-phy-at803x-add-support-for-AT8032.patch kernel: fix AT8032 PHY phy id mask 2018-07-04 01:19:05 +02:00
190-2-5-e1000e-Fix-wrong-comment-related-to-link-detection.patch kernel: bump 4.14 to 4.14.62 2018-08-10 18:43:23 +02:00
201-extra_optimization.patch kernel: bump 4.14 to 4.14.86 2018-12-10 11:48:44 +01:00
203-kallsyms_uncompressed.patch kernel: bump 4.14 to 4.14.93 2019-01-14 02:20:40 +02:00
205-backtrace_module_info.patch
220-optimize_inlining.patch kernel: bump 4.14 to 4.14.75 2018-10-10 14:45:11 +02:00
240-remove-unsane-filenames-from-deps_initramfs-list.patch
261-enable_wilink_platform_without_drivers.patch
300-mips_expose_boot_raw.patch kernel: bump 4.14 to 4.14.96 2019-01-28 18:17:32 +01:00
302-mips_no_branch_likely.patch
304-mips_disable_fpu.patch kernel: bump 4.14 to 4.14.96 2019-01-28 18:17:32 +01:00
305-mips_module_reloc.patch mips: fix dynamic ftrace 2019-03-06 22:02:56 +01:00
306-mips_mem_functions_performance.patch
307-mips_highmem_offset.patch
308-mips32r2_tune.patch kernel: bump 4.14 to 4.14.106 2019-03-18 10:02:51 +01:00
309-MIPS-Add-CPU-option-reporting-to-proc-cpuinfo.patch kernel: MIPS: Add CPU option reporting to /proc/cpuinfo 2019-01-13 16:24:50 +01:00
310-arm_module_unresolved_weak_sym.patch
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch kernel: bump 4.14 to 4.14.82 2018-11-22 10:49:01 +01:00
332-arc-add-OWRTDTB-section.patch kernel: Update arc-add-OWRTDTB-section patch for 4.14 2019-03-20 18:23:31 +01:00
333-arc-enable-unaligned-access-in-kernel-mode.patch
340-MIPS-mm-remove-mips_dma_mapping_error.patch
341-MIPS-mm-remove-no-op-dma_map_ops-where-possible.patch kernel: bump 4.14 to 4.14.96 2019-01-28 18:17:32 +01:00
400-mtd-add-rootfs-split-support.patch kernel: backport 2 mtd partitioning fixes 2018-12-03 10:34:12 +01:00
401-mtd-add-support-for-different-partition-parser-types.patch Revert "kernel: use add_mtd_partitions() helper when using OpenWrt parsers" 2018-12-03 15:50:26 +01:00
402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch Revert "kernel: use add_mtd_partitions() helper when using OpenWrt parsers" 2018-12-03 15:50:26 +01:00
403-mtd-hook-mtdsplit-to-Kbuild.patch
404-mtd-add-more-helper-functions.patch Revert "kernel: use add_mtd_partitions() helper when using OpenWrt parsers" 2018-12-03 15:50:26 +01:00
411-mtd-partial_eraseblock_write.patch kernel: backport 2 mtd partitioning fixes 2018-12-03 10:34:12 +01:00
412-mtd-partial_eraseblock_unlock.patch kernel: backport 2 mtd partitioning fixes 2018-12-03 10:34:12 +01:00
419-mtd-redboot-add-of_match_table-with-DT-binding.patch kernel: switch compatible property for RedBoot DT binding 2018-07-30 23:49:49 +02:00
420-mtd-redboot_space.patch
430-mtd-add-myloader-partition-parser.patch
431-mtd-bcm47xxpart-check-for-bad-blocks-when-calculatin.patch kernel: bcm47xxpart: fix getting user-space data partition name 2018-07-10 14:05:02 +02:00
432-mtd-bcm47xxpart-detect-T_Meter-partition.patch
440-block2mtd_init.patch
441-block2mtd_probe.patch
450-mtd-m25p80-allow-fallback-from-spi_flash_read-to-reg.patch kernel: m25p80: allow fallback from spi_flash_read to regular SPI transfer 2018-02-26 19:20:06 +01:00
450-mtd-spi-nor-allow-NOR-driver-to-write-fewer-bytes-th.patch kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
460-mtd-cfi_cmdset_0002-no-erase_suspend.patch
461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch kernel: bump 4.14 to 4.14.41 2018-05-18 09:10:46 +02:00
465-m25p80-mx-disable-software-protection.patch kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
466-Revert-mtd-spi-nor-fix-Spansion-regressions-aliased-.patch kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
470-mtd-spi-nor-support-limiting-4K-sectors-support-base.patch kernel: bump 4.14 to 4.14.93 2019-01-14 02:20:40 +02:00
475-mtd-spi-nor-Add-Winbond-w25q128jv-support.patch kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
476-mtd-spi-nor-add-eon-en25q128.patch
477-mtd-add-spi-nor-add-mx25u3235f.patch kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
478-mtd-spi-nor-Add-support-for-XM25QH64A-and-XM25QH128A.patch kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
479-mtd-spi-nor-add-eon-en25qh32.patch kernel: Add support spi-nor, Eon EN25QH32 2018-05-21 18:07:47 +02:00
479-mtd-spi-nor-add-eon-en25qh64.patch kernel: mtd: add support for EN25QH64 in spi-nor.c 2019-01-02 22:12:19 +01:00
480-mtd-set-rootfs-to-be-root-dev.patch
490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch kernel: bump 4.14 to 4.14.86 2018-12-10 11:48:44 +01:00
491-ubi-auto-create-ubiblock-device-for-rootfs.patch kernel: bump 4.14 to 4.14.20 2018-02-18 02:59:48 +01:00
492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch kernel: bump 4.14 to 4.14.23 2018-03-02 21:33:08 +01:00
493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch kernel: bump 4.14 to 4.14.20 2018-02-18 02:59:48 +01:00
494-mtd-ubi-add-EOF-marker-support.patch kernel: bump 4.14 to 4.14.86 2018-12-10 11:48:44 +01:00
495-mtd-core-add-get_mtd_device_by_node.patch kernel: backport 2 mtd partitioning fixes 2018-12-03 10:34:12 +01:00
496-dt-bindings-add-bindings-for-mtd-concat-devices.patch kernel: bump 4.14 to 4.14.70 2018-09-17 15:47:44 +02:00
497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch kernel: bump 4.14 to 4.14.70 2018-09-17 15:47:44 +02:00
530-jffs2_make_lzma_available.patch jffs2: Fix use of uninitialized delayed_work, lockdep breakage 2018-12-16 01:18:48 +01:00
532-jffs2_eofdetect.patch
553-ubifs-Add-option-to-create-UBI-FS-version-4-on-empty.patch kernel: ubifs: create use file system format 4 by default 2018-02-13 22:24:56 +01:00
600-netfilter_conntrack_flush.patch kernel: refresh patches 2018-02-22 12:46:25 +01:00
610-netfilter_match_bypass_default_checks.patch kernel: bump 4.14 to 4.14.59 2018-07-31 05:11:07 +03:00
611-netfilter_match_bypass_default_table.patch
612-netfilter_match_reduce_memory_access.patch
613-netfilter_optional_tcp_window_check.patch kernel: refresh patches 2018-02-22 12:46:25 +01:00
616-net_optimize_xfrm_calls.patch
620-net_sched-codel-do-not-defer-queue-length-update.patch kernel: merge a pending fix for HFSC warnings/slowdowns (fixes FS#1136) 2018-03-11 08:58:53 +01:00
630-packet_socket_type.patch kernel: bump 4.14 to 4.14.93 2019-01-14 02:20:40 +02:00
640-netfilter-nf_flow_table-add-hardware-offload-support.patch kernel: bump 4.14 to 4.14.104 2019-03-05 13:19:43 +01:00
641-netfilter-nf_flow_table-support-hw-offload-through-v.patch kernel: bump 4.14 to 4.14.34 2018-04-16 00:22:57 +03:00
642-net-8021q-support-hardware-flow-table-offload.patch netfilter: fix hardware offload regression (FS#1551) 2018-05-17 08:21:54 +02:00
643-net-bridge-support-hardware-flow-table-offload.patch netfilter: fix hardware offload regression (FS#1551) 2018-05-17 08:21:54 +02:00
644-net-pppoe-support-hardware-flow-table-offload.patch kernel: bump 4.14 to 4.14.97 2019-02-01 11:41:00 +01:00
645-netfilter-nf_flow_table-rework-hardware-offload-time.patch kernel: fix conntrack fixup of offloaded flows on timeout 2018-06-14 11:25:24 +02:00
646-netfilter-nf_flow_table-rework-private-driver-data.patch kernel: allow hardware NAT offload drivers to keep a priv pointer 2018-06-13 12:54:25 +02:00
655-increase_skb_pad.patch kernel: bump 4.14 to 4.14.86 2018-12-10 11:48:44 +01:00
666-Add-support-for-MAP-E-FMRs-mesh-mode.patch kernel: bump 4.14 to 4.14.93 2019-01-14 02:20:40 +02:00
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch kernel: bump 4.14 to 4.14.106 2019-03-18 10:02:51 +01:00
671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch
680-NET-skip-GRO-for-foreign-MAC-addresses.patch kernel: bump 4.14 to 4.14.98 2019-02-08 17:27:47 +01:00
681-NET-add-of_get_mac_address_mtd.patch kernel: make mtd mac address increment more flexible 2018-08-25 19:18:08 +02:00
701-phy_extension.patch kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
703-phy-add-detach-callback-to-struct-phy_driver.patch kernel: bump 4.14 to 4.14.93 2019-01-14 02:20:40 +02:00
734-net-phy-at803x-allow-to-configure-via-pdata.patch kernel: fix AT8032 PHY phy id mask 2018-07-04 01:19:05 +02:00
735-net-phy-at803x-fix-at8033-sgmii-mode.patch kernel: bump 4.14 to 4.14.60 2018-08-03 16:10:38 +02:00
736-net-phy-at803x-allow-to-configure-via-dt.patch kernel: bump 4.14 to 4.14.62 2018-08-10 18:43:23 +02:00
810-pci_disable_common_quirks.patch kernel: bump 4.14 to 4.14.81 2018-11-14 16:27:43 +01:00
811-pci_disable_usb_common_quirks.patch kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
834-ledtrig-libata.patch kernel: bump 4.14 to 4.14.90 2018-12-24 15:06:33 +00:00
920-mangle_bootargs.patch kernel: bump 4.14 to 4.14.23 2018-03-02 21:33:08 +01:00
0931-w1-gpio-fix-problem-with-platfom-data-in-w1-gpio.patch kernel: bump 4.14 to 4.14.59 2018-07-31 05:11:07 +03:00