All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephan Gerhold <stephan.gerhold@linaro.org>
To: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
Cc: Sumit Garg <sumit.garg@kernel.org>,
	u-boot-qcom@groups.io, u-boot@lists.u-boot-project.org,
	Tom Rini <trini@konsulko.com>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Casey Connolly <casey.connolly@linaro.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Michael Srba <Michael.Srba@seznam.cz>
Subject: Re: [PATCH] mach-snapdragon: of_fixup: enable APSS watchdog at EL2
Date: Tue, 1 Dec 2026 19:26:58 +0100	[thread overview]
Message-ID: <aw8RctCU9ysRbnB0@linaro.org> (raw)
In-Reply-To: <20261130-qcom-enable-apss-wdt-el2-v1-1-1f9a94ae321e@oss.qualcomm.com>

On Mon, Nov 30, 2026 at 04:26:13PM +0530, Balaji Selvanathan wrote:
> On Qualcomm SoCs where Gunyah Hypervisor owns the APSS watchdog, such as
> SC7280/QCM6490, the node is marked status = "reserved", so U-Boot
> never binds qcom_wdt and "wdt list" is empty.
> 
> With QCOM_EL2_GUNYAH_EXIT_SUPPORT, U-Boot exits Gunyah early and runs
> at EL2 (from EL1), and the watchdog is free to use. In that case set
> any reserved "qcom,kpss-wdt" node to "okay" in the live tree. SoCs
> whose watchdog is not reserved are left untouched.
> 
> Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
> ---
>  arch/arm/mach-snapdragon/of_fixup.c | 34 ++++++++++++++++++++++++++++++++++
>  1 file changed, 34 insertions(+)

The code in of_fixup.c is for DT changes only U-Boot needs, but which
shouldn't be passed on to Linux later.

This does not apply to your watchdog example. I assume you want Linux to
control the watchdog as well, so it needs the same fixups. To be more
precise, Linux also needs extra IOMMUs, the GPU zap shader disabled and
other fixups that are typically described in the -el2.dtbo.

Booting should work also if Linux doesn't provide any DTBs itself (e.g.
booting a generic distro image), in that case Linux uses the U-Boot DTB.

I think the real fix would be to apply the existing -el2.dtbo to the
U-Boot DTB at build time if QCOM_EL2_GUNYAH_EXIT_SUPPORT is selected.

Thanks,
Stephan

      reply	other threads:[~2026-12-01 18:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 10:56 [PATCH] mach-snapdragon: of_fixup: enable APSS watchdog at EL2 Balaji Selvanathan
2026-12-01 18:26 ` Stephan Gerhold [this message]

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=aw8RctCU9ysRbnB0@linaro.org \
    --to=stephan.gerhold@linaro.org \
    --cc=Michael.Srba@seznam.cz \
    --cc=balaji.selvanathan@oss.qualcomm.com \
    --cc=casey.connolly@linaro.org \
    --cc=ilias.apalodimas@linaro.org \
    --cc=neil.armstrong@linaro.org \
    --cc=sumit.garg@kernel.org \
    --cc=trini@konsulko.com \
    --cc=u-boot-qcom@groups.io \
    --cc=u-boot@lists.u-boot-project.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.