You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux/generic/pending-4.19
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>
5 years ago
..
102-MIPS-only-process-negative-stack-offsets-on-stack-tr.patch
103-MIPS-perf-ath79-Fix-perfcount-IRQ-assignment.patch kernel: MIPS: perf: ath79: Fix perfcount IRQ assignment 5 years ago
110-ehci_hcd_ignore_oc.patch
120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch kernel: bump 4.19 to 4.19.21 5 years ago
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
141-jffs2-add-RENAME_EXCHANGE-support.patch
150-bridge_allow_receiption_on_disabled_port.patch
180-net-phy-at803x-add-support-for-AT8032.patch
201-extra_optimization.patch kernel: bump 4.19 to 4.19.34 5 years ago
203-kallsyms_uncompressed.patch kernel: bump 4.19 to 4.19.18 5 years ago
205-backtrace_module_info.patch
220-optimize_inlining.patch
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.19 to 4.19.18 5 years ago
302-mips_no_branch_likely.patch
304-mips_disable_fpu.patch kernel: bump 4.19 to 4.19.18 5 years ago
305-mips_module_reloc.patch mips: fix dynamic ftrace 5 years ago
306-mips_mem_functions_performance.patch
307-mips_highmem_offset.patch
308-mips32r2_tune.patch kernel: bump 4.19 to 4.19.34 5 years ago
309-MIPS-Add-CPU-option-reporting-to-proc-cpuinfo.patch kernel: MIPS: Add CPU option reporting to /proc/cpuinfo 6 years ago
310-arm_module_unresolved_weak_sym.patch
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch
332-arc-add-OWRTDTB-section.patch kernel: bump 4.19 to 4.19.34 5 years ago
333-arc-enable-unaligned-access-in-kernel-mode.patch
341-MIPS-mm-remove-no-op-dma_map_ops-where-possible.patch kernel: bump 4.19 to 4.19.18 5 years ago
400-mtd-add-rootfs-split-support.patch kernel: bump 4.19 to 4.19.23 5 years ago
401-mtd-add-support-for-different-partition-parser-types.patch kernel: bump 4.19 to 4.19.23 5 years ago
402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch kernel: bump 4.19 to 4.19.23 5 years ago
403-mtd-hook-mtdsplit-to-Kbuild.patch
404-mtd-add-more-helper-functions.patch kernel: bump 4.19 to 4.19.23 5 years ago
411-mtd-partial_eraseblock_write.patch kernel: bump 4.19 to 4.19.23 5 years ago
412-mtd-partial_eraseblock_unlock.patch kernel: Remove deprecated generic linux,part-probe patch 6 years ago
419-mtd-redboot-add-of_match_table-with-DT-binding.patch
420-mtd-redboot_space.patch
430-mtd-add-myloader-partition-parser.patch
431-mtd-bcm47xxpart-check-for-bad-blocks-when-calculatin.patch
432-mtd-bcm47xxpart-detect-T_Meter-partition.patch
440-block2mtd_init.patch
441-block2mtd_probe.patch
450-mtd-spi-nor-allow-NOR-driver-to-write-fewer-bytes-th.patch
460-mtd-cfi_cmdset_0002-no-erase_suspend.patch
461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch
465-m25p80-mx-disable-software-protection.patch
466-Revert-mtd-spi-nor-fix-Spansion-regressions-aliased-.patch
470-mtd-spi-nor-support-limiting-4K-sectors-support-base.patch kernel: bump 4.19 to 4.19.16 6 years ago
475-mtd-spi-nor-Add-Winbond-w25q128jv-support.patch
476-mtd-spi-nor-add-eon-en25q128.patch
477-mtd-add-spi-nor-add-mx25u3235f.patch
479-mtd-spi-nor-add-eon-en25qh64.patch kernel: mtd: add support for EN25QH64 in spi-nor.c 6 years ago
480-mtd-set-rootfs-to-be-root-dev.patch
490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch
491-ubi-auto-create-ubiblock-device-for-rootfs.patch
492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch
494-mtd-ubi-add-EOF-marker-support.patch
495-mtd-core-add-get_mtd_device_by_node.patch
496-dt-bindings-add-bindings-for-mtd-concat-devices.patch
497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch
530-jffs2_make_lzma_available.patch jffs2: Fix use of uninitialized delayed_work, lockdep breakage 6 years ago
532-jffs2_eofdetect.patch
553-ubifs-Add-option-to-create-UBI-FS-version-4-on-empty.patch
600-netfilter_conntrack_flush.patch
610-netfilter_match_bypass_default_checks.patch
611-netfilter_match_bypass_default_table.patch
612-netfilter_match_reduce_memory_access.patch
613-netfilter_optional_tcp_window_check.patch kernel: bump 4.19 to 4.19.34 5 years ago
616-net_optimize_xfrm_calls.patch
620-net_sched-codel-do-not-defer-queue-length-update.patch
630-packet_socket_type.patch kernel: bump 4.19 to 4.19.25 5 years ago
640-netfilter-nf_flow_table-add-hardware-offload-support.patch kernel: bump 4.19 to 4.19.34 5 years ago
641-netfilter-nf_flow_table-support-hw-offload-through-v.patch
642-net-8021q-support-hardware-flow-table-offload.patch
643-net-bridge-support-hardware-flow-table-offload.patch
644-net-pppoe-support-hardware-flow-table-offload.patch kernel: bump 4.19 to 4.19.19 5 years ago
645-netfilter-nf_flow_table-rework-hardware-offload-time.patch kernel: bump 4.19 to 4.19.34 5 years ago
646-netfilter-nf_flow_table-rework-private-driver-data.patch
655-increase_skb_pad.patch kernel: bump 4.19 to 4.19.16 6 years ago
666-Add-support-for-MAP-E-FMRs-mesh-mode.patch kernel: bump 4.19 to 4.19.16 6 years ago
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch kernel: bump 4.19 to 4.19.34 5 years ago
671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch
680-NET-skip-GRO-for-foreign-MAC-addresses.patch kernel: bump 4.19 to 4.19.20 5 years ago
681-NET-add-of_get_mac_address_mtd.patch
701-phy_extension.patch
703-phy-add-detach-callback-to-struct-phy_driver.patch kernel: bump 4.19 to 4.19.16 6 years ago
734-net-phy-at803x-allow-to-configure-via-pdata.patch
735-net-phy-at803x-fix-at8033-sgmii-mode.patch
736-net-phy-at803x-allow-to-configure-via-dt.patch
800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch kernel: bump 4.19 to 4.19.18 5 years ago
810-pci_disable_common_quirks.patch
811-pci_disable_usb_common_quirks.patch
834-ledtrig-libata.patch kernel: bump 4.19 to 4.19.23 5 years ago
840-media-i2c-tda1997x-select-V4L2_FWNODE.patch kernel: bump 4.19 to 4.19.34 5 years ago
920-mangle_bootargs.patch kernel: bump 4.19 to 4.19.18 5 years ago
0931-w1-gpio-fix-problem-with-platfom-data-in-w1-gpio.patch