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
0004-MIPS-lantiq-add-atm-hack.patch
0008-MIPS-lantiq-backport-old-timer-code.patch
0018-MTD-nand-lots-of-xrx200-fixes.patch
0020-MTD-lantiq-handle-NO_XIP-on-cfi0001-flash.patch
0023-NET-PHY-add-led-support-for-intel-xway.patch
0028-NET-lantiq-various-etop-fixes.patch
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
0101-find_active_root.patch
0151-lantiq-ifxmips_pcie-use-of.patch
0152-lantiq-VPE.patch
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
0310-v5.16-MIPS-lantiq-dma-make-the-burst-length-configurable-b.patch
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
0703-v5.16-net-lantiq_xrx200-increase-buffer-reservation.patch
0704-v5.17-net-lantiq_xrx200-add-ingress-SG-DMA-support.patch
0705-v5.13-net-dsa-lantiq-allow-to-use-all-GPHYs-on-xRX300-and-.patch
0706-v5.18-net-lantiq-enable-jumbo-frames-on-GSWIP.patch
0710-v5.16-net-lantiq-configure-the-burst-length-in-ethernet-dr.patch
0711-v5.16-net-lantiq_xrx200-Hardcode-the-burst-length-value.patch
0712-v5.16-net-ethernet-lantiq_etop-Fix-compilation-error.patch
0713-v5.17-MIPS-lantiq-dma-increase-descritor-count.patch
0714-v5.17-net-lantiq_xrx200-increase-napi-poll-weigth.patch
0715-v5.17-net-lantiq_xrx200-convert-to-build_skb.patch
0716-v5.17-net-lantiq_xrx200-fix-use-after-free-bug.patch
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