tn3399_openwrt/target/linux/lantiq
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
..
ase lantiq: drop kernel 5.4 support 2021-11-27 21:45:04 +01:00
base-files lantiq: xrx200: switch the subtarget to the mainline DSA driver 2021-06-26 16:05:36 +02:00
falcon lantiq: drop kernel 5.4 support 2021-11-27 21:45:04 +01:00
files lantiq: fix lan port 3+4 phy-mode settings for Fritzbox 3390 2022-08-05 14:10:42 +02:00
image ltq-deu: add ltq-deu back to default packages 2022-01-16 21:42:19 +01:00
patches-5.10 lantiq: enable interrupts on second VPEs 2022-10-02 20:22:54 +02:00
xrx200 ltq-vdsl-app: rename to ltq-vdsl-vr9-app 2022-09-17 17:39:23 +02:00
xway lantiq: xway: disable unused switch drivers 2022-05-14 00:24:34 +02:00
xway_legacy lantiq: xway_legacy: disable unused switches 2021-11-30 22:29:24 +01:00
config-5.10 kernel: Activate CONFIG_GPIOLIB in generic configuration 2022-08-10 21:36:17 +02:00
Makefile lantiq: switch to kernel 5.10 2021-11-27 21:40:12 +01:00
modules.mk target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00