mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@oss.nxp.com>
To: Freimut Diener <f.diener@pengutronix.de>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Frank Li <Frank.Li@nxp.com>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	devicetree@vger.kernel.org, imx@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/5] arm64: dts: freescale: imx91-93-common: Add EL2 virtual timer interrupt
Date: Mon, 23 Nov 2026 10:22:05 -0600	[thread overview]
Message-ID: <awRoLHZY3ySkU5e0@SMW015318> (raw)
In-Reply-To: <20261123-imx93-frdm-fixes-v2-4-dd97c7fca4b1@pengutronix.de>

On Mon, Nov 23, 2026 at 12:25:18PM +0100, Freimut Diener wrote:
> The Cortex-A55 CPUs in the i.MX91 and i.MX93 SoCs support Virtual Host
> Extensions (VHE). When running at EL2 with VHE enabled, Linux prefers
> the EL2 virtual timer over the EL2 physical timer.
>
> The timer node in imx91_93_common.dtsi only describes four architected
> timer interrupts, omitting the EL2 virtual timer interrupt. As a result,
> Linux reports:
>
>     [Firmware Bug]: VHE-capable CPU without EL2 virtual timer interrupt
>
> and falls back to the EL2 physical timer.
>
> Add the missing EL2 virtual timer interrupt (PPI 12) to allow Linux to
> use the EL2 virtual timer.
>
> Tested on an NXP FRDM-i.MX93 board. Linux selects the EL2 virtual
> timer (hyp-virt), and interrupt counts increase on both CPUs. Timer
> operation was also verified across CPU idle transitions.
>
> Signed-off-by: Freimut Diener <f.diener@pengutronix.de>
>
> ---
> While this change fixes a real bug for me, this same change was already
> previously proposed by Marc Zyngier <maz@kernel.org> in May as part of a
> larger series.
>
> Link: https://lore.kernel.org/all/20260523140242.586031-10-maz@kernel.org/

Thanks, I missed this one. I will pick Marc Zyngier's patches.

Frank

> ---
>  arch/arm64/boot/dts/freescale/imx91_93_common.dtsi | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi b/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi
> index a68ffd04ee084..af4c93c128d31 100644
> --- a/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi
> @@ -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>;
>
> --
> 2.56.0
>
>

  reply	other threads:[~2026-11-23 16:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 11:25 [PATCH v2 0/5] arm64: dts: freescale: Fix i.MX93 FRDM hardware descriptions Freimut Diener
2026-11-23 11:25 ` [PATCH v2 1/5] arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter Freimut Diener
2026-11-23 16:18   ` Frank Li
2026-11-23 11:25 ` [PATCH v2 2/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply Freimut Diener
2026-11-23 11:25 ` [PATCH v2 3/5] arm64: dts: freescale: imx93-11x11-frdm: restrict USDHC3 to SDIO Freimut Diener
2026-11-23 11:25 ` [PATCH v2 4/5] arm64: dts: freescale: imx91-93-common: Add EL2 virtual timer interrupt Freimut Diener
2026-11-23 16:22   ` Frank Li [this message]
2026-11-23 11:25 ` [PATCH v2 5/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe USB2 VBUS supply Freimut Diener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awRoLHZY3ySkU5e0@SMW015318 \
    --to=frank.li@oss.nxp.com \
    --cc=Frank.Li@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=f.diener@pengutronix.de \
    --cc=festevam@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®