openwrt/target/linux/lantiq/patches-5.10
Aleksander Jan Bajkowski fbd33d6164 lantiq: enable interrupts on second VPEs
This patch is needed to handle interrupts by the second VPE on the Lantiq
ARX100, xRX200, xRX300 and xRX330 SoCs. Switching some ICU interrupts to
the second VPE results in a hang. Currently, the vsmp_init_secondary()
function is responsible for enabling these interrupts. It only enables
Malta-specific interrupts (SW0, SW1, HW4 and HW5).

The MIPS core has 8 interrupts defined. On Lantiq SoCs, hardware
interrupts are wired to an ICU instance. Each VPE has an independent
instance of the ICU. The mapping of the ICU interrupts is shown below:
SW0(IP0) - IPI call,
SW1(IP1) - IPI resched,
HW0(IP2) - ICU 0-31,
HW1(IP3) - ICU 32-63,
HW2(IP4) - ICU 64-95,
HW3(IP5) - ICU 96-127,
HW4(IP6) - ICU 128-159,
HW5(IP7) - timer.

This patch enables all interrupt lines on the second VPE.

This problem affects multithreaded SoCs with a custom interrupt controller.
SOCs with 1004Kc core and newer use the MIPS GIC. At this point, I am aware
that the Realtek RTL839x and RTL930x SoCs may need a similar fix. In the
future, this may be replaced with some generic solution.

Tested on Lantiq xRX200.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2022-10-02 20:22:54 +02:00
..
0001-MIPS-lantiq-add-pcie-driver.patch kernel: bump 5.10 to 5.10.137 2022-08-23 10:37:04 +02:00
0004-MIPS-lantiq-add-atm-hack.patch
0008-MIPS-lantiq-backport-old-timer-code.patch
0018-MTD-nand-lots-of-xrx200-fixes.patch lantiq: kernel: xway-nand: Fix setting on-die ECC engines in dts 2021-10-02 16:45:33 +02:00
0020-MTD-lantiq-handle-NO_XIP-on-cfi0001-flash.patch
0023-NET-PHY-add-led-support-for-intel-xway.patch kernel: bump 5.10 to 5.10.37 2021-05-14 14:50:03 +01:00
0028-NET-lantiq-various-etop-fixes.patch kernel: bump 5.10 to 5.10.57 2021-08-14 16:32:34 +01:00
0031-I2C-MIPS-lantiq-add-FALC-ON-i2c-bus-master.patch
0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
0042-arch-mips-increase-io_space_limit.patch
0050-USB-DWC2-make-the-lantiq-settings-match-vendor-drive.patch
0051-MIPS-lantiq-improve-USB-initialization.patch kernel: bump 5.10 to 5.10.118 2022-06-06 19:20:02 +02:00
0101-find_active_root.patch kernel: fix parsing fixed subpartitions 2021-05-06 14:53:25 +02:00
0151-lantiq-ifxmips_pcie-use-of.patch
0152-lantiq-VPE.patch kernel: bump 5.10 to 5.10.94 2022-02-01 23:34:07 +00:00
0154-lantiq-pci-bar11mask-fix.patch
0155-lantiq-VPE-nosmp.patch
0160-owrt-lantiq-multiple-flash.patch
0300-MTD-cfi-cmdset-0001-disable-buffered-writes.patch
0301-xrx200-add-gphy-clk-src-device-tree-binding.patch kernel: bump 5.10 to 5.10.118 2022-06-06 19:20:02 +02:00
0310-v5.16-MIPS-lantiq-dma-make-the-burst-length-configurable-b.patch lantiq: replace patches with version accepted upstream 2022-01-08 19:32:45 +01:00
0320-MIPS-lantiq-enable-all-hardware-interrupts-on-second.patch lantiq: enable interrupts on second VPEs 2022-10-02 20:22:54 +02:00
0701-NET-lantiq-etop-of-mido.patch
0702-v5.16-net-lantiq-add-support-for-jumbo-frames.patch lantiq: xrx200: enable use of baby jumbo frames 2022-01-16 20:51:14 +01:00
0703-v5.16-net-lantiq_xrx200-increase-buffer-reservation.patch lantiq: xrx200: replace patch with upstream version 2022-03-25 18:14:13 +01:00
0704-v5.17-net-lantiq_xrx200-add-ingress-SG-DMA-support.patch lantiq: xrx200: replace patch with upstream version 2022-03-25 18:14:13 +01:00
0705-v5.13-net-dsa-lantiq-allow-to-use-all-GPHYs-on-xRX300-and-.patch kernel: bump 5.10 to 5.10.122 2022-06-27 00:57:15 +02:00
0706-v5.18-net-lantiq-enable-jumbo-frames-on-GSWIP.patch kernel: bump 5.10 to 5.10.114 2022-05-16 20:26:38 +02:00
0710-v5.16-net-lantiq-configure-the-burst-length-in-ethernet-dr.patch lantiq: xrx200: enable use of baby jumbo frames 2022-01-16 20:51:14 +01:00
0711-v5.16-net-lantiq_xrx200-Hardcode-the-burst-length-value.patch lantiq: xrx200: enable use of baby jumbo frames 2022-01-16 20:51:14 +01:00
0712-v5.16-net-ethernet-lantiq_etop-Fix-compilation-error.patch lantiq: replace patches with version accepted upstream 2022-01-08 19:32:45 +01:00
0713-v5.17-MIPS-lantiq-dma-increase-descritor-count.patch lantiq: xrx200: fix use after free bug 2022-03-08 18:33:42 +01:00
0714-v5.17-net-lantiq_xrx200-increase-napi-poll-weigth.patch lantiq: xrx200: fix use after free bug 2022-03-08 18:33:42 +01:00
0715-v5.17-net-lantiq_xrx200-convert-to-build_skb.patch lantiq: xrx200: fix use after free bug 2022-03-08 18:33:42 +01:00
0716-v5.17-net-lantiq_xrx200-fix-use-after-free-bug.patch lantiq: xrx200: fix use after free bug 2022-03-08 18:33:42 +01:00
0717-v6.0-net-lantiq_xrx200-confirm-skb-is-allocated-before-us.patch lantiq: xrx200: backport upstream network fixes 2022-09-11 01:30:11 +02:00
0718-v6.0-net-lantiq_xrx200-fix-lock-under-memory-pressure.patch lantiq: xrx200: backport upstream network fixes 2022-09-11 01:30:11 +02:00
0719-v6.0-net-lantiq_xrx200-restore-buffer-if-memory-allocatio.patch lantiq: xrx200: backport upstream network fixes 2022-09-11 01:30:11 +02:00