arm64: Use EL2 virtual timer when running VHE
Subsystems (22)
Marc Zyngier
maintainerPATCH 1/16 ACPI: GTDT: Parse information related to the EL2 virtual timer
In reply to Marc ZyngierSince ARMv8.1, the architecture has grown an EL2-private virtual timer. This has been described in ACPI since ACPI v6.3 and revision 3 of the GTDT table.
An aditional structure was added in ACPICA, though in a rather bizarre way, and merged in v5.1 as 8f5a14d053100 ("ACPICA: ACPI 6.3:
add GTDT Revision 3 support").
Finally plug the table parsing in GTDT, and allow it to be eventually presented to the architected timer driver.
--- drivers/acpi/arm64/gtdt.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
drivers/acpi/arm64/gtdt.c +25 -0
@@ -88,6 +88,19 @@ static int __init map_gt_gsi(u32 interrupt, u32 flags)return acpi_register_gsi (NULL , interrupt, trigger, polarity); } +struct gtdt_v3 { +struct acpi_table_gtdt gtdt_v2; +struct acpi_gtdt_el2 el2_vtimer; +}; + +static struct acpi_gtdt_el2 *gtdt_to_el2_vtimer (struct acpi_table_gtdt *gtdt) +{ +if (gtdt->header.revision <3 ) +return NULL ; + + return &container_of(gtdt, struct gtdt_v3, gtdt_v2)->el2_vtimer; +} +/** * acpi_gtdt_map_ppi() - Map the PPIs of per-cpu arch_timer. * @type: the type of PPI.
@@ -101,6 +114,7 @@ static int __init map_gt_gsi(u32 interrupt, u32 flags)int __init acpi_gtdt_map_ppi (int type) {struct acpi_table_gtdt *gtdt = acpi_gtdt_desc.gtdt; +struct acpi_gtdt_el2 *el2_vtimer =gtdt_to_el2_vtimer (gtdt);switch (type) {case ARCH_TIMER_PHYS_NONSECURE_PPI :
@@ -113,6 +127,12 @@ int __init acpi_gtdt_map_ppi(int type)case ARCH_TIMER_HYP_PPI :return map_gt_gsi (gtdt->non_secure_el2_interrupt, gtdt->non_secure_el2_flags); +case ARCH_TIMER_HYP_VIRT_PPI : +if (el2_vtimer && el2_vtimer->virtual_el2_timer_gsiv) +return map_gt_gsi (el2_vtimer->virtual_el2_timer_gsiv, + el2_vtimer->virtual_el2_timer_flags); + +return 0 ;default :pr_err ("Failed to map timer interrupt: invalid type.\n" ); }
@@ -130,6 +150,7 @@ int __init acpi_gtdt_map_ppi(int type)bool __init acpi_gtdt_c3stop (int type) {struct acpi_table_gtdt *gtdt = acpi_gtdt_desc.gtdt; +struct acpi_gtdt_el2 *el2_vtimer =gtdt_to_el2_vtimer (gtdt);switch (type) {case ARCH_TIMER_PHYS_NONSECURE_PPI :
@@ -141,6 +162,10 @@ bool __init acpi_gtdt_c3stop(int type)case ARCH_TIMER_HYP_PPI :return !(gtdt->non_secure_el2_flags &ACPI_GTDT_ALWAYS_ON ); +case ARCH_TIMER_HYP_VIRT_PPI : +return el2_vtimer && el2_vtimer->virtual_el2_timer_gsiv && + !(el2_vtimer->virtual_el2_timer_flags &ACPI_GTDT_ALWAYS_ON ); +default :pr_err ("Failed to get c3stop info: invalid type.\n" ); }
Signature · 1 line
2.47.3
Marc Zyngier
maintainercover arm64: Use EL2 virtual timer when running VHE
This series aims at making the kernel use the EL2 virtual timer rather than the EL2 physical timer when running VHE. It doesn't change anything when running bare-metal, but is significantly better when running as a guest as CNTVOFF_EL2 virtualises correctly, while CNTPOFF_EL2 doesn't.
The first patch teaches the ACPI GTDT parsing about the EL2 vtimer interrupt. The table was specified years ago, just that nobody added the necessary logic to the parser.
The second patch is the important one. It changes the PPI selection logic to pick the EL2 vtimer over the EL2 ptimer *if* the interrupt exists in the firmware tables.
As usual, firmware is in a sorry state (both DT and ACPI alike), but given that this is to run as a guest, who cares as long as the VMM is doing the right thing.
The following patches are totally optional and can be dropped as
necessary: they clean up the DT binding to make it crystal clear that no, you can't decide to drop an interrupt while copy-pasting your DT from somewhere else.
They finally add missing EL2 vtimer interrupts to a bunch of DTs where I could guess the PPI number based on the other interrupts. I've left the Marvell AC5 crap behind as they have been creative in the PPI assignment, and life is too short to care about it.
This has been tested both as a KVM guest and on bare metal (QC X1e and Amlogic SM1).
Marc Zyngier (16):
ACPI: GTDT: Parse information related to the EL2 virtual timer clocksource/drivers/arm_arch_timer: Default to EL2 virtual timer when
running VHE
dt-bindings: timer: arm,arch_timer: Fix requirements for interrupt
description
arm64: dts: allwinner: Add EL2 virtual timer interrupt
arm64: dts: amlogic: Add EL2 virtual timer interrupt
arm64: dts: bst: Add EL2 virtual timer interrupt
arm64: dts: exynos: Add EL2 virtual timer interrupt
arm64: dts: freescale: Add EL2 virtual timer interrupt
arm64: dts: intel: Add EL2 virtual timer interrupt
arm64: dts: mediatek: Add EL2 virtual timer interrupt
arm64: dts: nvidia: Add EL2 virtual timer interrupt
arm64: dts: qcom: Add EL2 virtual timer interrupt
arm64: dts: realtek: Add EL2 virtual timer interrupt
arm64: dts: rockchip: Add EL2 virtual timer interrupt
arm64: dts: sprd: Add EL2 virtual timer interrupt
arm64: dts: xilinx: Add EL2 virtual timer interrupt
.../bindings/timer/arm,arch_timer.yaml | 21 ++++----- .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 3 +- .../boot/dts/amlogic/amlogic-a4-common.dtsi | 8 ---- arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 8 ++++ arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi | 9 ++++ arch/arm64/boot/dts/amlogic/amlogic-s6.dtsi | 3 +- arch/arm64/boot/dts/amlogic/amlogic-s7.dtsi | 3 +- arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi | 3 +- .../boot/dts/amlogic/meson-g12-common.dtsi | 13 ------ arch/arm64/boot/dts/amlogic/meson-g12.dtsi | 9 ++++ arch/arm64/boot/dts/amlogic/meson-sm1.dtsi | 10 +++++ arch/arm64/boot/dts/bst/bstc1200.dtsi | 3 +- arch/arm64/boot/dts/exynos/axis/artpec9.dtsi | 3 +- arch/arm64/boot/dts/exynos/exynos2200.dtsi | 3 +- arch/arm64/boot/dts/exynos/exynos990.dtsi | 3 +- arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 3 +- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 3 +- .../boot/dts/freescale/imx91_93_common.dtsi | 3 +- arch/arm64/boot/dts/freescale/imx94.dtsi | 3 +- arch/arm64/boot/dts/freescale/imx95.dtsi | 3 +- arch/arm64/boot/dts/freescale/imx952.dtsi | 3 +- arch/arm64/boot/dts/freescale/s32n79.dtsi | 3 +- .../arm64/boot/dts/intel/socfpga_agilex5.dtsi | 3 +- arch/arm64/boot/dts/mediatek/mt6779.dtsi | 3 +- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 3 +- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 3 +- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 3 +- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 3 +- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 2 + arch/arm64/boot/dts/nvidia/tegra234.dtsi | 3 +- arch/arm64/boot/dts/qcom/eliza.dtsi | 3 +- arch/arm64/boot/dts/qcom/hamoa.dtsi | 3 +- arch/arm64/boot/dts/qcom/kaanapali.dtsi | 3 +- arch/arm64/boot/dts/qcom/kodiak.dtsi | 3 +- arch/arm64/boot/dts/qcom/lemans.dtsi | 3 +- arch/arm64/boot/dts/qcom/milos.dtsi | 1 + arch/arm64/boot/dts/qcom/monaco.dtsi | 3 +- arch/arm64/boot/dts/qcom/sar2130p.dtsi | 3 +- arch/arm64/boot/dts/qcom/sc7180.dtsi | 3 +- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 3 +- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 3 +- arch/arm64/boot/dts/qcom/sdm670.dtsi | 3 +- arch/arm64/boot/dts/qcom/sdm845.dtsi | 3 +- arch/arm64/boot/dts/qcom/sdx75.dtsi | 1 + arch/arm64/boot/dts/qcom/sm4450.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm6350.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm6375.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm8150.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm8250.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm8350.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm8450.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm8550.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm8650.dtsi | 3 +- arch/arm64/boot/dts/qcom/sm8750.dtsi | 3 +- arch/arm64/boot/dts/qcom/talos.dtsi | 3 +- arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 3 +- arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 3 +- arch/arm64/boot/dts/sprd/sc9863a.dtsi | 3 +- arch/arm64/boot/dts/sprd/ums512.dtsi | 3 +- arch/arm64/boot/dts/sprd/ums9620.dtsi | 3 +- arch/arm64/boot/dts/xilinx/versal-net.dtsi | 3 +- drivers/acpi/arm64/gtdt.c | 25 +++++++++++ drivers/clocksource/arm_arch_timer.c | 44 +++++++++++-------- 63 files changed, 200 insertions(+), 104 deletions(-)
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 2/16 clocksource/drivers/arm_arch_timer: Default to EL2 virtual timer when running VHE
When running with at EL2 with VHE enabled, the architecture provides two EL2 timer/counters, dubbed physical and virtual. Apart from their names, they are strictly identical.
However, they don't get virtualised the same way, specially when it comes to adding arbitrary offsets to the timers. When running as a guest, the host CNTVOFF_EL2 does apply to the guest's view of CNTHV*_El2. This is not true for CNTPOFF_EL2 and CNTHP*_EL2, as the architecture is broken past the first level of virtualisation (it lacks some essential mechanisms to be usable, despite what the ARM ARM pretends).
This means that when running as a L2 guest hypervisor, using the physical timer results in traps to L0, which are then forwarded to L1 in order to emulate the offset, leading to even worse performance due to massive trap amplification (the combination of register and ERET trapping is absolutely lethal).
Switch the arch timer code to using the virtual timer when running in VHE by default, only using the physical timer if the interrupt is not correctly described in the firmware tables (which seems to be an unfortunately common case). This comes as no impact on bare-metal, and slightly improves the situation in the virtualised case.
--- drivers/clocksource/arm_arch_timer.c | 44 ++++++++++++++++------------ 1 file changed, 25 insertions(+), 19 deletions(-)
drivers/clocksource/arm_arch_timer.c +25 -19
@@ -688,6 +688,7 @@ static void __arch_timer_setup(struct clock_event_device *clk) clk->irq = arch_timer_ppi[arch_timer_uses_ppi];switch (arch_timer_uses_ppi) {case ARCH_TIMER_VIRT_PPI : +case ARCH_TIMER_HYP_VIRT_PPI : clk->set_state_shutdown = arch_timer_shutdown_virt; clk->set_state_oneshot_stopped = arch_timer_shutdown_virt; sne =erratum_handler (set_next_event_virt);
@@ -879,7 +880,7 @@ static void __init arch_timer_banner(void)pr_info ("cp15 timer running at %lu.%02luMHz (%s).\n" , (unsigned long )arch_timer_rate /1000000 , (unsigned long )(arch_timer_rate /10000 ) %100 , - (arch_timer_uses_ppi ==ARCH_TIMER_VIRT_PPI ) ?"virt" :"phys" ); + arch_timer_ppi_names[arch_timer_uses_ppi]); }u32 arch_timer_get_rate (void )
@@ -1023,6 +1024,7 @@ static int __init arch_timer_register(void) ppi = arch_timer_ppi[arch_timer_uses_ppi];switch (arch_timer_uses_ppi) {case ARCH_TIMER_VIRT_PPI : +case ARCH_TIMER_HYP_VIRT_PPI : err =request_percpu_irq (ppi, arch_timer_handler_virt,"arch_timer" , arch_timer_evt);break ;
@@ -1090,25 +1092,34 @@ static int __init arch_timer_common_init(void)/** * arch_timer_select_ppi() - Select suitable PPI for the current system. * -* If HYP mode is available, we know that the physical timer -* has been configured to be accessible from PL1. Use it, so -* that a guest can use the virtual timer instead. +* On AArch32, if HYP mode is available, we know that the physical +* timer has been configured to be accessible from PL1. Use it, so +* that a guest can use the virtual timer instead (though KVM host +* support has long been removed). * -* On ARMv8.1 with VH extensions, the kernel runs in HYP. VHE -* accesses to CNTP_*_EL1 registers are silently redirected to -* their CNTHP_*_EL2 counterparts, and use a different PPI -* number. +* On ARMv8.1 with FEAT_VHE, the kernel runs in EL2. Accesses to +* CNTV_*_EL1 registers are silently redirected to their CNTHV_*_EL2 +* counterparts, and the timer uses a different PPI number. Similar +* thing happen when using the EL2 physical timer. Note that a bunch +* of DTs out there omit the virtual EL2 timer, so fallback gracefully +* on the physical timer. +* +* Without VHE, if no interrupt provided for virtual timer, we'll have +* to stick to the physical timer. It'd better be accessible... * -* If no interrupt provided for virtual timer, we'll have to -* stick to the physical timer. It'd better be accessible... * For arm64 we never use the secure interrupt. * * Return: a suitable PPI type for the current system. */ static enum arch_timer_ppi_nr __init arch_timer_select_ppi (void ) { -if (is_kernel_in_hyp_mode ()) +if (is_kernel_in_hyp_mode ()) { +if (arch_timer_ppi[ARCH_TIMER_HYP_VIRT_PPI ]) +return ARCH_TIMER_HYP_VIRT_PPI ; + +pr_warn_once ("VHE without EL2 virtual timer interrupt, broken firmware\n" );return ARCH_TIMER_HYP_PPI ; + }if (!is_hyp_mode_available () && arch_timer_ppi[ARCH_TIMER_VIRT_PPI ])return ARCH_TIMER_VIRT_PPI ;
@@ -1200,14 +1211,9 @@ static int __init arch_timer_acpi_init(struct acpi_table_header *table)if (ret)return ret; - arch_timer_ppi[ARCH_TIMER_PHYS_NONSECURE_PPI ] = -acpi_gtdt_map_ppi (ARCH_TIMER_PHYS_NONSECURE_PPI ); - - arch_timer_ppi[ARCH_TIMER_VIRT_PPI ] = -acpi_gtdt_map_ppi (ARCH_TIMER_VIRT_PPI ); - - arch_timer_ppi[ARCH_TIMER_HYP_PPI ] = -acpi_gtdt_map_ppi (ARCH_TIMER_HYP_PPI ); +/* The GTDT parser can't be bothered with the secure timer */ +for (int i =ARCH_TIMER_PHYS_NONSECURE_PPI ; i <ARCH_TIMER_MAX_TIMER_PPI ; i++) + arch_timer_ppi[i] =acpi_gtdt_map_ppi (i);arch_timer_populate_kvm_info ();
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 3/16 dt-bindings: timer: arm,arch_timer: Fix requirements for interrupt description
In reply to Marc ZyngierThe arm,arch_timer DT binding is extremely imprecise in describing the requirements for interrupts.
Follow the architecture by making it explicit that:
- the EL1 secure timer irq is required if EL3 is implemented
- the EL1 physical timer irq is always required
- the EL1 virtual timer irq is always required
- the EL2 physical timer irq is required if EL2 is implemented
- the EL2 virtual timer irq is required if FEAT_VHE is implemented
The consequence of the above is that the minimum number of interrupts to be described is 2, and not 1.
Finally, clean up the description which made the assumption that the timers are plugged into a GIC (unfortunately, that's not always true), drop the MMIO nonsense that has long be moved to a separate binding, and use the architectural terminology to describe the various interrupts.
--- .../bindings/timer/arm,arch_timer.yaml | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-)
Documentation/devicetree/bindings/timer/arm,arch_timer.yaml +8 -13
@@ -10,13 +10,8 @@ maintainers: - Marc Zyngier <[email protected]> - Mark Rutland <[email protected]> description: |+ - ARM cores may have a per-core architected timer, which provides per-cpu timers, - or a memory mapped architected timer, which provides up to 8 frames with a - physical and optional virtual timer per frame. - - The per-core architected timer is attached to a GIC to deliver its - per-processor interrupts via PPIs. The memory mapped timer is attached to a GIC - to deliver its interrupts via SPIs. + The per-core architected timer is expected to deliver per-CPU interrupts + (commonly to a GIC to deliver its per-processor interrupts as PPIs). properties: compatible:
@@ -33,13 +28,13 @@ properties: - const: arm,armv7-timer interrupts: - minItems: 1 + minItems: 2 items: - - description: secure timer irq - - description: non-secure timer irq - - description: virtual timer irq - - description: hypervisor timer irq - - description: hypervisor virtual timer irq + - description: EL1 secure physical timer irq, if EL3 is implemented + - description: EL1 non-secure physical timer irq + - description: EL1 virtual timer irq + - description: EL2 physical timer irq, if EL2 is implemented + - description: EL2 virtual timer irq, if FEAT_VHE is implemented interrupt-names: oneOf:
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 4/16 arm64: dts: allwinner: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.2 based CPUs used in the A523 SoC (and derivatives) are missing the EL2 virtual timer interrupt. Add it.
--- arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi +2 -1
@@ -101,7 +101,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH>; }; soc {
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 5/16 arm64: dts: amlogic: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.2 based CPUs used in a number of Amlogic SoCs are missing the EL2 virtual timer interrupt. Add it.
This requires some surgery in the "common" files to move the timer node to locations that makes it possible to add the interrupt only where it is actually implemented.
--- arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi | 8 -------- arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 8 ++++++++ arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi | 9 +++++++++ arch/arm64/boot/dts/amlogic/amlogic-s6.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/amlogic-s7.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 13 ------------- arch/arm64/boot/dts/amlogic/meson-g12.dtsi | 9 +++++++++ arch/arm64/boot/dts/amlogic/meson-sm1.dtsi | 10 ++++++++++ 9 files changed, 42 insertions(+), 24 deletions(-)
arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi +0 -8
@@ -7,14 +7,6 @@ #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/gpio/gpio.h> / { - timer { - compatible = "arm,armv8-timer"; - interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; - }; - psci { compatible = "arm,psci-1.0"; method = "smc";
arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi +8 -0
@@ -86,6 +86,14 @@ pwrc: power-controller { #power-domain-cells = <1>; }; }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; + }; }; &apb {
arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi +9 -0
@@ -49,6 +49,15 @@ pwrc: power-controller { #power-domain-cells = <1>; }; }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; + }; }; &apb {
arch/arm64/boot/dts/amlogic/amlogic-s6.dtsi +2 -1
@@ -56,7 +56,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; psci {
arch/arm64/boot/dts/amlogic/amlogic-s7.dtsi +2 -1
@@ -94,7 +94,8 @@ timer { interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; psci {
arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi +2 -1
@@ -58,7 +58,8 @@ timer { interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; psci {
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +0 -13
@@ -2579,19 +2579,6 @@ map { }; }; - timer { - compatible = "arm,armv8-timer"; - interrupts = <GIC_PPI 13 - (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 14 - (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 11 - (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 10 - (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; - arm,no-tick-in-suspend; - }; - xtal: xtal-clk { compatible = "fixed-clock"; clock-frequency = <24000000>;
arch/arm64/boot/dts/amlogic/meson-g12.dtsi +9 -0
@@ -43,6 +43,15 @@ tdmif_c: audio-controller-2 { clock-names = "sclk", "lrclk", "mclk"; status = "disabled"; }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 14 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 11 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 10 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; + arm,no-tick-in-suspend; + }; }; &apb {
arch/arm64/boot/dts/amlogic/meson-sm1.dtsi +10 -0
@@ -128,6 +128,16 @@ l2: l2-cache0 { }; }; + timer { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 14 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 11 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 10 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; + arm,no-tick-in-suspend; + }; + cpu_opp_table: opp-table { compatible = "operating-points-v2"; opp-shared;
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 6/16 arm64: dts: bst: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.2 based CPUs used in the bst c1200 SoC are missing the EL2 virtual timer interrupt. Add it.
--- arch/arm64/boot/dts/bst/bstc1200.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/bst/bstc1200.dtsi +2 -1
@@ -92,6 +92,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; };
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 7/16 arm64: dts: exynos: Add EL2 virtual timer interrupt
In reply to Marc ZyngierA bunch of Samsung SoCs are missing the EL2 virtual timer interrupt despite using ARMv8.1+ CPUs. Add the missing interrupt, except for those broken designs where the interrupt is documented as not being wired.
--- arch/arm64/boot/dts/exynos/axis/artpec9.dtsi | 3 ++- arch/arm64/boot/dts/exynos/exynos2200.dtsi | 3 ++- arch/arm64/boot/dts/exynos/exynos990.dtsi | 3 ++- arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 3 ++- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/exynos/axis/artpec9.dtsi +2 -1
@@ -272,6 +272,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/exynos/exynos2200.dtsi +2 -1
@@ -1911,7 +1911,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW 0>; /* * Non-updatable, broken stock Samsung bootloader does not * configure CNTFRQ_EL0
arch/arm64/boot/dts/exynos/exynos990.dtsi +2 -1
@@ -405,7 +405,8 @@ timer { interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>; + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>; /* * Non-updatable, broken stock Samsung bootloader does not
arch/arm64/boot/dts/exynos/exynosautov9.dtsi +2 -1
@@ -148,7 +148,8 @@ timer { interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>; + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>; }; fixed-rate-clocks {
arch/arm64/boot/dts/exynos/google/gs101.dtsi +2 -1
@@ -1856,7 +1856,8 @@ timer { <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>, <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>, <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>, - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>; + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>, + <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>; }; };
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 8/16 arm64: dts: freescale: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.2 based CPUs used in a number of NXP/FSL SoCs are missing the EL2 virtual timer interrupt. Add it.
--- arch/arm64/boot/dts/freescale/imx91_93_common.dtsi | 3 ++- arch/arm64/boot/dts/freescale/imx94.dtsi | 3 ++- arch/arm64/boot/dts/freescale/imx95.dtsi | 3 ++- arch/arm64/boot/dts/freescale/imx952.dtsi | 3 ++- arch/arm64/boot/dts/freescale/s32n79.dtsi | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/freescale/imx91_93_common.dtsi +2 -1
@@ -82,7 +82,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; clock-frequency = <24000000>; arm,no-tick-in-suspend; interrupt-parent = <&gic>;
arch/arm64/boot/dts/freescale/imx94.dtsi +2 -1
@@ -147,7 +147,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; clock-frequency = <24000000>; interrupt-parent = <&gic>; arm,no-tick-in-suspend;
arch/arm64/boot/dts/freescale/imx95.dtsi +2 -1
@@ -524,7 +524,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; clock-frequency = <24000000>; arm,no-tick-in-suspend; interrupt-parent = <&gic>;
arch/arm64/boot/dts/freescale/imx952.dtsi +2 -1
@@ -298,7 +298,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; clock-frequency = <24000000>; arm,no-tick-in-suspend; interrupt-parent = <&gic>;
arch/arm64/boot/dts/freescale/s32n79.dtsi +2 -1
@@ -357,6 +357,7 @@ timer: timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; };
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 9/16 arm64: dts: intel: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.2 based CPUs used in the agilex5 SoC are missing the EL2 virtual timer interrupt. Add it.
--- arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +2 -1
@@ -155,7 +155,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; usbphy0: usbphy {
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 10/16 arm64: dts: mediatek: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.1+ based CPUs used in a number of Mediatek SoCs are missing the EL2 virtual timer interrupt. Add it.
--- arch/arm64/boot/dts/mediatek/mt6779.dtsi | 3 ++- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 3 ++- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 3 ++- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 3 ++- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/mediatek/mt6779.dtsi +2 -1
@@ -108,7 +108,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW 0>; }; soc {
arch/arm64/boot/dts/mediatek/mt8186.dtsi +2 -1
@@ -815,7 +815,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW 0>; }; soc {
arch/arm64/boot/dts/mediatek/mt8188.dtsi +2 -1
@@ -918,7 +918,8 @@ timer: timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH 0>, <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH 0>, <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH 0>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH 0>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH 0>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH 0>; clock-frequency = <13000000>; };
arch/arm64/boot/dts/mediatek/mt8192.dtsi +2 -1
@@ -328,7 +328,8 @@ timer: timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH 0>, <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH 0>, <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH 0>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH 0>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH 0>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH 0>; clock-frequency = <13000000>; };
arch/arm64/boot/dts/mediatek/mt8195.dtsi +2 -1
@@ -451,7 +451,8 @@ timer: timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH 0>, <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH 0>, <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH 0>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH 0>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH 0>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH 0>; }; soc {
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 11/16 arm64: dts: nvidia: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.2 based CPUs used in a number of nvidia SoCs are missing the EL2 virtual timer interrupt. Add it.
--- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 2 ++ arch/arm64/boot/dts/nvidia/tegra234.dtsi | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra194.dtsi +2 -0
@@ -3163,6 +3163,8 @@ timer { <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 10 + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; interrupt-parent = <&gic>; always-on;
arch/arm64/boot/dts/nvidia/tegra234.dtsi +2 -1
@@ -5872,7 +5872,8 @@ timer { interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; interrupt-parent = <&gic>; always-on; };
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 12/16 arm64: dts: qcom: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.1+ based CPUs used in a number of Qualcomm SoCs are missing the EL2 virtual timer interrupt. Add it.
--- arch/arm64/boot/dts/qcom/eliza.dtsi | 3 ++- arch/arm64/boot/dts/qcom/hamoa.dtsi | 3 ++- arch/arm64/boot/dts/qcom/kaanapali.dtsi | 3 ++- arch/arm64/boot/dts/qcom/kodiak.dtsi | 3 ++- arch/arm64/boot/dts/qcom/lemans.dtsi | 3 ++- arch/arm64/boot/dts/qcom/milos.dtsi | 1 + arch/arm64/boot/dts/qcom/monaco.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sar2130p.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sc7180.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sdm670.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sdm845.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sdx75.dtsi | 1 + arch/arm64/boot/dts/qcom/sm4450.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sm6350.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sm6375.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sm8150.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sm8250.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sm8350.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sm8450.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sm8550.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sm8650.dtsi | 3 ++- arch/arm64/boot/dts/qcom/sm8750.dtsi | 3 ++- arch/arm64/boot/dts/qcom/talos.dtsi | 3 ++- 25 files changed, 48 insertions(+), 23 deletions(-)
arch/arm64/boot/dts/qcom/eliza.dtsi +2 -1
@@ -1880,6 +1880,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/hamoa.dtsi +2 -1
@@ -8982,7 +8982,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; thermal_zones: thermal-zones {
arch/arm64/boot/dts/qcom/kaanapali.dtsi +2 -1
@@ -6953,7 +6953,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; tpdm-cdsp-llm {
arch/arm64/boot/dts/qcom/kodiak.dtsi +2 -1
@@ -7876,6 +7876,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/lemans.dtsi +2 -1
@@ -8585,7 +8585,8 @@ arch_timer: timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; turing-llm-tpdm {
arch/arm64/boot/dts/qcom/milos.dtsi +1 -0
@@ -3235,6 +3235,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>, + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW 0>; }; };
arch/arm64/boot/dts/qcom/monaco.dtsi +2 -1
@@ -8312,6 +8312,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/sar2130p.dtsi +2 -1
@@ -3165,7 +3165,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; thermal-zones {
arch/arm64/boot/dts/qcom/sc7180.dtsi +2 -1
@@ -4861,6 +4861,7 @@ timer { interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 4 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/sc8180x.dtsi +2 -1
@@ -4399,6 +4399,7 @@ timer { interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 4 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/sc8280xp.dtsi +2 -1
@@ -7043,6 +7043,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/sdm670.dtsi +2 -1
@@ -604,7 +604,8 @@ timer { interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 4 IRQ_TYPE_LEVEL_LOW>; }; soc: soc@0 {
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -1
@@ -6041,6 +6041,7 @@ timer { interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 4 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/sdx75.dtsi +1 -0
@@ -1583,6 +1583,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/sm4450.dtsi +2 -1
@@ -681,6 +681,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/sm6350.dtsi +2 -1
@@ -3528,6 +3528,7 @@ timer { interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 4 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/sm6375.dtsi +2 -1
@@ -2472,6 +2472,7 @@ timer { interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 4 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/sm8150.dtsi +2 -1
@@ -4630,7 +4630,8 @@ timer { interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 4 IRQ_TYPE_LEVEL_LOW>; }; thermal-zones {
arch/arm64/boot/dts/qcom/sm8250.dtsi +2 -1
@@ -6293,7 +6293,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; thermal-zones {
arch/arm64/boot/dts/qcom/sm8350.dtsi +2 -1
@@ -4542,6 +4542,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm64/boot/dts/qcom/sm8450.dtsi +2 -1
@@ -6327,7 +6327,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; clock-frequency = <19200000>; }; };
arch/arm64/boot/dts/qcom/sm8550.dtsi +2 -1
@@ -6806,6 +6806,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW 0>; }; };
arch/arm64/boot/dts/qcom/sm8650.dtsi +2 -1
@@ -8599,6 +8599,7 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW 0>; }; };
arch/arm64/boot/dts/qcom/sm8750.dtsi +2 -1
@@ -6796,7 +6796,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; tpdm-cdsp-llm {
arch/arm64/boot/dts/qcom/talos.dtsi +2 -1
@@ -5153,7 +5153,8 @@ arch_timer: timer { interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW 0>, <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW 0>, - <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW 0>; + <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW 0>, + <GIC_PPI 4 IRQ_TYPE_LEVEL_LOW 0>; }; thermal-zones {
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 13/16 arm64: dts: realtek: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.2 based CPUs used in a number of Realtek SoCs are missing the EL2 virtual timer interrupt. Add it.
--- arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/realtek/rtd16xx.dtsi +2 -1
@@ -105,7 +105,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; arm_pmu: pmu {
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 14/16 arm64: dts: rockchip: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.2 based CPUs used in a number of Rockchip SoCs are missing the EL2 virtual timer interrupt. Add it.
--- arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk356x-base.dtsi +2 -1
@@ -195,7 +195,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH>; arm,no-tick-in-suspend; };
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 15/16 arm64: dts: sprd: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.2 based CPUs used in a number of Unisoc SoCs are missing the EL2 virtual timer interrupt. Add it.
--- arch/arm64/boot/dts/sprd/sc9863a.dtsi | 3 ++- arch/arm64/boot/dts/sprd/ums512.dtsi | 3 ++- arch/arm64/boot/dts/sprd/ums9620.dtsi | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/sprd/sc9863a.dtsi +2 -1
@@ -130,7 +130,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, /* Physical Secure PPI */ <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, /* Physical Non-Secure PPI */ <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, /* Virtual PPI */ - <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; /* Hipervisor PPI */ + <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>, /* Hypervisor physical PPI */ + <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH>; /* Hypervisor virtual PPI */ }; pmu {
arch/arm64/boot/dts/sprd/ums512.dtsi +2 -1
@@ -133,7 +133,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, /* Physical Secure PPI */ <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, /* Physical Non-Secure PPI */ <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, /* Virtual PPI */ - <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; /* Hipervisor PPI */ + <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>, /* Hypervisor physical PPI */ + <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH>; /* Hypervisor virtual PPI */ }; pmu-a55 {
arch/arm64/boot/dts/sprd/ums9620.dtsi +2 -1
@@ -141,7 +141,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, /* Physical Secure PPI */ <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, /* Physical Non-Secure PPI */ <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, /* Virtual PPI */ - <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; /* Hipervisor PPI */ + <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>, /* Hypervisor physical PPI */ + <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH>; /* Hypervisor virtual PPI */ }; pmu-a55 {
Signature · 1 line
2.47.3
Marc Zyngier
maintainerPATCH 16/16 arm64: dts: xilinx: Add EL2 virtual timer interrupt
In reply to Marc ZyngierThe ARMv8.2 based CPUs used in the versal SoC are missing the EL2 virtual timer interrupt. Add it.
--- arch/arm64/boot/dts/xilinx/versal-net.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/xilinx/versal-net.dtsi +2 -1
@@ -728,7 +728,8 @@ fpga: fpga-region { timer: timer { compatible = "arm,armv8-timer"; - interrupts = <1 13 4>, <1 14 4>, <1 11 4>, <1 10 4>; + interrupts = <1 13 4>, <1 14 4>, <1 11 4>, <1 10 4>, + <1 12 4>; }; versal_fpga: versal-fpga {
Signature · 1 line
2.47.3
Re: [PATCH 14/16] arm64: dts: rockchip: Add EL2 virtual timer interrupt
In reply to Marc ZyngierHi Mark,
Am Donnerstag, 7. Mai 2026, 14:55:42 Mitteleuropäische Sommerzeit schrieb Marc Zyngier:
Quoted 2 lines
The ARMv8.2 based CPUs used in a number of Rockchip SoCs are missing the EL2 virtual timer interrupt. Add it.
the message talks about "a number of Rockchip SoCs", but below there are only the rk3566/rk3568 variants? Or does it just mean the two?
In any case,
Quoted 21 lines
Signed-off-by Marc Zyngier <[email protected]>--- arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/arm64/boot/dts/rockchip/rk356x-base.dtsi +2
-1@@ -195,7 +195,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH>; arm,no-tick-in-suspend; };
Re: [PATCH 05/16] arm64: dts: amlogic: Add EL2 virtual timer interrupt
In reply to Marc ZyngierQuoted 175 lines · Marc Zyngier
The ARMv8.2 based CPUs used in a number of Amlogic SoCs are missing the EL2 virtual timer interrupt. Add it.
This requires some surgery in the "common" files to move the timer node to locations that makes it possible to add the interrupt only where it is actually implemented.
Signed-off-by Marc Zyngier <[email protected]>--- arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi | 8 -------- arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 8 ++++++++ arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi | 9 +++++++++ arch/arm64/boot/dts/amlogic/amlogic-s6.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/amlogic-s7.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi | 3 ++- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 13 ------------- arch/arm64/boot/dts/amlogic/meson-g12.dtsi | 9 +++++++++ arch/arm64/boot/dts/amlogic/meson-sm1.dtsi | 10 ++++++++++ 9 files changed, 42 insertions(+), 24 deletions(-)arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi +0
-8@@ -7,14 +7,6 @@ #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/gpio/gpio.h> / { - timer { - compatible = "arm,armv8-timer"; - interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; - }; - psci { compatible = "arm,psci-1.0"; method = "smc";arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi +8
-0@@ -86,6 +86,14 @@ pwrc: power-controller { #power-domain-cells = <1>; }; }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; + }; }; &apb {arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi +9
-0@@ -49,6 +49,15 @@ pwrc: power-controller { #power-domain-cells = <1>; }; }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; + }; }; &apb {arch/arm64/boot/dts/amlogic/amlogic-s6.dtsi +2
-1@@ -56,7 +56,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; psci {arch/arm64/boot/dts/amlogic/amlogic-s7.dtsi +2
-1@@ -94,7 +94,8 @@ timer { interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; psci {arch/arm64/boot/dts/amlogic/amlogic-s7d.dtsi +2
-1@@ -58,7 +58,8 @@ timer { interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; psci {arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +0
-13@@ -2579,19 +2579,6 @@ map { }; }; - timer { - compatible = "arm,armv8-timer"; - interrupts = <GIC_PPI 13 - (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 14 - (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 11 - (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, - <GIC_PPI 10 - (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; - arm,no-tick-in-suspend; - }; - xtal: xtal-clk { compatible = "fixed-clock"; clock-frequency = <24000000>;arch/arm64/boot/dts/amlogic/meson-g12.dtsi +9
-0@@ -43,6 +43,15 @@ tdmif_c: audio-controller-2 { clock-names = "sclk", "lrclk", "mclk"; status = "disabled"; }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 14 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 11 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 10 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; + arm,no-tick-in-suspend; + }; }; &apb {arch/arm64/boot/dts/amlogic/meson-sm1.dtsi +3
-0@@ -128,6 +128,16 @@ l2: l2-cache0 { }; }; + timer { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
arch/arm64/boot/dts/amlogic/meson-sm1.dtsi l2: l2-cache0 { · line 143
Quoted 10 lines
arch/arm64/boot/dts/amlogic/meson-sm1.dtsi +7
-0+ <GIC_PPI 14 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 11 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 10 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 12 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; + arm,no-tick-in-suspend; + }; + cpu_opp_table: opp-table { compatible = "operating-points-v2"; opp-shared;
Thanks,
Neil
Marc Zyngier
maintainerRe: [PATCH 14/16] arm64: dts: rockchip: Add EL2 virtual timer interrupt
In reply to Heiko StuebnerQuoted 2 lines · Heiko Stuebner
Hi Mark,
s/k/c/ ;-)
Quoted 7 lines
Am Donnerstag, 7. Mai 2026, 14:55:42 Mitteleuropäische Sommerzeit schrieb Marc Zyngier:
Quoted 2 lines
The ARMv8.2 based CPUs used in a number of Rockchip SoCs are missing the EL2 virtual timer interrupt. Add it.
the message talks about "a number of Rockchip SoCs", but below there are only the rk3566/rk3568 variants? Or does it just mean the two?
I have no idea how many Socs are covered by the 'x' in the filename, and I can't say I looked too hard -- I simply checked that whichever file was including this one was describing CPUs that were guaranteed to implement this timer.
Quoted 4 lines
In any case,
Acked-by Heiko Stuebner <[email protected]>
Thanks!
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Marc Zyngier
maintainerRe: [PATCH 02/16] clocksource/drivers/arm_arch_timer: Default to EL2 virtual timer when running VHE
In reply to Marc ZyngierQuoted 19 lines · Marc Zyngier
When running with at EL2 with VHE enabled, the architecture provides two EL2 timer/counters, dubbed physical and virtual. Apart from their names, they are strictly identical.
However, they don't get virtualised the same way, specially when it comes to adding arbitrary offsets to the timers. When running as a guest, the host
CNTVOFF_EL2does apply to the guest's view of CNTHV*_El2. This is not true forCNTPOFF_EL2and CNTHP*_EL2, as the architecture is broken past the first level of virtualisation (it lacks some essential mechanisms to be usable, despite what the ARM ARM pretends).This means that when running as a L2 guest hypervisor, using the physical timer results in traps to L0, which are then forwarded to L1 in order to emulate the offset, leading to even worse performance due to massive trap amplification (the combination of register and ERET trapping is absolutely lethal).
Quoted 6 lines
Switch the arch timer code to using the virtual timer when running in VHE by default, only using the physical timer if the interrupt is not correctly described in the firmware tables (which seems to be an unfortunately common case). This comes as no impact on bare-metal, and slightly improves the situation in the virtualised case.
One thing I missed in this patch is that although we now use the EL2 virtual timer, we are still using the EL2 physical counter. They both report the same thing, but this is missing a reasonable optimisation in the NV case, which is the whole purpose of this patch.
I'll fix that for v2.
Thanks,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Re: [PATCH 16/16] arm64: dts: xilinx: Add EL2 virtual timer interrupt
In reply to Marc ZyngierQuoted 13 lines · Marc Zyngier
The ARMv8.2 based CPUs used in the versal SoC are missing the EL2 virtual timer interrupt. Add it.
Signed-off-by Marc Zyngier <[email protected]>--- arch/arm64/boot/dts/xilinx/versal-net.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/arm64/boot/dts/xilinx/versal-net.dtsi +0
-0
arch/arm64/boot/dts/xilinx/versal-net.dtsi fpga: fpga-region { · line 735
Quoted 9 lines
arch/arm64/boot/dts/xilinx/versal-net.dtsi +2
-1@@ -728,7 +728,8 @@ fpga: fpga-region { timer: timer { compatible = "arm,armv8-timer"; - interrupts = <1 13 4>, <1 14 4>, <1 11 4>, <1 10 4>; + interrupts = <1 13 4>, <1 14 4>, <1 11 4>, <1 10 4>, + <1 12 4>; }; versal_fpga: versal-fpga {
Thanks,
Michal
Re: [PATCH 09/16] arm64: dts: intel: Add EL2 virtual timer interrupt
In reply to Marc ZyngierQuoted 13 lines · Marc Zyngier
The ARMv8.2 based CPUs used in the agilex5 SoC are missing the EL2 virtual timer interrupt. Add it.
Signed-off-by Marc Zyngier <[email protected]>--- arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +0
-0
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi timer { · line 162
Quoted 9 lines
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +2
-1@@ -155,7 +155,8 @@ timer { interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, - <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; }; usbphy0: usbphy {
Re: [PATCH 07/16] arm64: dts: exynos: Add EL2 virtual timer interrupt
In reply to Marc ZyngierOn Thu, May 07, 2026 at 01:55:35PM +0100, Marc Zyngier wrote
Quoted 10 lines
[Some people who received this message don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
A bunch of Samsung SoCs are missing the EL2 virtual timer interrupt despite using ARMv8.1+ CPUs. Add the missing interrupt, except for those broken designs where the interrupt is documented as not being wired.
Signed-off-by Marc Zyngier <[email protected]>--- arch/arm64/boot/dts/exynos/axis/artpec9.dtsi | 3 ++-
/^JN - Jesper Nilsson
Signature · 1 line
Jesper Nilsson -- [email protected]
Re: [PATCH 01/16] ACPI: GTDT: Parse information related to the EL2 virtual timer
In reply to Marc ZyngierQuoted 24 lines · Marc Zyngier
Since ARMv8.1, the architecture has grown an EL2-private virtual timer. This has been described in ACPI since ACPI v6.3 and revision 3 of the GTDT table.
An aditional structure was added in ACPICA, though in a rather bizarre way, and merged in v5.1 as
8f5a14d053100("ACPICA: ACPI 6.3:
add GTDT Revision 3 support").Finally plug the table parsing in GTDT, and allow it to be eventually presented to the architected timer driver.
Signed-off-by Marc Zyngier <[email protected]>--- drivers/acpi/arm64/gtdt.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)drivers/acpi/arm64/gtdt.c +0
-0@@ -88,6 +88,19 @@ static int __init map_gt_gsi(u32 interrupt, u32 flags)return acpi_register_gsi (NULL , interrupt, trigger, polarity); }
drivers/acpi/arm64/gtdt.c static int __init map_gt_gsi(u32 interrupt, u32 flags) · line 100
Quoted 10 lines
drivers/acpi/arm64/gtdt.c +10
-0+struct gtdt_v3 { +struct acpi_table_gtdt gtdt_v2; +struct acpi_gtdt_el2 el2_vtimer; +}; + +static struct acpi_gtdt_el2 *gtdt_to_el2_vtimer (struct acpi_table_gtdt *gtdt) +{ +if (gtdt->header.revision <3 ) +return NULL ; +
We should validate the length as well just in case some platform bumped version but didn't add these fields. Again it is problem if the platform timers are also missing. We can just add the check in acpi_gtdt_init() if the version >=3 perhaps? If (gtdt->header.length < sizeof(struct gtdt_v3) invalid table or something.
Also we have in platform_timer_valid()
platform_timer >= (void *)(acpi_gtdt_desc.gtdt + 1)
which is still valid, but again if someone messes up in v3 keeping offset where virtual EL2 timer GSI should be present as they just copied it from v2, then we might allow it as valid.
Do it make sense to add that check as well in acpi_gtdt_init()? I mean the offset should be >= sizeof(struct gtdt_v3).
Both checks can be added to acpi_gtdt_init() to avoid checking for each platform timer instance may be ?
Other than this couple of minor nit, this patch looks fine.
Signature · 2 lines
Regards, Sudeep
Marc Zyngier
maintainerRe: [PATCH 01/16] ACPI: GTDT: Parse information related to the EL2 virtual timer
Hi Sudeep,
Quoted 26 lines · Sudeep Holla
Quoted 24 lines · Marc Zyngier
Since ARMv8.1, the architecture has grown an EL2-private virtual timer. This has been described in ACPI since ACPI v6.3 and revision 3 of the GTDT table.
An aditional structure was added in ACPICA, though in a rather bizarre way, and merged in v5.1 as
8f5a14d053100("ACPICA: ACPI 6.3:
add GTDT Revision 3 support").Finally plug the table parsing in GTDT, and allow it to be eventually presented to the architected timer driver.
Signed-off-by Marc Zyngier <[email protected]>--- drivers/acpi/arm64/gtdt.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)drivers/acpi/arm64/gtdt.c +0
-0@@ -88,6 +88,19 @@ static int __init map_gt_gsi(u32 interrupt, u32 flags)return acpi_register_gsi (NULL , interrupt, trigger, polarity); }
Quoted 16 lines
drivers/acpi/arm64/gtdt.c static int __init map_gt_gsi(u32 interrupt, u32 flags) · line 100
Quoted 10 lines
drivers/acpi/arm64/gtdt.c +10
-0+struct gtdt_v3 { +struct acpi_table_gtdt gtdt_v2; +struct acpi_gtdt_el2 el2_vtimer; +}; + +static struct acpi_gtdt_el2 *gtdt_to_el2_vtimer (struct acpi_table_gtdt *gtdt) +{ +if (gtdt->header.revision <3 ) +return NULL ; +We should validate the length as well just in case some platform bumped version but didn't add these fields. Again it is problem if the platform timers are also missing. We can just add the check in
acpi_gtdt_init()if the version >=3 perhaps? If (gtdt->header.length<sizeof(struct gtdt_v3)invalid table or something.
Yeah, that seems like a valuable thing to do.
Quoted 7 lines
Also we have in
platform_timer_valid()platform_timer >= (void *)(acpi_gtdt_desc.gtdt + 1)which is still valid, but again if someone messes up in v3 keeping offset where virtual EL2 timer GSI should be present as they just copied it from v2, then we might allow it as valid.
Quoted 5 lines
Do it make sense to add that check as well in
acpi_gtdt_init()? I mean the offset should be >=sizeof(struct gtdt_v3).Both checks can be added to
acpi_gtdt_init()to avoid checking for each platform timer instance may be ?
That makes some sense to me.
What I'll do is introduce gtdt_v3 in a first patch, making sure that the parser is correctly handling the difference (pointer arithmetic and such), and then add the virtual timer interrupt handling in a subsequent change.
Quoted 4 lines
Other than this couple of minor nit, this patch looks fine.
Reviewed-by Sudeep Holla <[email protected]>
Thanks for having had a look!
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Re: [PATCH 03/16] dt-bindings: timer: arm,arch_timer: Fix requirements for interrupt description
In reply to Marc ZyngierQuoted 19 lines · Marc Zyngier
The arm,arch_timer DT binding is extremely imprecise in describing the requirements for interrupts.
Follow the architecture by making it explicit that:
- the EL1 secure timer irq is required if EL3 is implemented
- the EL1 physical timer irq is always required
- the EL1 virtual timer irq is always required
- the EL2 physical timer irq is required if EL2 is implemented
- the EL2 virtual timer irq is required ifFEAT_VHEis implementedThe consequence of the above is that the minimum number of interrupts to be described is 2, and not 1.
Finally, clean up the description which made the assumption that the timers are plugged into a GIC (unfortunately, that's not always true), drop the MMIO nonsense that has long be moved to a separate binding, and use the architectural terminology to describe the various interrupts.
Quoted 5 lines
Signed-off-by Marc Zyngier <[email protected]>--- .../bindings/timer/arm,arch_timer.yaml | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-)